Regarding string compression.

neeraj3728
Posts: 1
Joined: Sat Jul 04, 2020 11:58 am

Regarding string compression.

Postby neeraj3728 » Tue Aug 25, 2020 12:41 pm

Hello,
I am using ESP32-wroom-32 & have written code to scan BLE and store it in a string by appending it. but I have found that after storing around 150 MAC addresses to post it on HTTP when I check ESP.getFreeHeap() it is almost exhausted. could you please suggest me any option to compress stored data?

Thanks in advance.

Thanks and regards,
Neeraj

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: Regarding string compression.

Postby ESP_Sprite » Tue Aug 25, 2020 1:36 pm

Sounds like you're doing something wrong... 150 MAC addresses total something like 2.7K, which is normally something that easily fits in ESP32 memory. Can you post the code you're using?

Who is online

Users browsing this forum: Assasinsareus and 104 guests