IoTGateway/SDK

From ESS-WIKI
Jump to: navigation, search

Overview

This tutorial is designed for software programmers who want to learn the basics of WSN API SDK and its architectural concepts. This tutorial will give you enough understanding on all the necessary components of WSN API SDK with suitable examples.



WSN API Software Stack

Documentation

Advantech Sensor Format in JSON

Install WSN SDK

You can get the latest Wireless Sensor Network Software Development Kit(SDK) version from:

1. Copy the WSN SDK to your Target Device ( ex: WISE-3310 )
2. Unzip the SDK 
   #unzip sennet-wise_3310-1.2.00.0280.zip
   unzip
3. To install the wsn sdk & select target folder ( Recommend use the Default "/usr/lib/" setting <- Enter )
   #./sennet-wise_3310-1.2.00.0280.run
   installer
4. Completed the Installation
   Completed
5. You can then run the wsn demo application
   #sampleSNManagerAPI
    sample

Installation of Wireless Sensor Network (WSN) SDK

Sample Code Use Case

Sample Code of WSN API SDK

Note

Please disable "cagnet" to run the sample code. Because the COM port can be used by one program only.
#/ect/init.d/saagent stop

Abstrac

The following example shows how to use the "WSN API SDK". The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status.

Sample Code

Sample Code demonstrates how to use the WSN API SDK to manage IoTGW and Sensor Hubs.


Use Case

Sample Code of WSN APIMux SDK

Abstrac

The following example shows how to use the "WSN APIMux SDK". The sample code for the command line tool to perform get/set IoT gateway(WISE-3310) and Sensor Hub(WISE-1020)s' status.
WSN APIMux SDK only supports SN_Manager_GetData and SN_Manager_SetData two functions.


Sample Code

Sample Code demonstrates how to use the WSN API Mux SDK to manage IoTGW and Sensor Hubs.

Sample Code Use Case

Use Case

Creating a New Network Type

Network Abstraction Layer Interface