tplink-smartplug icon indicating copy to clipboard operation
tplink-smartplug copied to clipboard

add retry loop

Open Solarbytes opened this issue 7 years ago • 0 comments

First of all, thank you for posting this simple code thatvworked out of the box for me. I am facing one issue when querying the plug repeatedly every 5 or 10 seconds. After 20 successful queries, I randomly get socket errors that cause the script to terminate. I tried inserting a retry loop but can't get a better result. Any ideas how to address this issues? Inserting a retry loop might help...

Solarbytes avatar Mar 07 '18 03:03 Solarbytes