Skip to main content

Client for protocol MQTT-SN 1.2

Project description

mqttsn12-python3-client

Python3 Client implementation of the Protocol MQTT-SN 1.2 (https://mqtt.org/mqtt-specification/ or https://groups.oasis-open.org/higherlogic/ws/public/document?document_id=66091).

The library was tested with EMQX (https://www.emqx.com/en) and Hive MQ Edge (https://www.hivemq.com/products/hivemq-edge/).

Start from this url http://www.steves-internet-guide.com/mqtt-sn/ for understanding more about the protocol MQTT-SN.

The whole project is available on https://github.com/marcoratto/mqttsn12-python3-client

Below you can find the code coverage:

Name Stmts Miss Cover
src/mqttsn12/MqttSnConstants.py 61 0 100%
src/mqttsn12/__init__.py 0 0 100%
src/mqttsn12/client/MqttSnClient.py 623 132 79%
src/mqttsn12/client/MqttSnClientException.py 12 8 33%
src/mqttsn12/client/__init__.py 0 0 100%
src/mqttsn12/packets.py 857 273 68%
tests/unit_test_publisher.py 110 1 99%
tests/unit_test_subscriber.py 236 17 93%
TOTAL 1899 431 77%

Below you can find the list of the Message Type implemented:

MsgType Field Status Note
0x00 ADVERTISE NA
0x01 SEARCHGW Implemented
0x02 GWINFO Implemented
0x03 reserved NA
0x04 CONNECT Implemented
0x05 CONNACK Implemented
0x06 WILLTOPICREQ Implemented
0x07 WILLTOPIC Implemented
0x08 WILLMSGREQ Implemented
0x09 WILLMSG Implemented
0x0A REGISTER Implemented
0x0B REGACK Implemented
0x0C PUBLISH Implemented
0x0D PUBACK Implemented
0x0E PUBCOMP NA
0x0F PUBREC NA
0x10 PUBREL NA
0x11 reserved NA
0x12 SUBSCRIBE Implemented
0x13 SUBACK Implemented
0x14 UNSUBSCRIBE Implemented
0x15 UNSUBACK Implemented
0x16 PINGREQ Implemented
0x17 PINGRESP Implemented
0x18 DISCONNECT Implemented
0x19 reserved NA
0x1A WILLTOPICUPD Implemented
0x1B WILLTOPICRESP Implemented
0x1C WILLMSGUPD Implemented
0x1D WILLMSGRESP Implemented
0x1E-0xFD reserved NA
0xFE Encapsulated message NA
0xFF reserved NA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mqtt_sn_12-1.0.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqtt_sn_12-1.0.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file mqtt_sn_12-1.0.1.tar.gz.

File metadata

  • Download URL: mqtt_sn_12-1.0.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mqtt_sn_12-1.0.1.tar.gz
Algorithm Hash digest
SHA256 feb5a4d71e757e79fb06686734cf95fd561e18a58f24a69eba38bd22ab1fd9b7
MD5 a25b84dea6b9405a745a7b7c481feac6
BLAKE2b-256 9e379dba23e55c23423f3e61839917eece173787d9cdb8c76cc6eb451a29c8d4

See more details on using hashes here.

File details

Details for the file mqtt_sn_12-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mqtt_sn_12-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mqtt_sn_12-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bda71cfe51dfddd430d52bc647fbd490462b9b20a187e3e334e84f9a5df7d9e2
MD5 3b967c4cc2d7af28a80e167f46194c6f
BLAKE2b-256 eb56384a9e226a49f8d4f0e2bef1220d109939d067bb201ffd63194b4051cddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page