Page 1 of 1

Transferring data from ESP32 TCP protocol to C# interface

Posted: Wed Feb 09, 2022 1:42 pm
by furkan00
Hello everyone, first of all, I apologize if I have posted on the wrong topic.
I just started using ESP32. I have some problems I want to tell you, maybe you can help me. First of all, I am developing a project. transferring the data received from some sensors to a control station that I designed in C# interface using esp32 and tcp protocol (it must be tcp). We can call the part where the ESP32 is installed, the part where the server control station is located, the client. I was able to do this over UDP, but unfortunately I can't do it over TCP. I also have a router. I will open a wifi network from the router and connect both from esp32 and from the control station computer. Then I need to transfer the data from esp32 to the control station. Can you share if you have sample TCP code for me?

Thank you all. With all respect.

Re: Transferring data from ESP32 TCP protocol to C# interface

Posted: Thu Feb 10, 2022 1:42 am
by ESP_Sprite
ESP-IDF has example code for that. For instance, look in your esp-idf directory under esp-idf/examples/protocols/sockets/tcp_client .

Re: Transferring data from ESP32 TCP protocol to C# interface

Posted: Sun Feb 13, 2022 1:56 am
by Alberk
furkan00 wrote:
Wed Feb 09, 2022 1:42 pm
Hello everyone, first of all, I apologize if I have posted on the wrong topic.
I just started using ESP32. I have some problems I want to tell you, maybe you can help me. First of all, I am developing a project. transferring the data received from some sensors to a control station that I designed in C# interface using esp32 and tcp protocol (it must be tcp). We can call the part where the ESP32 is installed, the part where the server control station is located, the client. I was able to do this over UDP, but unfortunately I can't do it over TCP. I also have a router. I will open a wifi network from the router and connect both from esp32 and from the control station computer. Then I need to transfer the data from esp32 to the control station. Can you share if you have sample TCP code for me?

Thank you all. With all respect.
You now can write the whole thing in c#. There is a super active open sourced project that implements nanoCLR for iot.
https://www.nanoframework.net/