Fix loop bug when publishing data 🐛
This commit is contained in:
parent
c61718f811
commit
32b2ee190f
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -101,7 +101,8 @@ def main():
|
||||||
reset_variables()
|
reset_variables()
|
||||||
if PING_URL:
|
if PING_URL:
|
||||||
urllib.request.urlopen(PING_URL).read()
|
urllib.request.urlopen(PING_URL).read()
|
||||||
break
|
print("Done.")
|
||||||
|
return 0
|
||||||
|
|
||||||
except (btle.BTLEDisconnectError, IOError):
|
except (btle.BTLEDisconnectError, IOError):
|
||||||
print("Disconnected :(")
|
print("Disconnected :(")
|
||||||
|
|
Loading…
Reference in a new issue