Skip to content

ESP32 or GSM #19

Open
Open
@eried

Description

@eried

Hi,

I am making a device that can use wifi (esp32) or gsm, it works well with:

#ifdef USE_GSM
#include <CayenneMQTTGSM.h>
#else
#include <CayenneMQTTESP32.h>
#endif

however it would be nice to switch from wifi to gsm while the device is running, or at least at boot if wifi timeouts. If I include both libraries there is a conflict because the begin is different:

#ifdef USE_GSM
Cayenne.begin(username, password, clientID, SerialAT, apn, gprsLogin, gprsPassword, pin);
#else
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
#endif

Any idea how to deal with this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions