// Not really public, used by C trampolines void onConnect(int status) { const bool connected = status == 0; if (connected) { subscribePorts(); sendDiscovery(); } }
void Mirobot::loop(){ marcel.loop(); ledHandler(); servoHandler(); autoHandler(); calibrateHandler(); sensorNotifier(); #ifdef ESP8266 if(wifiEnabled){ sendDiscovery(); updateHandler(); } #endif checkReady(); }