Skip to main content
2 of 3
added 278 characters in body
JVic
  • 125
  • 1
  • 8

Sim900a AT+HTTPREAD does not get fully answer

changed the firmware on SIM900B

try to send get request http://dummy.restapiexample.com/api/v1/employee/1 AT+HTTPACTION=0returned +HTTPACTION:0,200,98

but, when I try to read (AT+HTTPREAD or AT+HTTPREAD=0,98)the response data I got broken response

expected result:

+HTTPREAD:98
{"id":"1","employee_name":"Shibani","employee_salary":"999","employee_age":"0","profile_image":""}

and actual results:

+HTTPREAD:98
{"id":"1","employee_name":"Shibani","employee_salary":"999","empe_"0"olme"

+HTTPREAD:98
{"id":"1","employee_name":"Shibani","employee_salary":"999","empe_"0"fea"}

+HTTPREAD:98
{"id":"1","employee_name":"Shibani","employee_salary":"999""pea:,piig"

+HTTPREAD:98
{"id":"1","employee_name":"Shibani","employee_salary":"999",moeg""reae}

my Arduino code looks like that

void setup() {
   ...
   /// setup
   ...
}

void loop() {
  if (sim900.available())
    Serial.write(sim900.read());
  if (Serial.available())
    sim900.write(Serial.read());
}
JVic
  • 125
  • 1
  • 8