This commit is contained in:
Your Name
2025-04-03 09:07:20 +02:00
parent 98e5a239f5
commit 6d3220665e

View File

@@ -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: