The firmware is located in the electron directory.
To build:
$ cd electron
$ particle login
$ rm electron_firmware_*.bin
$ make
$ particle flash --usb electron_firmware_*.bin
(Support for local toolchain is planned.)
- If
DEBUG_MODEis set to 1, the data will be logged to serial every 5 seconds. - If
DEBUG_MODEis set to 0, the data will be logged to the particle cloud as an event every hour.
The events are logged as events to the particle cloud with the event name measurement.
The data contains the measurements as comma separated key=value pairs. The
temperature values are returned as decimal milli-degrees celsius.
Keys:
t1: Main temperature sensorv: Battery voltagec: Battery capacity (percent)
Here's an example event:
{
"data":"t1=24997,v=3.945,c=85.3",
"ttl":"300",
"published_at":"2016-04-26T20:55:26.915Z",
"coreid":"4a005b001451343334363036",
"name":"measurement"
}