Skip to content

Starter device client code in NodeJS, for a Raspberry Pi device with GrovePi sensors, to communicate with Oracle IoT Cloud Service

License

Notifications You must be signed in to change notification settings

raymondxie/iotcs-grovepi-nodejs

Repository files navigation

iotcs-grovepi-nodejs

Starter device client code in NodeJS, for a Raspberry Pi device with GrovePi sensors, to communicate with Oracle IoT Cloud Service This client device is tested with IoTCS Server version 16.4.1.0.0

Sensor Configuration

You can configure the sensors connected to GrovePi ports, and map them to the data attribute defined in device model.

{ "pin": "A2", "type": "LightAnalogSensor", "attr": "light", "val": 0.0 }

Basically it says: A light sensor is hooked on A2 port, and the reading is associated with "light" attribute in device model, with attribute value initialized to 0.0

Start Device Client program

Just type at command line of Raspberry Pi:

node workshop.js provisioning-file-name file-password

About

Starter device client code in NodeJS, for a Raspberry Pi device with GrovePi sensors, to communicate with Oracle IoT Cloud Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published