Description
The SimpleIPUpstreamMote application works in coordination with the SimpleIPUpstreamMgr application:
- It connects to the mote on the supplied COM port
- It issues the join command and monitors the mote's state
- On reaching operational (4) state, it opens a socket and binds a port to it
- It sends the string "Hello, World!" every 5 seconds.
You can view the packets at the manager using the SimpleIPUpstreamMgr application.
Sample Output
SimpleIPUpstreamMote (c) Dust Networks SmartMesh SDK 1.0.6.139 Note: Use with SimpleIPUpstreamMgr - create the variable 'moteconnector' - connect to the mote's serial port Enter the serial API port of SmartMesh IP Mote (e.g. COM15): COM50 - have the mote join and wait until it reaches operational state current mote state: 1 current mote state: 2 current mote state: 2 current mote state: 2 current mote state: 2 ... current mote state: 2 current mote state: 3 current mote state: 4 current mote state: 4 current mote state: 4 current mote state: 4 current mote state: 4 current mote state: 4 current mote state: 5 - setup a socket - request a service - publish Hello, World! every 5s Just sent "Hello, World!", next transmission in 5s Just sent "Hello, World!", next transmission in 5s ...