Steps for Using Consentium IoT's OTA Service
PreviousConsentium IoT Sensor Data API — Developer Documentation v1 (depricated)NextConsentium Edge Machine Learning
Last updated
Create an OTA-Capable Sketch: Write an Arduino sketch for your ESP32, ESP8266, or Raspberry Pi Pico W that includes OTA functionality.
Set Firmware Version: Ensure the FIRMWARE_VERSION variable is set to "0.0". This indicates the initial firmware version. You can update this to any version number as needed, but 0.0 is used here for demonstration.
#define FIRMWARE_VERSION "0.0" // Initial firmware versionConnect the Board: Connect your IoT board to your development machine using a USB cable.
Upload the Sketch: Upload the OTA-capable sketch to the board using the Arduino IDE.
Log In: Log into the Consentium IoT Cloud.
Navigate to Device OTA: Go to the Device OTA page. You should see the OTA-capable device listed with its current firmware version displayed.

Disconnect the Board: Ensure the IoT board is no longer physically connected to the development machine.
Update the Sketch: Make any desired changes to your code and update the FIRMWARE_VERSION variable to "0.1" (or any new version number).
Export the Compiled Binary: In the Arduino IDE, go to the Sketch menu and click on Export Compiled Binary. This action generates a .bin file for the updated firmware, which will be saved in a folder under your project directory.

Upload the .bin File: Return to the Device OTA page in the Consentium IoT Cloud.
Select and Upload: Choose the generated .bin file and upload it to the appropriate board.
Check Firmware Versions: After the update is pushed, verify that the Current and Board Firmware Versions are the same to confirm the update was successful.
Last updated
#define FIRMWARE_VERSION "0.1" // Updated firmware version