Skip to content

manulsan/LooksPlusIO-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS SDKs

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.

atCloud365.com Blocks

Preparations

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.

Examples

The README.md file provides instructions on how to use the source code for each individual example.

Sensor example

  • The sensor example illustrates how to connect to a server and transmit data.
  • Upload only as one-wey communcation

Actuator example

  • The actuator example illustrates how to connect to a server and engage in two-way communication.

Files on Example

  • .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 
    }`

How to use SDK

  1. Install dependency module

    yarn  # or npm install
  2. Edit ".env" file for device-serial-number

    SN="xxxxxxxxxxyyyyyyyyyy1" # replace your device-serial-number
    pubInterval= 10000           # data upload interval
  3. Run

    yarn atwindows    # run on windows at command prompt
    yarn atlinux      # run on linux at shell

Device Definition

  • All developers define development products(as device) and its properties at atcloud365/mfg
  • Signup required("make your own account")

Device and Properties

  • Define device name and other stuffs

Defining device and its properties

Device serial # Generations

  • Device Serial No. is generated and generated # can be used at device F/W

Generating Devices' Serial No.

Device Testing

  • Device can be tested at atcloud365 using its serial #
    • Signup required("make your own account, it is different from mfg account")

Registering Device

Registering device. Registering device.

About

This is the NodeJs SDKs for atcloud365.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published