B4R Question rESP8255WIFI library uses logger

Gerardo Tenreiro

Active Member
Licensed User
Hello
I am trying to use the WIFI library, but I am using serial port 1 for communication with an encoder.

I randomly get communication errors with the encoder on serial port number 1, it is configured to 9600,E,8,2 so the logger does not allow me to see what is happening.

But I decided to cancel communication with the encoder and check where the error came from, so I configured the serial port to 115200,N,8,1 and I found this message that appears every time I try to connect to the WIFI network and it does not work.

Does anyone know how to prevent the WIFI library from sending these messages on serial port 1?

Thank you very much
E (118515) wifi:sta is connecting, return error
 

candide

Active Member
Licensed User
if you search your error with google, you will see similar messages with arduino on esp32 and esp8266
=> it is not issue in wrapper for B4R but issue in ESPRESSIF drivers for wifi
 
Upvote 0

Gerardo Tenreiro

Active Member
Licensed User
Thanks for the answer,

I already knew that, the problem is that I use port 1 for communication with an encoder and every time this error is sent from the library I lose the frame with the encoder which generates a performance problem that is very difficult to solve for the program.
The encoder is read every 7ms and its value affects the positioning of other elements, so as the library sends that through serial port 1, the encoder stops communicating for several cycles, depending on what moment of the frame it is in and so I lose the position and that generates serious problems for me.

The question is:
How can I prevent the WIFI library from using serial port 1?
Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…