OzWrapper.OzSigfox.OzSigfox

Sigfox LPWAN communication wrapper for transmitting sensor telemetry.

This module provides the OzSigfox wrapper, which encodes sensor telemetry into Sigfox-compatible binary payloads and dispatches them through the drivers.iWire.iWire.iWire driver. Each Sigfox uplink frame is strictly limited to 12 bytes, so the wrapper splits the telemetry across two sequentially transmitted packs: pack_1 for environmental parameters (PM, temperature, humidity, UV, rain) and pack_2 for gas and ambient parameters (gases, light, flood). The first byte of each pack is a hard-coded identifier (0x10 and 0x20) so the backend can demultiplex the two frames.

Example

>>> from OzWrapper.OzSigfox.OzSigfox import OzSigfox
>>> from queue import Queue
>>> sigfox = OzSigfox()
>>> sigfox.run({"en": 1, "rcz": "6"}, Queue())

Note

The 12-byte payload limit is enforced by the Sigfox network and cannot be exceeded. Adding new telemetry fields requires reallocating byte offsets in OzSigfox.pack_1 or OzSigfox.pack_2.

Attributes

Classes

OzSigfox

Sigfox LPWAN communication wrapper backed by the iWire driver.

Module Contents

OzWrapper.OzSigfox.OzSigfox.basic_logger
OzWrapper.OzSigfox.OzSigfox.context_logger