Category : esp32

I have problem with code because sometimes I have an error: Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x40056722 PS : 0x00060c30 A0 : 0x8005682e A1 : 0x3ffb1ea0 A2 : 0x3ffb80c0 A3 : 0x800d1da9 A4 : 0x00000000 A5 : 0x0000000a A6 : 0x800d1da9 A7 : 0x00000008 ..

Read more

I create a project to receive message from MQTT. My full code is here https://github.com/kamshory/OTP-Mini/blob/main/Server/Server.ino WiFiClient espClient; PubSubClient client(espClient); void setup() { char * mqttServer = "192.168.1.3"; client.setServer(mqttServer, 1883); client.setCallback(mqttCallback); } void mqttCallback(const char* topic, byte* payload, unsigned int length) { Serial.print("Message arrived on topic: "); Serial.print(topic); Serial.print("Message: "); char * mqttTopic = "sms"; String ..

Read more

I’m triing to replace five "Adafruit_NeoPixel" objets by an array of 5 objects?. In other words, thansform this : Adafruit_NeoPixel strips_0 (LED_COUNT, LED_PIN_0, NEO_GRB + NEO_KHZ800); Adafruit_NeoPixel strips_1 (LED_COUNT, LED_PIN_1, NEO_GRB + NEO_KHZ800); Adafruit_NeoPixel strips_2 (LED_COUNT, LED_PIN_2, NEO_GRB + NEO_KHZ800); Adafruit_NeoPixel strips_3 (LED_COUNT, LED_PIN_3, NEO_GRB + NEO_KHZ800); Adafruit_NeoPixel strips_4 (LED_COUNT, LED_PIN_4, NEO_GRB + NEO_KHZ800); into ..

Read more

I have the following struct and map struct dataStruct{ unsigned long time; int32_t ch0; int32_t ch1; uint8_t state; int16_t temp; uint16_t vbat; int8_t rssi; }; std::map<uint32_t,struct dataStruct> uuidData = {}; And a loop which waits for new data and fills the map with it. (1) for(;;) { if (data_debug.is_new_data_available()) { uint32_t uuid = data_debug.get_ID(); uuidData[uuid] ..

Read more