update
This commit is contained in:
@@ -756,7 +756,7 @@ try:
|
|||||||
print("<hr>")
|
print("<hr>")
|
||||||
|
|
||||||
#Send notification (WIFI)
|
#Send notification (WIFI)
|
||||||
send_error_notification(device_id, "serial_error")
|
send_error_notification(device_id, "serial_error(no answer from sara)")
|
||||||
|
|
||||||
#end loop
|
#end loop
|
||||||
sys.exit()
|
sys.exit()
|
||||||
@@ -1211,13 +1211,14 @@ try:
|
|||||||
print('<p class="text-success">No error detected</p>')
|
print('<p class="text-success">No error detected</p>')
|
||||||
elif error_code == 4:
|
elif error_code == 4:
|
||||||
print('<p class="text-danger">Error 4: Invalid server Hostname</p>')
|
print('<p class="text-danger">Error 4: Invalid server Hostname</p>')
|
||||||
|
send_error_notification(device_id, "uSpot - Invalid server Hostname")
|
||||||
elif error_code == 11:
|
elif error_code == 11:
|
||||||
print('<p class="text-danger">Error 11: Server connection error</p>')
|
print('<p class="text-danger">Error 11: Server connection error</p>')
|
||||||
elif error_code == 22:
|
elif error_code == 22:
|
||||||
print('<p class="text-danger">Error 22: PSD or CSD connection not established</p>')
|
print('<p class="text-danger">Error 22: PSD or CSD connection not established</p>')
|
||||||
elif error_code == 73:
|
elif error_code == 73:
|
||||||
print('<p class="text-danger">Error 73: Secure socket connect error</p>')
|
print('<p class="text-danger">Error 73: Secure socket connect error</p>')
|
||||||
|
send_error_notification(device_id, "uSpot - Secure socket connect error")
|
||||||
else:
|
else:
|
||||||
print(f'<p class="text-danger">Unknown error code: {error_code}</p>')
|
print(f'<p class="text-danger">Unknown error code: {error_code}</p>')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user