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

HTTPS Post Issue With A7670G . Error 715 #162

Open
JMartinezEco opened this issue Oct 16, 2024 · 3 comments
Open

HTTPS Post Issue With A7670G . Error 715 #162

JMartinezEco opened this issue Oct 16, 2024 · 3 comments

Comments

@JMartinezEco
Copy link

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 the AT+HTTPACTION=1 command.

image

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);



...

  const char *server_url = "https://xxxxxx.xxx/insertXXXXxxxxXXXxxx";

  // Initialize HTTPS
  modem.https_begin();

  // Set GET URT
  if (!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?

@kgmuzungu
Copy link

kgmuzungu commented Oct 16, 2024

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?

@lewisxhe
Copy link
Contributor

Please update the latest baseband version firmware and test again, this problem should be fixed.
https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/blob/main/docs/update_fw.md

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants