Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBSERVATION ON HTTP SEND DATA #15

Open
Avong opened this issue Jan 31, 2021 · 1 comment
Open

OBSERVATION ON HTTP SEND DATA #15

Avong opened this issue Jan 31, 2021 · 1 comment

Comments

@Avong
Copy link

Avong commented Jan 31, 2021

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants