MQTT: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
ESP8266 (talk | contribs)
start of server #f00
ESP8266 (talk | contribs)
Line 12: Line 12:
Create super basic server that supports a client connection.
Create super basic server that supports a client connection.


Create server application using a TCP/IP Socket listening to port 1803
Create server application using a TCP/IP Socket listening to port 1883

Revision as of 14:54, 14 March 2016

MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios. It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receivers (more...)


Specification

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718008


Server

Implementation notes of building a MQTT 3.1.1 compliant server.

CONNECT/CONNACK

Create super basic server that supports a client connection.

Create server application using a TCP/IP Socket listening to port 1883