carrascoacd / ArduinoSIM800L

Arduino HTTP & FTP client for SIM800L/SIM800 boards to perform GET and POST requests to a JSON API as well as FTP uploads.
158 stars 58 forks source link

Undefined conversions, unused variables & comparison between expressions #39

Closed nabeelkirmani closed 4 years ago

nabeelkirmani commented 4 years ago

Undefined conversion:

line 45 should be const char OK_[] = "OK";

Unused variable

char resp[16]; in HTTP::get()

Comparisons between signed and unsigned expressions

int i in parseATResponse() could be unsigned int i int i = 0; in parseJSONResponse() could be unsigned int i = 0;

carrascoacd commented 4 years ago

Thanks for letting me know.

I'll pass a linter to the whole project also.

On Tue 24 Mar 2020, 11:47 a.m. Nabeel Kirmani notifications@github.com wrote:

Undefined conversion:

line 45 https://github.com/carrascoacd/ArduinoSIM800L/blob/d0fcfffa7d8df7a1e81fbef712f5ca26fd2418bc/src/GPRS.cpp#L45 should be const char OK_[] = "OK"; Unused variable

char resp[16]; https://github.com/carrascoacd/ArduinoSIM800L/blob/master/src/Http.cpp#L112 in Http.cpp Comparisons between signed and unsigned expressions

int i https://github.com/carrascoacd/ArduinoSIM800L/blob/master/src/Parser.cpp#L36 in parseATResponse() could be unsigned int i int i = 0; https://github.com/carrascoacd/ArduinoSIM800L/blob/master/src/Parser.cpp#L46 in parseJSONResponse() could be unsigned int i = 0;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carrascoacd/ArduinoSIM800L/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBWFOEE7D47P6UKWPJZCCTRJCFVHANCNFSM4LSRP3BQ .

carrascoacd commented 4 years ago

Suggestions coming soon... https://github.com/carrascoacd/ArduinoSIM800L/pull/41