2

I have been able to get a large file to be sent in packages over BLE to a characteristic on my ESP32-Wrover-B module (yay!). However, these files can be large (+300kb) so I need to repackage them after all the file data has been sent (in chunks), to then be stored/written in LittleFS.

I have PSRAM with my module that will allow me to store in a larger space directly, however, from the tutorials I have read, you cannot create a global char* variable for PSRAM.

What would be my best approach here? My basic logic here is to repackage all the chunks that are received via BLE into a char* (or string). Once all data received, save it as a file in LittleFS.

asked Jun 26, 2023 at 13:45
1
  • Use a buffer array to receive the chunk then write to the file once the chunk is received completely. This is what I utilized for transferring the OTA update file (~1.2MB) over BLE ESP32_BLE_OTA_Arduino Commented Jul 4, 2023 at 7:34

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.