Skip to content

Commit

Permalink
修复socket状态指令错误
Browse files Browse the repository at this point in the history
  • Loading branch information
TshineZheng committed May 22, 2024
1 parent be7a111 commit a0b9120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def on_socket_recv(client, data):
gc_free = gc.mem_free()
gc_alloc = gc.mem_alloc()
socket_server.send(
client, f'esp32c3 memory alloc:{alloc}, free:{free}')
client, f'esp32c3 memory alloc:{gc_alloc}, free:{gc_free}')

return True

Expand Down Expand Up @@ -69,6 +69,7 @@ def on_client_disconnect(client, address):
log_boot() # 记录启动

import webrepl

webrepl.start(password='123456')

thread_id = _thread.start_new_thread(wifi_connect.wifi_check, ()) # 启动Wifi检测线程
Expand Down

0 comments on commit a0b9120

Please sign in to comment.