Here is some info and code on keeping a socket open long term to pass code and commands between a desktop and an ESP32. The code includes both a server for the ESP32 and a client application for the desktop. Everything is in MicroPython. Should be easy to adapt to different situations. This just keeps the socket open for passing data. There is no protocol beyond that. Do whatever makes sense to you and your application.
Here is a link to the code: https://drive.google.com/open?id=1-qg...
And the answer is... Monty Python and the Holy Grail
Sur cette page du site, vous pouvez voir la vidéo en ligne This Changes Everything! - ESP32 Micropython Open Socket Tutorial with Code durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Clayton Darwin 11 novembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 12,361 fois et il a aimé 213 téléspectateurs. Bon visionnage!