ESP8266MQTTMesh icon indicating copy to clipboard operation
ESP8266MQTTMesh copied to clipboard

GSM

Open shajek opened this issue 7 years ago • 1 comments

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

shajek avatar Feb 09 '18 21:02 shajek

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)

PhracturedBlue avatar Feb 09 '18 22:02 PhracturedBlue