Closed denisalexee closed 2 years ago
There are 2 places in your loop function where you write outside of the address limits.
char x[1];
dtostrf(temperature, 5/*Полная_длина_строки*/, 1/*Количество_символов_после_запятой*/,x);
char ax[1];
sprintf(ax, "%d", minTempPar);
In both cases you write way more than 1 character (and terminating zero) to those arrays. Fix that first :)
char x[8]; // dtostrf(temperature, 5, 1,x); pTxTimeCharacteristic ->setValue((std::string)x); pTxTimeCharacteristic ->notify();
char ax[8]; //
sprintf(ax, "%d", minTempPar); pTxminTempParCharacteristic ->setValue((std::string)ax); pTxminTempParCharacteristic ->notify();
thanks for helping
Board
Chip is ESP32-D0WD (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Device Description
other
Hardware Configuration
GPIO 18&& 19 in I2C
Version
other
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
40
PSRAM enabled
no
Upload speed
115200
Description
in connect BLE assertion "heap != NULL && "free() target pointer is outside heap areas"
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide