Settings for begin.
More...
#include <unit_SYN531R.hpp>
◆ max_payload_size
| uint8_t m5::unit::UnitSYN531R::config_t::max_payload_size |
Initial value:Maximum receivable payload size in bytes
- Note
- Default is a conservative value safe for most environments. Theoretical max is rf433::MaxPayloadSize per platform, but AGC noise from the SYN531R receiver consumes RMT memory, reducing the practical limit. Exceeding the hardware capacity may cause data loss (ESP32) or crash (ESP32-S3). Increase at your own risk after testing in your environment.
-
Practical safe defaults (tested): ESP32/ESP32-S3=23, RMT v2(ESP-IDF 5.x)=255
- Warning
- When communicating between RMT v1 and v2 devices, the transmitter's payload must not exceed the receiver's limit. The v1 RX capacity varies with AGC noise conditions. Test in your actual environment to determine the reliable maximum for your setup.