iopa-mqtt-packet is an API-first OASIS Message Queuing Telemetry Transport (MQTT) packet transport for the Internet of Things (IoT), based on the Internet of Protocols Alliance (IOPA) specification
It servers MQTT messages in standard IOPA format. It is a lower level utility package that is not required directly if you are using the recommended
It is not intended as a standalone MQTT server/broker, as it does not contain the standard protocol logic for acknowledges, subscribes etc., but can form the basis for one. See
iopa-mqtt for an open-source, standards-based, drop-in replacement for MQTT clients and brokers such as
iopa-mqtt-packet uses the widely used library 'mqtt-packet' for protocol formatting to assure interoperability.
Makes MQTT messages look to an application just like an HTTP message so little or no application changes required to support multiple REST protocols
Fully working prototype include server and client.
npm install iopa-mqtt-packet
iopa-mqttfor simplified version)
const iopa =mqtt =tcp =var app = ;app;var sessionContextDemo;app;var server = tcp;if !processenvPORTprocessenvPORT = 1883;var mqttClient;server
Adding additional features of the protocol such as QOS1 and QOS2, is as simple as adding a new middleware function