TCP protocol gateway

    1. On the platform side, the main body is the emqx-tcp module and the EMQX system. emqx-tcp is responsible for the encoding and decoding of messages, and the agent subscribes to downlink topics. Realize to convert the uplink message into the MQTT message PUBLISH in the EMQX system to the entire system; convert the downlink MQTT message into the message structure of the TCP private protocol, and send it to the terminal.

    Create module

    Open EMQX Dashboard (opens new window), click the “Modules” tab on the left, and choose to add:

    image-20200927213049265

    Select TCP private protocol to access the gateway:

    Configure related basic parameters:

    Add listening port:

    Configure monitoring parameters:

    image-20200927213049265

    Click to confirm to the configuration parameter page:

    After clicking Add, the module is added: