Bluetooth Low Energy transport (Nordic UART service).
There is no mature cross-platform BLE stack on the BEAM, so this transport
contains the MeshCore-specific logic – serialised writes with a hard
timeout, optional PIN pairing, "tear the link down on a stalled write" – and
delegates the radio work to a pluggable Meshcore.Transport.BLE.Adapter.
Options:
:adapter(required) – module implementingMeshcore.Transport.BLE.Adapter:address– BLE address (or part of the advertised name) to connect to; whennilor not an address the adapter scans for aMeshCore*device:pin– PIN to pair with after connecting:write_timeout– milliseconds before a write is considered stalled (default10_000):adapter_opts– extra keyword options passed to the adapter
The Nordic UART UUIDs are exposed as uart_service_uuid/0,
uart_rx_char_uuid/0 (write) and uart_tx_char_uuid/0 (notify).
Summary
Functions
Returns a specification to start this module under a supervisor.
RX characteristic UUID (the host writes commands here).
Nordic UART service UUID.
TX characteristic UUID (the device notifies frames here).
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
RX characteristic UUID (the host writes commands here).
Nordic UART service UUID.
TX characteristic UUID (the device notifies frames here).