Hello, so I am attempting to create a TCP/IP server using my Raspberry Pi Pico 2w as the client that sends data to a server on the desktop. Creating the server in a language like Java will make things easier but maintain performance.
I can already successfully have the temperature probe detect the temperature and send it in a serial port on my PC where it is read. I have also managed to leverage the multicore tools provided by Raspberry Pi to be able to have one core run the temperature probe and the other the client. I did a quick run by creating a server in Python and had the pico connect to the server. However, this is where the problems begin, the server doesn't respond to every packet submitted and it actually just stops there until one packet is able to be read and the client connection ceases. The server is able to successfully decode the information.
I used the examples provided by the documentation but the multicore implementation as well as some of the LWIP stack had to be done through thorough(probably trashy on my part) reading of the documentation. (Don't worry none of it is AI generated so there won't be surprises for me)
I have provided the main code.
This is the output I get
Writing 64 bytes to client
FROM CORE 0! The temperature is: 23.812500 °C
0: 23.812500
This basically keeps happening until
tcp_client_sent 1460
Sent more than buffer size
tcp_client_sent 1420
Sent more than buffer size
And then this keeps looping
Failed to write data -11