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

Default configuration: Inconsistent maximum number of 868 MHz sensors #56

Closed matthias-bs closed 3 months ago

matthias-bs commented 3 months ago

The default payload configuration includes 4 sensors, but the default maximum number of sensors which can be received in one cycle is 1 (WeatherSensorCfg.h: MAX_SENSORS_DEFAULT).

As a result, only one of up to four sensors will be received.

This can be changed at run time by using the set CMD_SET_SENSORS_CFG command:

{"max_sensors": 5, "rx_flags": 9, "en_decoders": 15}

The default maximum number of sensors has to be changed in the code.