Hi, All
Working with BLE devices it needs to get the device: int index, "name", "mac" and current string "value", "status" byte (and later maybe more fields).
ESP32 has ... enough memory to try to store the table of devices that has records of such type.
So, for scanning, finding, saving info about the found BLE devices, and later reading their data - it needs to make such table in the RAM.
OK, let it be the pre-fixed table size = 10.
10 x 4 fields. Name and value may be of ... various length, OK, let them be 32 and 200 bytes.
How better to arrange such MCU table to iterate records?
Working with BLE devices it needs to get the device: int index, "name", "mac" and current string "value", "status" byte (and later maybe more fields).
ESP32 has ... enough memory to try to store the table of devices that has records of such type.
So, for scanning, finding, saving info about the found BLE devices, and later reading their data - it needs to make such table in the RAM.
OK, let it be the pre-fixed table size = 10.
10 x 4 fields. Name and value may be of ... various length, OK, let them be 32 and 200 bytes.
How better to arrange such MCU table to iterate records?