Search code examples
groovyunetstack

UnetStack : How to get an automatic transmission of data between two modems 2


I already asked a question 1 week ago about a problem that I have. I have two subnero WNC-M25MSS3 modems, my goal is to realize a 2 nodes network. I've created scripts to request data from one modem and the other can answer back. But, it is working only if I enter the script command by hand in the shell in my modems. My problem is about make this communication of data automatic, I want to launch a script automatically when the modem is powered up and I don't know how to do that.

Thanks for helping.


Solution

  • You can run your script from the startup.groovy script in the scripts folder. This is automatically run every time the modem boots up.

    See the "Startup scripts" sidebar in the UnetHandbook for more details.