Open
Description
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
Labels
No labels