About Data Transmission Protocol

Hello everyone!

I’m working on a IOT project. This is the first time I use OpenRemote, so I would like to ask for your help about Data transmission protocol.
As I understand, OpenRemote can receive data from device by using MQTT protocol (port 8883 or 1883). I have tried to setup the project, and used MQTT Explorer or Eclipse Mosquitto for testing, and it works fine.

Beside MQTT protocol, I want to use TCP protocol to receive data from device. I have looked into TCP Agent, but after researched for a while, it seems TCP Agent is used to create connection from OpenRemote to another TCP server, not for receiving.
I would like to ask:

  1. Do I understand right about TCP Agent?
  2. Does OpenRemote support TCP Protocol for receiving data from device? If it does, could you please guide me the way to set it up, or give me any tutorial?
  3. If it does not, it means I have to implement it on my own, could you please guide me where should I start? To be honest, I’m not familiar with the source code yet.

I appreciate any help you can provide.
Thank you.

Hey @datvnq ,

Welcome!

The TCP agent is a generic agent, meaning that the agent takes care that it receives the data from a service/server using a given protocol. You are then responsible for deserializing/understanding/parsing that data.

The TCP agent is a TCP client that can be used to connect to a TCP server, to start exchanging data. If you are connecting to a TCP server, then you can use the TCP agent.

Hope this helps!

Panos