2019-05-08 04:08 AM
Hello,
I downloaded an example for IoT and the Cube library from this address. The program works well in the first step, but the problem starts when problems occur due to a weak wifi signals or a lack of Internet stability, and the board should be reset.
I also tried to put the program in a loop to re-connect again after the disconnection, but this loop works 2 times. After the debug, I noticed that the problem is from memory filling, due to the use of the malloc() function. I tried to manually free the space and this changed the behavior of the program. But in the program more than 400 times, the malloc command has been used, which is practically very time consuming or perhaps impossible.
This program is like this, you use a car but there is no rear gearbox!
Do you have any other way for this problem?
I hope that this issue will be resolved in the next version.