Difference between revisions of "IoTGW/SDK/SampleCodeUseCase"

From ESS-WIKI
Jump to: navigation, search
(Get all of IoTGW network interfaces' value)
(Get all of IoTGW network interfaces' value)
Line 7: Line 7:
 
=Get all of IoTGW network interfaces' value=
 
=Get all of IoTGW network interfaces' value=
 
  '''Description:''' Get all latest data of IoTGW's network interfaces.
 
  '''Description:''' Get all latest data of IoTGW's network interfaces.
         '''How:''' Call the SN_Manager_GetData and pass "IoTGW" to pszInURI.
+
         '''How:''' Call the SN_Manager_GetData and pass "IoTGW" to pszInURI then return all latest IoTGW network interfaces' status in JSON.
 
         '''Step:''' Select "1" and type "IoTGW" then Enter:
 
         '''Step:''' Select "1" and type "IoTGW" then Enter:
 
  [[File:Sample WSN SDK 2.jpg|600x1000px]]
 
  [[File:Sample WSN SDK 2.jpg|600x1000px]]

Revision as of 07:30, 25 February 2016

Get the IoTGW's capabilities (resources)

Description: First, you need to get the capability of IoTGW network interfaces.
        How: Call the SN_Manager_GetCapability to get capability of IoTGW network interface in JSON format.
       Step: Select "0" & Enter:
Sample WSN SDK 1.jpg

Get all of IoTGW network interfaces' value

Description: Get all latest data of IoTGW's network interfaces.
        How: Call the SN_Manager_GetData and pass "IoTGW" to pszInURI then return all latest IoTGW network interfaces' status in JSON.
       Step: Select "1" and type "IoTGW" then Enter:
Sample WSN SDK 2.jpg

Get the Health status of the WSN network interface

Description: Only to get the "Health" status of dust link network interface (MAC:00170d0000582cca)
How: Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/Health" to pszInURI.
Step: Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/Health" then Enter:
Sample WSN SDK 4.jpg

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:
Sample WSN SDK 3.jpg