Zigbee raise max devices to 48 on ESP32

This commit is contained in:
Stephan Hadinger 2021-04-19 13:52:01 +02:00
parent 09f5902e0b
commit b0c15ec345
1 changed files with 4 additions and 0 deletions

View File

@ -182,7 +182,11 @@ SBuffer hibernateDevices(void) {
SBuffer buf(2048);
size_t devices_size = zigbee_devices.devicesSize();
#ifdef ESP32
if (devices_size > 48) { devices_size = 48; } // arbitrarily limit to 48 devices on ESP32, we will go beyond when we remove the limit of 2kb buffer
#else
if (devices_size > 32) { devices_size = 32; } // arbitrarily limit to 32 devices, for now
#endif
buf.add8(devices_size); // number of devices
for (uint32_t i = 0; i < devices_size; i++) {