Difference between revisions of "IoTGW/SDK/SampleCodeUseCase"
From ESS-WIKI
(→Get which SenHubs are connecting to the IoTGW?) |
|||
Line 12: | Line 12: | ||
=Get the Health status of the WSN network interface= | =Get the Health status of the WSN network interface= | ||
− | '''Description:''' Only to get the "Health" status of dust link network interface ( | + | '''Description:''' Only to get the "Health" status of dust link network interface (UID:00170d0000582cca) |
'''How:''' Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/Health" to pszInURI. then return the "Health" status in JSON format. | '''How:''' Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/Health" to pszInURI. then return the "Health" status in JSON format. | ||
'''Step:''' Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/Health" then Enter: | '''Step:''' Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/Health" then Enter: | ||
Line 22: | Line 22: | ||
'''Step:''' Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/SenHubList" then Enter: | '''Step:''' Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/SenHubList" then Enter: | ||
[[File:Sample WSN SDK 3.jpg|1200x250px]] | [[File:Sample WSN SDK 3.jpg|1200x250px]] | ||
+ | |||
+ | =Get all value of a SenHub (UID:00170d0000306265)= | ||
+ | '''Description:''' Get all values of a SenHub ( UID: 00170d0000306265) | ||
+ | '''How:''' Call the SN_Manager_GetData and pass "00170d0000306265/SenHub" to pszInURI then return result in JSON format. | ||
+ | '''Step:''' Select "1" and type "00170d0000306265/SenHub" then Enter: | ||
+ | [[File:Sample WSN SDK 5.jpg|600x100px]] | ||
+ | |||
+ | =Get the sensor(Ultrasonic) value of SenHub( UID: 00170d0000306265)= | ||
+ | '''Description:''' Get the sensor(Ultrasonic)'s value of SenHub ( UID: 00170d0000306265) | ||
+ | '''How:''' Call the SN_Manager_GetData and pass "00170d0000306265/SenHub/SenData/Ultrasonic" to pszInURI then return result in JSON format. | ||
+ | '''Step:''' Select "1" and type "00170d0000306265/SenHub/SenData/Ultrasonic" then Enter: | ||
+ | [[File:Sample WSN SDK 6.jpg|1200x250px]] |
Revision as of 07:44, 25 February 2016
Contents
- 1 Get the IoTGW's capabilities (resources)
- 2 Get all of IoTGW network interfaces' value
- 3 Get the Health status of the WSN network interface
- 4 Get which SenHubs are connecting to the IoTGW?
- 5 Get all value of a SenHub (UID:00170d0000306265)
- 6 Get the sensor(Ultrasonic) value of SenHub( UID: 00170d0000306265)
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:
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:
Get the Health status of the WSN network interface
Description: Only to get the "Health" status of dust link network interface (UID:00170d0000582cca) How: Call the SN_Manager_GetData and pass "IoTGW/WSN/00170d0000582cca/Info/Health" to pszInURI. then return the "Health" status in JSON format. Step: 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 then return SenHub list in JSON format. Step: Select "1" and type "IoTGW/WSN/00170d0000582cca/Info/SenHubList" then Enter:
Get all value of a SenHub (UID:00170d0000306265)
Description: Get all values of a SenHub ( UID: 00170d0000306265) How: Call the SN_Manager_GetData and pass "00170d0000306265/SenHub" to pszInURI then return result in JSON format. Step: Select "1" and type "00170d0000306265/SenHub" then Enter:
Get the sensor(Ultrasonic) value of SenHub( UID: 00170d0000306265)
Description: Get the sensor(Ultrasonic)'s value of SenHub ( UID: 00170d0000306265) How: Call the SN_Manager_GetData and pass "00170d0000306265/SenHub/SenData/Ultrasonic" to pszInURI then return result in JSON format. Step: Select "1" and type "00170d0000306265/SenHub/SenData/Ultrasonic" then Enter: