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 

Advanced SDK Configurations

6min

You can additionally configure the BytebeamArduino via begin method. This would be helpful to customize the SDK as per your requirements.

Provisioning Configuration

As long as the file system is supported by the device, you can pick any of the following file systems for device provisioning.

  • SPIFFSProvisioning
  • LITTLEFSProvisioning
  • FATFSProvisioning

Default Configuration inside the SDK are as follows,

Arch

File Sytem

File Name

ESP32

SPIFFS

/device_config.json

ESP8266

LITTLEFS

/device_config.json

You can override the default configurations as follows,

  • Provision your device with the required configurations.
  • Specify the same configurations in your sketch via begin method.

Before moving further make sure you have the selected file system partition (say SPIFFS). For this to ensure, you can select the partition table setting under Tools section. See Tools > Partition Scheme within the Arduino IDE.

Document image

C++
|
// using spiffs file system
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json");

// using littlefs file system
Bytebeam.begin(BytebeamArduino::LITTLEFS_FILE_SYSTEM, "/my_device_config.json");

// using fatfs file system
Bytebeam.begin(BytebeamArduino::FATFS_FILE_SYSTEM, "/my_device_config.json");



Debug Configuration

We have implemented the various log levels inside the BytebeamArduino and with this you can control the SDK logging as per your requirement. Default log level is BytebeamLogger::LOG_WARN inside the SDK.

Note: We recommend going for BytebeamLogger::LOG_INFO log level while prototyping your sketch.

C++
|
// debug level : none
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_NONE);

// debug level : error
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_ERROR);

// debug level : warn
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_WARN);

// debug level : info
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_INFO);

// debug level : debug
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_DEBUG);

// debug level : trace
Bytebeam.begin(BytebeamArduino::SPIFFS_FILE_SYSTEM, "/my_device_config.json", BytebeamLogger::LOG_TRACE);





Updated 17 May 2023
Did this page help you?
Yes
No
PREVIOUS
Setting up BytebeamArduino for GSM Connectivity
NEXT
PlatformIO Integration
Docs powered by archbee 
TABLE OF CONTENTS
Provisioning Configuration
Debug Configuration