OpenBCI / OpenBCI_WIFI

Firmware library that runs on the OpenBCI WiFi Shield
https://shop.openbci.com/collections/frontpage/products/wifi-shield?variant=44534009550
MIT License
34 stars 30 forks source link

Add option to enable / disable timestamps & sample number #27

Closed marionleborgne closed 7 years ago

marionleborgne commented 7 years ago

In the /mqtt endpoint, add an option to enable / disable timestamps & sample number so that this information is added / removed from the sample transmitted via MQTT.

So the body of POST /mqtt would be:

{
  "broker_address": "...",
  "username": "...",
  "password": "...",
  "enable_timestamp": true,
  "enable_sample_count": true
}
andrewjaykeller commented 7 years ago

done!

sample numbers now turned off by default and timestamps are on by default, will update swagger with how to set these on GET /mqtt