ble-advertising-sensor.ino
Configures the Bluetooth 5.1 LE module to broadcast non-connectable advertisements with raw data.
The KNOT HL9 uses Bluetooth 5.1 LE for advertising without requiring heavy TCP/IP connections. This RouterOS script creates a custom advertisement containing manufacturer data. Ideal for transmitting simple sensor status (temperature, humidity) to passive gateways. The 1000ms interval balances range and power consumption.
ble-advertising-sensor.ino
/interface bluetooth advertising
set [find name="default"] disabled=no
# Ajouter une annonce personnalisée
/interface bluetooth advertising add \
name="sensor_data" \
type="non-connectable" \
interval=1000 \
manufacturer-data="0102030405060708090A" \
service-uuid="12345678-1234-5678-1234-567812345678"