Send data from one ESP32 to another
Posted: Sat May 18, 2019 6:59 pm
Hi,
I'm currently trying to implement indoor positioning system using 4 ESP32 microcontrollers where one board is a 'master' and other three are 'slaves'. The slaves are configured as AP, so I can use 'HTTP_GET' request from 'master' to get the needed data from 'slave' nodes. So far so good.. But the problem rises when I try to get the position of a BLE beacons. Because I need to scan beacons to get their RSSI values to each ESP32 and also transfer this data then to 'master', I need to use both WiFi and Bluetooth libraries. The main problem WHY I cannot use this approach/architecture is that my ESP32's has not enough flash memory. The specification told that it'll have 4x more memory..
The following error is shown:
"Sketch uses 1661386 bytes (126%) of program storage space. Maximum is 1310720 bytes."
I also tried to include only needed header files, but it also didn't do much..
The question:
How can I transfer small data like 10bytes or so from each 'slave' to 'master' without adding HUGE libraries ?
I know that it can be done using bluetooth signals but I couldn't find understandable samples. I'm beginner at this.. :'(
This is for my bachelor theses, not much time left.. please help!
BR,
Ed
I'm currently trying to implement indoor positioning system using 4 ESP32 microcontrollers where one board is a 'master' and other three are 'slaves'. The slaves are configured as AP, so I can use 'HTTP_GET' request from 'master' to get the needed data from 'slave' nodes. So far so good.. But the problem rises when I try to get the position of a BLE beacons. Because I need to scan beacons to get their RSSI values to each ESP32 and also transfer this data then to 'master', I need to use both WiFi and Bluetooth libraries. The main problem WHY I cannot use this approach/architecture is that my ESP32's has not enough flash memory. The specification told that it'll have 4x more memory..
The following error is shown:
"Sketch uses 1661386 bytes (126%) of program storage space. Maximum is 1310720 bytes."
I also tried to include only needed header files, but it also didn't do much..
The question:
How can I transfer small data like 10bytes or so from each 'slave' to 'master' without adding HUGE libraries ?
I know that it can be done using bluetooth signals but I couldn't find understandable samples. I'm beginner at this.. :'(
This is for my bachelor theses, not much time left.. please help!
BR,
Ed