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.

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.0.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.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mqtt_sn_12-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 98365ab0db52918aee9453984c36bc1c7fcb77fc7e870f4aa248c29f83b27932
MD5 3d20dced77c24ff456d93c9ac5d42ec4
BLAKE2b-256 f9dd00ab64265469afa74863daa82aaaa4969b5562129a57f31fe1f39b58a847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mqtt_sn_12-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47bec005fbf9a68f1800393a87cadac2821eec0d949a5c2d586d79166fd96aaf
MD5 1eb4ae62773a19bf847e8cb4fa0ec05a
BLAKE2b-256 cf36e97be83e7b386a3b5e64fab7672ce852a5c34de4a7b2f0750118e74a8e23

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