Skip to content
Gopal Kildoliya edited this page Jun 25, 2018 · 2 revisions

OTA Updates for Sensors

SwarmSense has OTA module to devices' firmware update. You can upload firmware for a specific sensor type and when the sensor requests for new firmware, this latest firmware will be delivered to the sensor.

While requesting for new firmware, sensor should send the current version in request params. SwarmSense has builtin support for MongooseOS OTA requests.

Endpoint

GET Request to: /ota/update

Params: version Your current version.

Params: sensor_id Sensor ID. Currently doesn't support sensor HID.

If the server has a different version for your device, it will return that firmware file. Else it will return a 404 response.

Upload new firmware

  • Go to admin section and the OTA.
  • Add a new firmware
  • Select your sensor type, add version number, add file and upload.
  • Select your test sensor to test with
Clone this wiki locally