Info |
---|
This application was added in REL-1.1.0. |
Introduction
This example script subscribes to all Data notifications and prints out the category and the type receivedThis example of each notification.
The script connects to a Manager the VManager using the Python library and does the following;:
- prompts Prompts the user for Vmanager lP the VManager IP address
- subscribes Subscribes to all data notifications
- prints out Prints each notification type received
It connects to:
- The SmartMesh IP The SmartMesh IP VManager
Running
You can run the "VMgr_AllNotifications.py
" application:
- by By double-clicking on its source files at
/vmanager_apps/VMgr_VMgr_AllNotifications.py
py
(may require additional steps on non-windows OSes)
Code Blocknoformat |
---|
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 |