These are chat archives for esp8266/Arduino
@porkyneal Well, yes. When you think dynamic change, think of using pointers to objects instead of objects. So you can just destroy the old one and create a new one. Make sure to stop the old one first. This is the preferred method follows (pseudo code)
MyTask* pMyTask = NULL; // at some point taskManager.StopTask( pMyTask ); delete pMyTask; pMyTask = new MyTask(newTimeValue); taskManager.StartTask(pMyTask);
But if you look, the member variable _timeInterval is protected so in the task it can change this. Make sure you still call taskManager.StopTask() first before changing it, and then call taskManager.StartTask() to get it going again. I may in the future lock those down.
char blah1, blah2; int a, b, c;etc in your code, the compiler is smart enough to just
correct, was just going through a detailed blog
extern "C" void real_system_restart_local();
queryServicemethod takes a callback function and will call that once for each parsed answer as it is parsed (so from
_parsePacket()). An alternative is to build a list of answers and just set a flag and let the user poll for answers, but that has the drawback of eating up RAM to store all answers (even ones the user might not care about).
_parsePacket()takes to long?
Dear PlatformIO Users,