Skip to content
Dusuniot edited this page Aug 5, 2019 · 11 revisions

This wiki provides information about how to develop ZigBee/Z-Wave applications on Dusun's smart IoT gateways. For information about Dusun gateways, please visit here.

Introduction

Gateway feature summary

Dusun IoT gateways support many protocols for wireless connectivity types including ZigBee 1.2/3.0, BLE(4.0/5.0/Mesh), Z-Wave, Wi-Fi, 3G/4G, etc. The gateways support MQTT, COAP and other standard IoT internet protocols, which make them be connected to any cloud platform. The gateway APIs let customers make their programs to control the data transfer procedure and and use their security mechanism. Dusun gateways are suitable for many IoT applications and have been widely applied in home automation, smart office, agriculture, rental apartment and other IoT solutions.

Gateway configuration

Before developing on the gateway to get or send data to IoT sensors, users should do some configuration. Configuration details are the in this page.

Developing an application using APIs

API reference

Dusun has provided a library (please see the code files) in which a set of APIs can be used to fetch data from the IoT sensors/devices. The API library includes the static link library (librbsdk.a) and a corresponding header file (rbsdk.h). The API functions can be seen from the header file (rbsdk.h). Users can refer to API reference page for API functions introduction.

Writing an application with APIs

Writing an application to communicate with sensors and cloud is in fact writing a C/C++ linux application with APIs dusun provided. The coding flow can be referred to the examples.

Compiling and running the application

After the above writing code step is completed, users can compile the code and run the applications on the gateway. The compiling and running page shows the procedures.