Steps for Using Consentium IoT's OTA Service
Step 1: Prepare the OTA-Capable Sketch
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, but0.0
is used here for demonstration.
Step 2: Upload the Sketch to the IoT Board
Connect 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.
Step 3: Access the Consentium IoT Cloud
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.
Step 4: Prepare the Updated Firmware
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.
Step 5: Upload the New Firmware
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.
Step 6: Verify the Update
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