Unit MQTT-PoE is an Ethernet MQTT communication module that combines PoE power supply with the W5500 Ethernet controller. It uses a UART communication interface (controlled by AT commands) and integrates an RJ45 adaptive 10/100M Ethernet port. It supports 4x Topic subscriptions. With extremely low network latency and high stability, it is suitable for various industrial automation, security monitoring systems, automatic measurement and control systems, and device data cloud applications.
Unit MQTT Version Comparison
Compared to
Unit MQTT
, this PoE version integrates PoE power supply functionality, with a load capacity of 1.2A@5V (6W).
Features
Embedded W5500 Ethernet chip
RJ45 Ethernet port 10/100Mbps
PoE power supply capability: 1.2A@5V (6W)
Ethernet MQTT communication
Supports 4x Topic subscriptions
Low latency
Development methods:
AT commands, UART: 9600bps default
Development platforms: UIFlow, Arduino
Includes
1 x Unit MQTT-PoE
1 x HY2.0-4P Grove cable (20cm)
Applications
Remote data collection/cloud upload
Specifications
Specification
Parameter
Module Processor
ARM Cortex-M3
Communication Interface
UART: baud 9600bps 8N1 default
MQTT
Supports 4x Topic subscriptions, does not support MQTTS
Command Description: Set the module's static IP address (AT+NETSTATICIP=IP address, subnet mask, gateway)
Note: When DHCP is enabled, the static IP setting will not take effect IP address (text), representing the local IP address, can be an IP address or domain name Subnet mask (text), must be in IP address format Gateway (text), must be in IP address format
Command Description: Set the keep-alive duration for connecting to the MQTT server Keep-alive duration The interval for automatically sending PINGREQ packets, in seconds, range 5~300
Command Description: Set the topic to subscribe to on the MQTT server. This module can subscribe to 4 topics simultaneously. Modifying the subscription topic with this command will not immediately subscribe or unsubscribe; it will take effect the next time the module connects to the MQTT server. Topic number Number 1-4
1/0 1: Enable subscription to this topic, 0: Disable subscription to this topic. When this parameter is 0, the following two parameters must be empty. Topic name (text) QoS must be one of 0, 1, 2
Command Description: Set whether to connect to the server directly upon power-up 1/0 0: Do not start connection directly upon power-up, 1: Start connection directly upon power-up based on configured parameters
Command Description: Publish MQTT message Topic (text), the topic name of the message to be published Message (text), the message to be published, the maximum length allowed for this parameter is 1000 QoS QOS, must be 0, 1, 2, this parameter can be omitted, in which case QOS is 0
AT+BAUD=Baud rate
Command Description: Set the UART baud rate Baud rate Baud rate can only be one of the following values: /4800/9600/19200/34800/115200/230400
//Example usage
AT+BAUD=115200
+BAUD=OK
AT+SAVE
Command Description: Save parameters, After configuring MQTT parameters, you need to execute the SAVE command and perform a RESET soft reset for the configuration to take effect
//Example usage
AT+SAVE
+SAVE=OK
AT+RESET
Command Description: Perform a soft reset of the module, After configuring MQTT parameters, you need to execute the SAVE command and perform a RESET soft reset for the configuration to take effect
//Example usage
AT+RESET
+RESET=OK
Query AT Commands
AT
Command Description: Test communication with the module, response: AT
//Example usage
AT
AT
AT+MQSUBSCRIBE=Topic number**?**
Command Description: Query the subscribed topic, response: +MQSUBSCRIBE=OK:Topic number, Enable/Disable, Topic name, QoS level Topic number can only be one of 1~4 Enable/Disable 1: Current subscription is enabled, 0: Current subscription is invalid Topic nameQoS level can only be one of 0, 1, 2 representing MQTT QoS levels QOS0, QOS1, QOS2
Command Description: Query whether to start connection directly upon power-up, response: +MQAUTO=OK:Enable/Disable 0: Do not start connection directly upon power-up, 1: Start connection directly upon power-up based on configured parameters
//Example usage
AT+MQAUTO?
+MQAUTO=OK:1
AT+NETMAC?
Command Description: Query the module's current MAC address, response: +NETMAC=OK:MAC address Format: XX-XX-XX-XX-XX-XX
//Network not connected
+NETUNCONNECT
//MQTT server not connected
+MQUNCONNECT
//Connected to MQTT server successfully
+MQCONNECT
//Received topic message
+MQRECV:**Topic**,**Length**,**Message**
Error Codes Returned When Commands Fail
//Parameter content error
ERROR:Error Param
//Parameter count does not meet requirements
ERROR:Error Param Num
//Parameter length is too long, each parameter field must be less than 128 bytes (maximum message length is 1000 bytes)
ERROR:Parma is too long//Failed to connect to the network
ERROR:Unconnected
//MQTT server communication error
ERROR:MQTT Connect Fail
//Server did not respond when publishing message (Qos1 and Qos2)
ERROR:MQTT Publish Fail