Skip to main content
Version: Next

M-Bus

This category contains functions specific to M-Bus devices.

api.mbusTransaction(arg, timeout)

Sends and receives M-Bus frames.

tip

Ensure M-Bus is enabled by first calling api.mbusState(1).

api.mbusSetup(baudrate, parity, stopBits, dataBits)

Configures the M-Bus communication interface.

tip

After configuring the M-Bus parameters with this function, activate the M-Bus by calling api.mbusState(1).

api.mbusState(state)

Controls the M-Bus circuitry.

info

Use api.mbusState(1) before api.mbusTransaction() and api.mbusState(0) after to reduce consumption. The consumption significantly raises if the circuitry is turned on for too long.

danger

Do not use the api.mbusState(1) during LoRaWAN or NB-IoT message transmition.

api.mbusScan()

Scans for M-Bus devices.

api.mbusFilter(operation, ...)

Creates and manages internal table of secondary addresses.

api.mbusVifDifFilter(operation, ...)

Filters received M-Bus frames by given group of bytes (VIF/DIF).