This application was added in REL-1.1.0.
Introduction
This script subscribes to all Data notifications and prints out the type received
This example script connects to a Manager using the Python library and does the following;
- prompts the user for Vmanager lP address
- subscribes to all data notifications
- prints out notification type received
It connects to:
- The SmartMesh IP VManager
Running
You can run the "VMgr_AllNotifications.py" application:
- by double-clicking on its source files at
/vmanager_apps/VMgr_VMgr_AllNotifications.py
VMgr_AllNotifications Example (c) Dust Networks SmartMesh SDK 1.1.0.1 Enter the IP address of the manager (e.g. 10.70.48.69 ): 10.70.7.104 ==== Subscribing to all notifications Waiting for notifications from mote, Press any key to stop Data notification --> Type=dataPacketReceived Data notification --> Type=dataPacketReceived Data notification --> Type=dataPacketReceived Data notification --> Type=dataPacketReceived Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport HR notification --> Type=discoveryHealthReport HR notification --> Type=rawMoteNotification Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived Event notification --> Type=pathStateChanged HR notification --> Type=discoveryHealthReport HR notification --> Type=discoveryHealthReport Event notification --> Type=pathStateChanged Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived Event notification --> Type=pathStateChanged HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport Data notification --> Type=dataPacketReceived Data notification --> Type=dataPacketReceived HR notification --> Type=discoveryHealthReport Script ended normally