it seem like i'm failing to understand why client.connected(); cannot stay as a member of the object/instance but only as a static
Apparently if i change it to this
void Class::init(){
Serial.println(client.connected());
xTaskCreate(
this->_run, // Function that should be called
"aMbr", // Name of the task (for debugging)
4096, // Stack size (bytes)
NULL, // Parameter to pass
2, // Task priority
NULL // Task handle
);
}
Hello, i'm setting up a separate task for my MQTT setup
in WiFi.onEvent(..., WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP) callback i call the init() of the class The loop has ArduinoOTA only
The crash i'm receiving is the following
it seem like i'm failing to understand why client.connected(); cannot stay as a member of the object/instance but only as a static Apparently if i change it to this
the println() is reporting 0 without crashing