DevMiser

Results 4 comments of DevMiser

Can this be caught by the DisconnectCallbackHandler? https://sinricpro.github.io/esp8266-esp32-sdk/class_sinric_pro_class.html#a654bb017ca55b448d55bb36e0346f38a I'm not sure if this works in python. Can you tell me how to convert the code example (SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n");...

I tried the following, but it did not work: def onDisconnected(cb): if cb == 'None': print ("Disconnected from Sinric Pro") callbacks = { 'powerState': onPowerState, 'Disconnected': onDisconnected }

Awesome. Thank you. It would be great to see this written into the Pro Switch example code.

I am now using this solution to reconnect automatically after being disconnected - using a while loop. When there is an error, it moves to the next lines in the...