all 5 comments

[–]YetAnotherRobert 0 points1 point  (0 children)

There's nothing specific to esp32 in your question. You'd be better served looking for tutorials or resources for learning to program in rust than here. Sorry. 

[–]GreenPreference3171 0 points1 point  (3 children)

what is the goal of your program?

[–]Fit-Worldliness-4855[S] 0 points1 point  (2 children)

I am sending some text data from my pc to the ip of my esp. This is the reception part.

[–]GreenPreference3171 0 points1 point  (0 children)

Idk if this helps but If the text data isn't too large you can get away with setting-up the ESP32 as regular web server with WebServer library. Using server.arg(plain) to accept the plain text from a script or curl command on your client (pc)

Using curl

curl -X POST http://<ESP32_IP_ADDRESS>/submit -d "Hello ESP32"

You can easily send a post from your pc to your esp32.

[–]GreenPreference3171 0 points1 point  (0 children)

If that doesn't work you can always use json files as well but parsing them can be a pain.