I've been trying to make my own gps tracker server using springboot. There is a standalone project called Traccar and they use their own methods to create connections but I can't integrate the netty framework in springboot; specially for the different handlers methods.
For example if any user send by post method the command to use, my server would be capable to take that command and send to the gps connected by socket but here is my problem because any time a channel is open, the message to send convert in null from the POST method to the writeFlush().
Any one knows how to intercept the method to take the command and send to the socket?
CodePudding user response:
With the Netty framework, you can create a controller that listens for POST requests in a Spring Boot application and sends the command to the GPS device via a socket connection.