website logo
BlogPlansAbout UsCareersSignup
⌘K
Introduction
Getting started on Bytebeam Cloud
Concepts
Projects
Streams
Device Shadow
Device Metadata
Actions
Module Integration Guides
ESP32
Arduino
Console Guides
Device Management
Dashboards
Streams (Tables)
Actions
Users
Roles
Release Notes
R10 24-May-2023
R9 10-May-2023
R8 26-Apr-2023
R7 05-Apr-2023
R6 22-Mar-2023
R5 08-Mar-2023
R4 22-Feb-2023
R3 10-Feb-2023
R2 01-Feb-2023
R1 19-Jan-2023
Docs powered by archbee 

Update Configurations

2min

With Bytebeam you can remotely update the device configuration in the field at any time, this will make sure that the device has optimal configurartion at all time. You can use the bytebeam_add_action_handler function to add the handler for update_config action.

C++
|
// handler for update_config action
int handle_update_config(bytebeam_client_t *bytebeam_client, char *args, char *action_id)
{
  // log the received arguments and action id to serial for the refrence
  ESP_LOGI(TAG, "UpdateConfig Action Received !");
  ESP_LOGI(TAG, "<--- args : %s, actionId : %s --->\n", args, actionId);

  //
  // parse the received json here

  //

  //
  // update the actual device configurations here
  //

  //
  // publish action status here
  //

  return 0;
}

// add the handler for update config action
bytebeam_add_action_handler(&bytebeam_client, handle_update_config, "update_config");



Have a look at update_config example app for a full-fledged example showing how you can update the device configurations and publish the status response to bytebeam cloud.

Follow the below steps to trigger device config updates :)

  • Add device configurations and create a new device config version on Bytebeam as per the instructions mentioned in the Creating a new Device Configuration guide.
  • Once, new device config version is created, trigger device config update as per the instructions mentioned in the Triggering Device Config Update guide.
  • Progress of the device config update can be monitored on Bytebeam platform using Action status.



Updated 17 May 2023
Did this page help you?
Yes
No
PREVIOUS
Integrate Over the air updates
NEXT
Cloud Logging
Docs powered by archbee