gerasdf / esp8266

ESP8266 code
0 stars 1 forks source link

/settoken should clean updates #35

Closed gerasdf closed 4 years ago

gerasdf commented 4 years ago

if /settoken doesn't clean updates, and the device is the only one in the bot, the /settoken command will persist and will be again effective on next reconnection to the same token.

Specially when coming back from a timeout. It's kind of needed or it otherwise enters in a bouncing loop going form one to the other.

gerasdf commented 4 years ago

/reset should clean too, as it's a way to roll back ownership and may lead to a loop /confirmtoken should also clean, specially when rejecting a token