I'm just getting into learning about how to use my nodemcu V3 module and I've got it all set up and can control an LED via web server. I understand how it works in that the arduino program checks if different buttons/indexes are requested to toggle the LEDs. My end goal however is to use a visual C# Windows forms application to send a basic string to the ESP module through TCP.
While I know what TCP is and have looked at vague diagrams on how it works, I'm no closer to actually being able to using it. I read this post about something similar: viewtopic.php?f=8&t=7753 it seems like all the program does specifically is create a WIFIClient and read the incoming data to a string. This is all I need, just one way communication. Where things get confusing to me is on the C# side.
I believe I'm trying to use the ESP module as a server and a computer as a client. I'm reading this documentation page: https://msdn.microsoft.com/en-us/librar ... t(v=vs.110).aspx from reading the example there seems to be so much I'm missing. The example creates a port, a data buffer, and does ASCII encoding. That all goes way over my head for trying to accomplish something so simple. Do I need to understand all that? or can I just use the example function as it is in some way.
I would be really greatfull for any help on what to do to accomplish my goal or even just a list of what specifically I need to learn to make this happen.
Thanks in advance.