Module Integration Guides
Linux

Integrate Config Updates

5min

Bytebeam enables you to remotely change the configuration of your application. This is done by sending JSON-based configuration to the device. This guide will walk you through how to achieve this.

Creating new device config.

Steps to update configuration:

Step 1: Go to the device management section in Bytebeam cloud.

Step 2: Go to the "Device Configs" section

Document image


Step 3: Click on "New Device Config"

Document image


Step 4: Enter the appropriate details for the device configuration. In this example, We are changing the current log level of our Python application

Document image




The new device config should be visible now.

Document image


On the device, First, register this action with uplink using its configuration file config.toml as we did in the Receiving Actions section. This file is present in /usr/local/share/bytebeam folder.

Edit this file to add the line actions=[{name="update_config"}] under [tcpapps.1] section.

config.toml


Restart the uplink using the following commands

Shell


Next using the following example you can update the configuration on your device

Python
Javascript
Rust
Go




Triggering config update

On the device management section of Bytebeam Cloud, select the device and click on Update Configuration

Document image




Select the appropriate config. version.

Document image


Confirm the selection.

Document image


You should now be able to see the status of the update on the cloud.



Document image