Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This application was added in REL-1.1.0.

Introduction

This script subscribes to all notifications and prints them by the type received

The script connects to a Manager using the Python library and does the following:

  • Prompts the user for Vmanager lP address 
  • Subscribes to all 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_AllNotifications.py (may require additional steps on non-windows OSes)


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
  • No labels