-
Notifications
You must be signed in to change notification settings - Fork 7
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
Postmaster doesn't correctly support DOWNLOAD event, making http POSTS impossible. #15
Comments
OK, so this is partially solved: The Postmaster can be initialized with a custom array, I've changed this line to read
This works. However the next challenge is that when I send data, I get a reply of Heres a stack, I've send the command
When I send the command Overall this isn't such a big deal because any custom commands would likely use _chain() and custom expectations, in which case you could expect |
Again, can you give this a try with the newest code on master and see if it's still blocked? |
facultymatt, I don't know if you are still working on this. In any case, in your code, the HTTPDATE must come first, and you write the data to the modem. Then, HTTPACTION transmits them. |
facultymatt, I also want to thank you for mentioning posttestserver. That helped me A LOT. |
To send an http POST request using the gprs module, the user must enter the following AT commands:
Lets focus on the last command listed:
AT+HTTPDATA=100,4000
. In this case, 100 is the size of the data to be sent via POST and 4000 is the time requested (in milliseconds) to send the data.Executing this command replies with
DOWNLOAD
. At this point the user should begin sending their POST data. However, the postmaster doesn't return success in this case, making it impossible to start sending data -- instead it waits until the command errors out, sending theERROR
reply. The user never has a chance to send any data.Below is stack from postmaster in debug mode:
The text was updated successfully, but these errors were encountered: