The use of the ESP8266 in the world of IoT

User avatar
By RIN67630
#74027 Hi folks,

I need to send receive plain TCP data packets (one byte payload only) to a given IP at a given port.

I have found the UDP library and the corresponding classes, but nothing similar to TCP.
udp.beginPacket(address, 123);
udp.write(packetBuffer, NTP_PACKET_SIZE);
udp.endPacket();

Could somebody help me how to code the same with TCP?
Thank you.