Skip to content

Instantly share code, notes, and snippets.

@neerajnagi
Last active May 16, 2016 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neerajnagi/0b48d5218c1fdfaa8dc7 to your computer and use it in GitHub Desktop.
Save neerajnagi/0b48d5218c1fdfaa8dc7 to your computer and use it in GitHub Desktop.
format for different sensor types

AC

{"sensor_id":"B0:B4:48:BE:96:85","data":{ "index":1,datatype"=7, "type":"AC","content":{"x":"-0.022","y":"-0.026","z":"-1.083"}},"t":"2015-10-28T06:09:26.583-0400","source":"ble"}

MG

{"sensor_id":"B0:B4:48:BE:96:85","data":{ "index":1,datatype"=8,  "type":"MG","content":{"x":"+47.500","y":"+8.667","z":"+132.333"}},"t":"2015-10-28T06:09:26.587-0400","source":"ble"}

IR

{"sensor_id":"B0:B4:48:BA:43:07","data":{ "index":1,"datatype"=2, "type":"IR","content":"16.1875"},"t":"2015-10-28T06:09:26.599-0400","source":"ble"}

VAC

{"sensor_id":"B0:B4:48:BA:43:07","data":{ "index":1, "datatype":1, "type":"VAC","content":"16.1875"},"t":"2015-10-28T06:09:26.599-0400","source":"ble"}

datatype could be 1

PF

{"sensor_id":"B0:B4:48:BA:43:07","data":{ "index":2,"datatype":4"type":"PF","content":"1,2;3,4;5,6;7,8,9"},"t":"2015-10-28T06:09:26.599-0400","source":"ble"}

datatype could be 4|5|6

HTR

{"sensor_id":"B0:B4:48:BA:43:07","data":{ "index":1, "datatype":3, "type":"HTR","content":"1"},"t":"2015-10-28T06:09:26.599-0400","source":"ble"}

HY (humidity )

{"sensor_id":"b0b448b80f06","data":{"index":1,"type":"HY","content":"26.5277099609375"},"msgType":"data","t":"2016-05-16T04:54:45.403-0400","source":"ble"}

BP ( barometric pressure )

{"sensor_id":"b0b448b80f06","data":{"index":1,"type":"BP","content":"1004.05"},"msgType":"data","t":"2016-05-16T04:54:45.764-0400","source":"ble"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment