You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to perform an HTTP POST request using the SIMCOM A7670G module, I encounter the error HTTP post failed ! error code = 715. The module successfully connects to the network and retrieves an IP address, but fails when sending the HTTP POST request using the AT+HTTPACTION=1 command.
Actual Behavior:
I'm using the base example HttpsBuiltInPost.ino. The module connects to the network and obtains an IP, but the request fails with error 715 when sending a POST.
#include<Arduino.h>
#include"config.h"
#include"modules.h"
#include<TinyGsmClient.h>
TinyGsm modem(SerialAT);
// Crear instancias de los módulos
SIM A7670G(&modem);
...
constchar *server_url = "https://xxxxxx.xxx/insertXXXXxxxxXXXxxx";
// Initialize HTTPS
modem.https_begin();
// Set GET URTif (!modem.https_set_url(server_url))
{
Serial.println("Failed to set the URL. Please check the validity of the URL!");
return;
}
//
modem.https_set_content_type("application/json");
String post_body = "This is post example!";
int httpCode = modem.https_post(post_body);
if (httpCode != 200)
{
Serial.print("HTTP post failed ! error code = ");
Serial.println(httpCode);
return;
}
// Get HTTPS header information
String header = modem.https_header();
Serial.print("HTTP Header : ");
Serial.println(header);
// Get HTTPS response
String body = modem.https_body();
Serial.print("HTTP body : ");
Serial.println(body);
...
As in #117 It is said that the AT commands for this type of requests are not suported by the A767X modules, is there any firmware update available for the module to make this work?
The text was updated successfully, but these errors were encountered:
You can get the firmware version with the command ATI and AT+SIMCOMATI commands. (mode.sendAT("I") and modem.sendAT("+SIMCOMATI"))
maybe try to connect to https://vsh.pp.ua/TinyGSM/logo.txt first (this is the test page from the TinyGSM guy). AWS or Google could services might be trickier.
You can connect to good old HTTP, right? HTTPS is the problem?
Description:
When trying to perform an HTTP POST request using the SIMCOM A7670G module, I encounter the error
HTTP post failed ! error code = 715
. The module successfully connects to the network and retrieves an IP address, but fails when sending the HTTP POST request using theAT+HTTPACTION=1
command.Actual Behavior:
I'm using the base example HttpsBuiltInPost.ino. The module connects to the network and obtains an IP, but the request fails with error
715
when sending a POST.As in #117 It is said that the AT commands for this type of requests are not suported by the A767X modules, is there any firmware update available for the module to make this work?
The text was updated successfully, but these errors were encountered: