How to replicate the API connection to a device (castel protocol) in a single Java class (to connect, disconnect encode and decode)?

Simon Farias5 years ago

Hello Traccar Forum! I want to replicate in a easy way (in one class if its possible) the connection to a castel device (port 5086 for Traccar server app).

My goal is replicate this behavior with PHP. I tried with Websocket/HTTP protocols and the result is that i cant connet. I cant hear any package from the device.

So, the question is, how (in an easy way) to connet by castel protocol from my server with one of this devices.

As i said, i want to replicate the case for Castel protocol. I know about Java, but basic. I reviewed the Traccar Server code, but i cant understand, its frustrating.. Thank you all very much in advance, greetings.