yozik04 / nextion

Nextion serial client
GNU Lesser General Public License v3.0
25 stars 10 forks source link

Nextion Baud Problem #22

Open KAYAUgurBerat opened 3 years ago

KAYAUgurBerat commented 3 years ago

First of all, thank you for the library. I downloaded and installed the library and first I wanted to run the sample code you posted, but I can't run it because I got the baud error I shared below.

2021-06-04 16:09:25,938 - INFO - Connecting: COM4, baud: 9600 2021-06-04 16:09:25,950 - INFO - Connected to serial 2021-06-04 16:09:25,951 - DEBUG - sent: b'DRAKJHSUYDGBNCJHGJKSHBDN' 2021-06-04 16:09:26,198 - DEBUG - sent: b'connect' 2021-06-04 16:09:26,332 - DEBUG - sent: b'\xff\xffconnect' 2021-06-04 16:09:26,456 - WARNING - No valid reply on 9600 baud. Closing connection

What should i do to solve this error? Thank you for everything.

yozik04 commented 3 years ago

Try not to specify baud rate it should auto detect. Also I have not ever tried this code on Windows.