thehapyone / BareBoneSim800

A BareBone Arduino Library For SIM800 Modules
GNU General Public License v3.0
47 stars 18 forks source link

OBSERVATION ON HTTP SEND DATA #15

Open Avong opened 3 years ago

Avong commented 3 years ago

Ayo, Good job. It took me sleepless nights to understand the SIM800.

However, I have observation in this your BareBone library. Check line 540 in .cpp file.

Under method sendHttpdata. AT COMMAND for HTTP POST should ta value 1 not 0 as you indicated.

I maybe wrong anyway.

Secondly, can you give me idea, I wish to develop nonblock library to be used in rtos. But attempt s seem have not yield anything good.

thehapyone commented 3 years ago

Hey Avong,

The Library doesn't support HTTP POST request, but only GET request and that's why the HTTPACTION value is 0. I can't add that at this point in time.

For nonblocking possibility, you have to recode the whole _checkresponse functionality so instead of using the blocking delay, you can track time with millis() and only move to the next state until the target time is reached. You can read more about non-blocking with Arduino using Millis.

All the best, Regards