Examples; Compile Example; Send Data; Running Example On Gateway - Advantech WISE-1540 User Manual

M2.com mesh network iot node
Table of Contents

Advertisement

4. Examples

There are two examples in WISE-1540 SDK. One is "Send Data" the user can refer to
it for how to use connectivity to send data from mote to gateway. The other is
"Exchange Data with Sensor Format" the user can refer to it for how to add sensor in
mote and send data accessed from sensor to WISE-PaaS through mote and gateway.

4.1. Compile example

Please refer to WISE-1540-SDK for compilation.
https://github.com/ADVANTECH-Corp/WISE-1540-SDK

4.2. Send Data

This example is demonstrated how we could send data from mote to gateway. The
user needs to run two programs synchronously that one is on WISE-1540 and the
other is on gateway. In example it communicates with gateway using API in
"mote_api.h" that can found located at folder "inc\wsn\sm_ipmt" of source tree of
WISE-1540 SDK. The API has been implemented based on SmartMesh IP Mote API
Guide and the user can refer to it for getting detailed if needed.

Running example on Gateway

Step01: Get IoT Gateway SDK and Setup on PC.
The IoT Gateway SDK is not provided as default and the user needs contact with
Advantech to get it.
Step02: Compile example.
① Set environment variable for compilation.
PC # cd /opt/poky/1.5.3/
PC # source ./environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
② The example "wise1021_senddata_gw.tar.bz2" is located in folder "src\sample" of
WISE-1540 User Manual
36

Advertisement

Table of Contents
loading

Table of Contents