소스 검색

Add 'CARDPUTER CircuitPython/projects/udp_socket_chat/readme.md'

cube 1 개월 전
부모
커밋
19040e1eeb
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10
    0
      CARDPUTER CircuitPython/projects/udp_socket_chat/readme.md

+ 10
- 0
CARDPUTER CircuitPython/projects/udp_socket_chat/readme.md 파일 보기

@@ -0,0 +1,10 @@
1
+# features
2
+- uses wifi switcher - be sure to set up the list + settings.toml appropriately
3
+- automatically tries to "connect" to cubes.link:1337 - server.py
4
+- uses asyncio to swap between checking for keypresses and checking for incoming messages, typing is seamless and incoming messages aren't missed waiting for key presses
5
+- udp so there is no connection, and no regard for whether packets actually arrive. this is by design since it simplifies things
6
+- check out server.py and client.py for compatible CLI programs. server.py should be ran on cubes.link server (or adjust internal ip addresses in the code.py and client.py) and client.py can be ran on any machine that supports python files
7
+
8
+# notes
9
+- the keyb.py lib was updated for this project, be sure to grab the new one
10
+- since the serial read that is used in keyboard scanning needs to be handled by the program so it can be dropped if nothing is detected in half a second, pass to checking for messages, then come back again - keyb.py now accepts a key code in kwargs