diff --git a/CARDPUTER CircuitPython/projects/udp_socket_chat/code.py b/CARDPUTER CircuitPython/projects/udp_socket_chat/code.py index fc30c1d..878df54 100644 --- a/CARDPUTER CircuitPython/projects/udp_socket_chat/code.py +++ b/CARDPUTER CircuitPython/projects/udp_socket_chat/code.py @@ -68,6 +68,14 @@ async def socket_recv(): con_msg = ">> " + conn_client + " <<" messages_list.append([con_msg, color]) update_gui() + + elif header == "messagelog": + msg = a["message"] + color = 0x89a0a8 + messages_list.append([msg, color]) + update_gui() + + except Exception as e: error_msg = str(e) + " (buffer size?)" color = 0xff0000