I have attached code for .ino .cpp .h has changed to txt file attached here, please verify my code i get error server for erase function failure. and some time not working properly please assist us. please say how to solve this issue. my error was attached with image.
I am using your suggest GitHub code but I get error on -
C:\Users\star\Documents\Arduino\STM\stm32ota.cpp: In function 'String stm32GetId()': C:\Users\star\Documents\Arduino\STM\stm32ota.cpp:149:1: error: control reaches end of non-void function [-Werror=return-type] 149 | } | ^ cc1plus.exe: some warnings being treated as errors
exit status 1
Compilation error: control reaches end of non-void function [-Werror=return-type].
and also I get Erase function is failure, I have attached image for I get the error and also i attached Arduino code as txt file, please assist us.