-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
Here's a simple sketch that does nothing:
#include <ESP8266WiFi.h>
#define THINGSBOARD_ENABLE_DYNAMIC 1
#include <Arduino_MQTT_Client.h>
#include <OTA_Firmware_Update.h>
#include <Server_Side_RPC.h>
#include <Shared_Attribute_Update.h>
#include <ThingsBoard.h>
WiFiClient espClient;
Arduino_MQTT_Client mqttClient(espClient);
OTA_Firmware_Update<> ota;
Server_Side_RPC<> rpc;
Shared_Attribute_Update<> shared_update;
const std::array<IAPI_Implementation*, 3U> apis = { &rpc, &ota, &shared_update };
ThingsBoard tb(mqttClient, 128U, 128U, Default_Max_Stack_Size, Default_Max_Response_Size, apis.cbegin(), apis.cend());
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print(".");
delay(1000);
}
When I compile this and flash it to a D1 mini (with an ESP8266MOD on it), it causes a boot loop:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00062080
~ld
Hardware WDT Stack Dump - enabled
If I remove one of the APIs and adjust the array length, then it stops crashing.
Not sure what's going on here. Out of memory? I have enabled all the log levels including OOM but it won't show any more info than that.
Metadata
Metadata
Assignees
Labels
No labels