daas-sdk
Version:
nodejs wrapper for the DaaS-IoT SDK
38 lines (22 loc) • 1.33 kB
Markdown
# 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](https://www.daasiot.com/) API for Node.js. It provides a convenient wrapper around the native API.
Currently we support Linux, Windows and MacOS.
## Installation
```bash
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](./examples/server.js) and [client souce code](./examples/client.js) 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:
```bash
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*](https://github.com/sebyone/daasiot-examples-dccs) using the Node.js Daas-IoT SDK on an express server.