matthias-bs / BresserWeatherSensorLW

Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276 - sends data to a LoRaWAN Network
MIT License
10 stars 1 forks source link

[CMD_GET_BLE_ADDR] Wrong return value if list of BLE addresses was reset #67

Closed matthias-bs closed 2 months ago

matthias-bs commented 3 months ago

Sending (CMD_SET_BLE_ADDR) {"ble_addr": ["00:00:00:00:00:00"]} resets the list of BLE addresses in Preferences to an empty list, which lets the software apply the default list from BresserWeatherSensorLWCfg.h.

A subsequent {"cmd": "CMD_GET_BLE_ADDR"} should return this default list, instead "00:00:00:00:00:00" (which is used internally to indicate an empty list) is returned.