Usocket server problem!

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
KrisRevi
Posts: 7
Joined: Wed Jul 01, 2020 6:45 pm

Usocket server problem!

Post by KrisRevi » Thu Jul 09, 2020 2:49 pm

Entire Code :
https://hastebin.com/bijoweviqo.py

It starts up fine

Code: Select all

I (5125) modsocket: Initializing
[SOCKET] Created
[SOCKET] bind complete
[SOCKET] now listening

i conect fine

Code: Select all

[SOCKET] Connected with 192.168.10.107:54877
but when i connect i get this

Code: Select all

OK...GET / HTTP/1.1
Host: 192.168.10.169:80
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: PRzxM/GD/bxdFinMlOGAEg==
Sec-WebSocket-Version: 13
and after that when i try to send data it does not print/show in the terminal window of the socket server :S why?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Usocket server problem!

Post by jimmo » Mon Jul 13, 2020 2:05 am

I would recommend adding a "print" inside the "except" just to make sure that there wasn't any errors. Also should that "continue" be a "break" ?

Post Reply