Git Product home page Git Product logo

esp32fotagsm's People

Contributors

iotthinks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esp32fotagsm's Issues

failed to connect

Hi , i'm trying your library to implement fota over gsm but i get everytime failed to connect and then even in the file there is a new version the bool comparison fails (obviously)
my apache web server is on port 81 , in my sketch i have setup this:
// ============== FOTA =============
#include <esp32fotagsm.h>
const char *boardModel = "test-esp32"; // TO CHANGE
int boardCurrentVersion = 1; // The firmware version // TO CHANGE

// To define firmware type and version
esp32FOTAGSM esp32FOTAGSM(boardModel, boardCurrentVersion);

// To define link to check update json
#define esp32FOTAGSM_checkHOST "xx.yyy.it" // TO CHANGE
#define esp32FOTAGSM_checkPORT 81 // TO CHANGE, HTTP ONLY
#define esp32FOTAGSM_checkRESOURCE "/smart-trap-esp32/fota.json" // TO CHANGE

in loop section:
// ====== FOTA ========
// Link to json to check update

setupFOTAGSM();
DBG("Current version: ");
DBG(boardCurrentVersion);
bool updatedNeeded = esp32FOTAGSM.execHTTPcheck();
if (updatedNeeded)
{
DBG("Got new update");
esp32FOTAGSM.execOTA();
}
else
{
DBG("Already up to date. No need to update");
}

delay(2000);

and inserted this function:
void setupFOTAGSM()
{
esp32FOTAGSM.checkHOST = esp32FOTAGSM_checkHOST;
esp32FOTAGSM.checkPORT = esp32FOTAGSM_checkPORT;
esp32FOTAGSM.checkRESOURCE = esp32FOTAGSM_checkRESOURCE;
esp32FOTAGSM.setModem(modem);
}

i have also modified into esp32fotagsm.cpp the execHTTPcheck() the variabile _port = 81; from 80 with no luck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.