carrascoacd/ArduinoSIM800L

readBuffer & readSignalStrength

pixelfriese opened this issue · 1 comments

Hi,

can someone verify the following two things:

In the readBuffer function, >= should be used instead of > in the following two places. Without this change I get an error message and the ESP32 reboots: "Stack smashing protect failure!"

if (i > count - 1)

if (i > count - 1)

Another thing is the readSignalStrength function. Returning AT+CSQ is much shorter. The length of the buffer should be 24 instead of 32. Without this change, the readBuffer function runs into timeout:

char buffer[32];

Thanks for your issue @pixelfriese. Do you mind creating a PR with the changes that you suggest so I can check them?