I spend lot of days to get Bluetooth up and running in a very first simple step
So is time to give a first status.
To be open, I'm not sure, we will ever get it running in a nice way.
Memory consumption in binary file and in RAM is huuuuge
This is what I did in some short steps:
Question is, should I spend more time on this, or wait for availibility of breadboards with ESP32 wrover which has additional PSRAM.
Well at least it is progress of sorts. Which ever way you go, it would be great to capture what you have learnt, so we can get back to this point later...
So, perhaps start a new branch esp32-ble and put the espruino changes under that, and also a new branch under espruino build tools with the same name, that will capture the partition changes and sdkconfig changes.
I can get this all working with Travis if you like - then if we want to return to this point, or someone else want to pick up the gauntlet, we have a starting point.
I think the bluedroid libraries might be quite large - but at the end of the day there is plenty of flash, it's the ram there the issue.
It would be great to get it working, as a ble to wifi bridge would be awesome.
Contact me on gitter if you would like some help.
Actual status of my work for Bluetooth is here https://github.com/espruino/Espruino/tree/ESP32/targets/esp32/docs/Bluetooth_first_attempt
@wilberforce, tried to contact you on gitter, without success.
Just tested mem release function for BLE and got about 30k back.
Will do some more testing, but looks like we will get up to 2000 vars back :)
BTW, after some chatting with Gordon, I'll try to come closer to already existing Bluetooth in Espruino (for Puck.js). World is different between nrf and esp-idf, so this will take some time.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem