Can I Push messages from IOT devices using TCP? #1520
-
Dears, Can I push data directly from any IOT device without mentioning the TOPIC name using TCP protocol (without the Flespi tool)? Please advise me and suggest if that is possible. Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @AamerHejazi , I think it's technically feasible regarding your question about IoT data transmission via TCP without specifying a topic. While topics are a core part of IoT protocols like MQTT, TCP operates at a lower level and handles the raw data transfer between devices and servers. You can transmit data directly over TCP, but ensure the receiving server is set up to interpret the data stream correctly. However, note that bypassing higher-level protocols like MQTT may result in losing functionalities such as easy message routing and quality of service. If you have specific constraints or use cases, please provide more details for a more targeted suggestion. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Dear @ysfscream, I am currently working with an old system that accommodates various types of tracker devices. These devices connect to our server via TCP, and our backend is set up to listen to this port, converting the incoming hexadecimal data into JSON format. The challenge arises with devices from Teltonika and other manufacturers that do not support the MQTT protocol. I have been in contact with Teltonika, and while they do offer some devices compatible with MQTT, these are limited to functioning specifically with Google Cloud or Azure platforms. Given these constraints, I am exploring potential solutions or workarounds. Would you have any suggestions or recommendations on how to integrate these non-MQTT devices into the EMQX broker and take the most benefits from it? Any advice or alternative approaches you can suggest would be greatly appreciated. Thank you for considering my query. I look forward to any insights you might have. Best Regards, |
Beta Was this translation helpful? Give feedback.
Regarding the Teltonika and other tracker devices that do not support the MQTT protocol, one possible solution could be to create a middleware service. This service would act as a receiving point for TCP connections and data, converting the received hexadecimal data into JSON format and then forwarding it to the EMQX broker using the MQTT protocol.
This middleware service could be a flexible solution for devices that inherently do not support MQTT. It would handle the protocol translation, enabling these devices to communicate indirectly with the EMQX broker. This way, you can take advantage of the many benefits of EMQX, such as scalability and robust message-handling capabilities.
Anothe…