The invention relates to the field of
Internet of Things communication technology and gateway equipment, in particular to an
Internet of Things gateway equipment communication method and
system based on
MQTT, and the method comprises the following steps: constructing a
communication channel of an equipment layer, a unified equipment management platform and an
application layer based on an
MQTT protocol, the unified equipment management platform communicates with the equipment of the equipment layer and the application of the
application layer by using a preset API (Application Program Interface) which is based on
semantic consistency of attributes, telemetering and instructions; the equipment layer or the
application layer sends a message to the application layer or the equipment layer through a preset API (Application Program Interface), the equipment layer or the application layer firstly sends
MQTT PUBLISH to the unified equipment management platform, and after the unified equipment management platform receives the MQTT PUBLISH, the unified equipment management platform forwards the message to the application layer or the equipment layer according to the theme of the message. Through the method and the
system, the functions of access,
data reporting, reverse control and the like of
the Internet of Things gateway equipment are realized, and standardized concepts and interfaces are provided for upper-layer application development and gateway equipment access.