This is a modified version of the simulated device provided by Google, you should use it only for testing purpouses. Like this sample data generator data will look like
{"deviceValue":45.360934963787756,
"deviceParameter":"Temperature",
"deviceId":"SBS01",
"dateTime":"2018-05-31T07:22:50.868Z"}
- Download and unzip the folder
- Run
npm install jsonwebtoken
- Run
npm install retry-request
- Open
device.js
and modify the variables under configuration - Get a private key from Google IoT and put in
private_key.pem
Run node device.js