Difference between revisions of "IoTGW/SDK/SampleCodeUseCase"
From ESS-WIKI
(→Get the Health status of the WSN network interface) |
(→Get which SenHubs are connecting to the IoTGW?) |
||
Line 18: | Line 18: | ||
=Get which SenHubs are connecting to the IoTGW?= | =Get which SenHubs are connecting to the IoTGW?= | ||
+ | Description: Get the "SenHubList" status of dust link network interface (MAC:00170d0000582cca) | ||
+ | How: Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/SenHubList" to pszInURI. | ||
+ | Step: Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/SenHubList" then Enter: | ||
+ | [[File:Sample WSN SDK 3.jpg|1200x250px]] |
Revision as of 07:25, 25 February 2016
Contents
Get the IoTGW's capabilities (resources)
Call the SN_Manager_GetCapability to get capability of IoTGW network interface in JSON format. Description: First, you need to get the capability of IoTGW network interfaces. Select "0" & Enter:
Get all of IoTGW network interfaces' value
Call the SN_Manager_GetData and pass "IoTGW" to pszInURI. Description: Get all latest data of IoTGW's network interfaces. Select "1" and type "IoTGW" then Enter:
Get the Health status of the WSN network interface
Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/Health" to pszInURI. Description: Only to get the "Health" status of dust link network interface (MAC:00170d0000582cca) Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/Health" then Enter:
Get which SenHubs are connecting to the IoTGW?
Description: Get the "SenHubList" status of dust link network interface (MAC:00170d0000582cca) How: Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/SenHubList" to pszInURI. Step: Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/SenHubList" then Enter: