Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmihaa committed Apr 30, 2019
1 parent 89bd409 commit ac68a73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Day_2_Read_telegrams_from_sensors_and_send_to_cloud.md
Expand Up @@ -80,10 +80,10 @@ As you could see in the previous step, the telegram is quite extensive and holds
```javascript
// Transforming the message to a more compact format
message = {
sensorId: message.sensorId,
temperature: message.telegram.datablocks[0].value,
unit: message.telegram.datablocks[0].unit,
ts: this.GetLocalTime()
deviceId : message.deviceId,
temperature : message.telegram.datablocks[0].value,
unit : message.telegram.datablocks[0].unit,
ts : this.GetLocalTime()
}

// For Console output
Expand Down

0 comments on commit ac68a73

Please sign in to comment.