Update 'CARDPUTER CircuitPython/projects/udp_socket_chat/code.py'
This commit is contained in:
@@ -68,6 +68,14 @@ async def socket_recv():
|
|||||||
con_msg = ">> " + conn_client + " <<"
|
con_msg = ">> " + conn_client + " <<"
|
||||||
messages_list.append([con_msg, color])
|
messages_list.append([con_msg, color])
|
||||||
update_gui()
|
update_gui()
|
||||||
|
|
||||||
|
elif header == "messagelog":
|
||||||
|
msg = a["message"]
|
||||||
|
color = 0x89a0a8
|
||||||
|
messages_list.append([msg, color])
|
||||||
|
update_gui()
|
||||||
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_msg = str(e) + " (buffer size?)"
|
error_msg = str(e) + " (buffer size?)"
|
||||||
color = 0xff0000
|
color = 0xff0000
|
||||||
|
|||||||
Reference in New Issue
Block a user