Closed hernae closed 1 year ago
Hi,
We have fixed this bug and committed the fix to the repo. Thank you for your suggestion and input!
Can you try again and let us know if it works?
The data size should be the number of bytes to be sent in the POST, not including the null byte in case you pass a null terminated C string.
Kind regards, Jonas
Thanks a lot! It is working fine now:
static char data[] = "Test!";
if(modem.httpSend(HTTP_PROFILE, "/test", reinterpret_cast<uint8_t*>(data), sizeof(data), WALTER_MODEM_HTTP_SEND_CMD_POST,WALTER_MODEM_HTTP_POST_PARAM_TEXT_PLAIN,ctbuf, sizeof(ctbuf))) {
//
}
Hello,
I was testing the Http Send function, without success. I wrote my own version with the previous WalterModem.cpp, which is working fine though.
In the WalterModem.cpp the httpSend function uses this to create the AT command:
My version works when I change it to:
I would be happy to get an example of the httpSend function using HTTP POST. Otherwise I could also provide my httpSend function, but I don't use the stringsBuffer there.