No-block code with SIM800L

Gunnar thanks for bringing me on the track. Googled for this behaviour but not for the failure itself. Sometime there are too many trees in the wood.

Had a look into the library (thought had it before but maybe not looking good enough). Found this in " BlynkGsmClient.h".

    void config(TinyGsm&    gsm,
                const char* auth,
                const char* domain = BLYNK_DEFAULT_DOMAIN,
                uint16_t    port   = BLYNK_DEFAULT_PORT)
    {
        Base::begin(auth);
        modem = &gsm;
        client.init(modem);
        this->conn.setClient(&client);
        this->conn.begin(domain, port);
    }

    void begin(const char* auth,
               TinyGsm&    gsm,
               const char* apn,
               const char* user,
               const char* pass,
               const char* domain = BLYNK_DEFAULT_DOMAIN,
               uint16_t    port   = BLYNK_DEFAULT_PORT)
    {
        config(gsm, auth, domain, port);
        connectNetwork(apn, user, pass);
        while(this->connect() != true) {}
}

And what should I say if I am using Blynk.config like discribed in void config, it works :slight_smile:

So the solution is : Blynk.config(gsm, auth, domain, port);

Thanks a lot