ESP8266MQTTMesh
ESP8266MQTTMesh copied to clipboard
GSM
Is here a small chance to use GSM. I mean, choose between GSM (like i SIM800C, or directly TinyGSM) and Wifi (not changing it alive druing run, but maybe before compiling) ? Because sometime, is Wi-Fi connection unreachable in battery stuff. And your part in creating mesh is perfect. As i can see in tinyGSM examples... they object of modem and connection act similiar to ESP8266Wifi
TinyGsm modem(SerialAT);
TinyGsmClient client(modem);
PubSubClient mqtt(client);
and
WiFiClient espClient;
PubSubClient client(espClient);
and than works like i normal ESP on WiFi. I know, that you dont use pubsub, but asyncmqtt, and i dont know it structure :)
Thank you for reply and help
I'd be happy to take a patch but I didn't find an Async library for GSM. If one existed, we could probably work something out, but without it, the code would need to be completely rewritten to support synchronous communication, and it may result in dropped packets (the main reason we went async in the 1st place was for improved robustness)