We will start a TCP server on our PC with Hercules.
Be sure to put your PC’s IP address to the connect function, since our TCP server will run on the PC.
This line will read data from the server until ‘\0’ is received.
This line will send received data to the server.
Testing the code
In order to test the code we have to use TCP Server software or program, we recommend Hercules.This is the most complete terminal software for testing connectivity. But there are a lot of various solutions on the internet for this purpose.
Install Hercules on your PC, and run it, PC and IoTaaP MUST be on the same network! Click on TCP Server tab and enter port 5656, click Listen. You will be able to send messages to the connected clients, and receive messages from the clients. Congrats, you have built your TCP client application with IoTaaP!
Post your modifications and examples to our community page.