Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSM #34

Open
shajek opened this issue Feb 9, 2018 · 1 comment
Open

GSM #34

shajek opened this issue Feb 9, 2018 · 1 comment

Comments

@shajek
Copy link
Contributor

shajek commented Feb 9, 2018

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

@PhracturedBlue
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants