Transferring data from ESP32 TCP protocol to C# interface

furkan00
Posts: 1
Joined: Wed Feb 09, 2022 11:41 am

Transferring data from ESP32 TCP protocol to C# interface

Postby furkan00 » 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.

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu Feb 10, 2022 1:42 am

ESP-IDF has example code for that. For instance, look in your esp-idf directory under esp-idf/examples/protocols/sockets/tcp_client .

Alberk
Posts: 55
Joined: Sat Jun 19, 2021 1:49 am

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

Postby Alberk » Sun Feb 13, 2022 1:56 am

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/

Who is online

Users browsing this forum: No registered users and 88 guests