The invention discloses an
Mqtt (message queuing
telemetry transport) based protocol
server implementation method. The implementation process lies in that on the basis of an open-sourcing Mosquitto
server platform,
Java is used as a development framework, a
client and
jar packets of a
server side are developed, and behavioral norms in the Mosquito server are packaged once more; a user acquires the two packaged
jar packets after registering the platform, command information is subscribed by the
client on the Mosquitto server with a method of calling the
jar packets, and the
client gives corresponding responses according to corresponding commands when receiving the commands form the
server side; the jar packets of the
server side are used by developers, and the corresponding commands are sent to a
client side to enable the client to complete corresponding work with the method of calling the jar packets. Compared with the prior art, the implementation method has the advantages that
MQTT access development of the enterprise-class small and medium sized user is completed in the shortest time, time period for learning is omitted, establishment of environmental
system is not needed, and rapid development can be performed by the arrangement of the jar packets.