Skip to main content
Version: 2.13.18 - 2.13.15

M-Bus

This category contains functions specific to M-Bus devices.

api.mbusTransaction(msg, timeout, retry)

Transmit "msg" and wait given "timeout" milliseconds for the answer. The transmission is retried "retry" times.

Turn on MBus using mbusState first.

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

Configures the MBus communication interface.

Turn on M-Bus using mbusState after setting up M-Bus parameters using this function.

api.mbusState(state)

Turns on the M-Bus circuitry.

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.

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

api.mbusScan(filter, timeout, mode)

Scan for Mbus devices.

api.mbusFilter(operation,filter,scan_filter)

Function to create and manipulate internal table containing secondary addresses.

api.mbusVifDifFilter(operation,scan_filter)

Function filtering received M-Bus frame by given group of bytes (VIF/DIF)