Advanced SDK Configurations
You can additionally configure the BytebeamArduino via begin method. This would be helpful to customize the SDK as per your requirements.
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.
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.