VMgr_TemperatureData
This application was added in REL-1.1.0.
Introduction
This example script connects to a Manager using the Python library and does the following:
Prompts the user for the VManager IP address
Subscribes to data notifications
Parses received notifications to detect OAP temperature notifications from SmartMesh IP motes in Master mode
When an OAP temperature packet is received, prints Time/Date, MAC address, and temperature value to screen
It connects to:
The SmartMesh IP VManager
Requires SmartMesh IP motes running in Master mode
Running
You can run the VMgr_TemperatureData.py application:
By double-clicking on its source files at
/vmanager_apps/VMgr_TemperatureData.py(may require additional steps on non-windows OSes)
VMgr_TemperatureData Example (c) Dust Networks
SmartMesh SDK 1.1.0.1
Enter the IP address of the manager (e.g. 10.70.48.36): 10.70.48.35
==== Subscribing to data notifications
Waiting for notifications. Press any key to stop
09-12 11:11:04: Temperature from mote 00-17-0D-00-00-60-08-DC: 25.4 Deg Celsius
09-12 11:11:13: Temperature from mote 00-17-0D-00-00-60-08-DC: 25.2 Deg Celsius
Script ended normally