The Triangle2manager
sample application interacts with a SmartMesh IP mote. It drives the mote through the process of joining the network, and then periodically sends a 2-byte value (a triangle wave) to the SmartMesh IP manager.
The SmartMesh IP mote you connect to Arduino Due to need to operate in "slave" mode.
To see the data received by the SmartMesh IP manager, use the SmartMesh SDK SensorDataReceiver
sample application:
- Connect your SmartMesh IP manager to your computer.
- On the computer, start the
SensorDataReceiver
sample application from theSmartMesh SDK
, and connect that to the SmartMesh IP manager. - Load the
Triangle2manager.ino
sketch onto your Arduino Due board. - Reset the SmartMesh IP mote and open the Arduino Serial Monitor.
- On the monitor, you can follow how your SmartMesh IP mote joins the network.
- After the mote has joined, the slider on the
SensorDataReceiver
application is set to the value the mote periodically sends. - The state machine implemented in the
Triangle2manager.ino
sketch gracefully handles the Arduino Due or SmartMesh IP mote being reset.