I'm doing a college project and I'm using an ESP8266 microcontroller. At first, I wanted to create a SocketServer and a SocketClient in Java, that were able to both receive messages and send each other, no need to have a multithreaded connection or anything, it could be a connection to a client only, what I need to do is the following to illustrate the situation:
1 - Read an RFID card connected to the ESP8266, connect to the SocketServer and send this string containing the 8 characters of the RFID card presented to the SocketServer.
2 - SocketServer receives these characters, and sends a response to the SocketClient, so it can handle my response accordingly.
However, since it involves Java and C (Arduino Programming) on the other side, I would like to make sure this works first in Java (Server) -Java (Client). I've researched several examples, but none of them meet my needs.