This is a software development kit for device developers. It is a NodeJS sample code for developing devices that are integrated with the atcloud365.com platform. This sample demonstrates how to connect to the server and send data.
Live Demo : https://atcloud365.com
Before using sdks, Developers are required to register, and upon logging in, they should define the device's attributes and generate device's "serial number" that are used in SDK or mass production.
- Signup as Manufacture (https://atcloud365.com/mfg)
The README.md file provides instructions on how to use the source code for each individual example.
- The sensor example illustrates how to connect to a server and transmit data.
- Upload only as one-wey communcation
- The actuator example illustrates how to connect to a server and engage in two-way communication.
-
.env
SN="xxxxxxxxxxyyyyyyyyyy1" # device serial number that is generated at pubInterval= 5000 # data upload interval
-
.env.dev
socketIo = `{ "url":"https://atcloud365.com", # socketIo server URL "path":"/api/dev/io" # socketIo path }`
-
Install dependency module
yarn # or npm install
-
Edit ".env" file for device-serial-number
SN="xxxxxxxxxxyyyyyyyyyy1" # replace your device-serial-number pubInterval= 10000 # data upload interval
-
Run
yarn atwindows # run on windows at command prompt yarn atlinux # run on linux at shell
- All developers define development products(as device) and its properties at atcloud365/mfg
- Signup required("make your own account")
- Define device name and other stuffs
- Device Serial No. is generated and generated # can be used at device F/W
- Device can be tested at atcloud365 using its serial #
-
- Signup required("make your own account, it is different from mfg account")