daas-sdk v0.17.9
Daas sdk for nodejs
Daas-sdk a Framework for implementing Internet of Things (IoT) solutions that guarantees a significant reduction in design and development times.
This is the official SDK for the DaaS API for Node.js. It provides a convenient wrapper around the native API.
Currently we support Linux, Windows and MacOS.
Installation
npm install daas-sdk
Documentation
You can generate the html documentation using the following command: npm run doc
, or in markdown format using npm run doc:md
.
Example
You can see the server souce code and client souce code in the examples folder.
In the example prepared we have 2 nodes, one is a server and the other one a client.
After the initial setup, the server will start listening for incoming messages from the client. And the client will send a message to the server every 5 seconds.
to run the example you can use the following commands in two different terminals:
node examples/server.js
node examples/client.js
Related projects
You can also take a look at a more complex example, we've built a Distributed configurable controll system using the Node.js Daas-IoT SDK on an express server.