Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By seaurchin
#87356
Pablo2048 wrote:Every call to read_sensor_data::analogValues() return pointer to newly allocated int[4] array, so you have to free the memory when you are done with the values from this array so take a look at this https://www.geeksforgeeks.org/delete-in-c/ .



Thank you Pablo2048

used delete ptr;
seems to have fixed , but I am not getting anything not even any Serial.print in the serial monitor.