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

Can the library be used with pubsub or another mqtt client ? #50

Open
cresusjpt opened this issue Apr 12, 2024 · 1 comment
Open

Can the library be used with pubsub or another mqtt client ? #50

cresusjpt opened this issue Apr 12, 2024 · 1 comment

Comments

@cresusjpt
Copy link

Hello, great job for this library, it's the only one i play with which answer easily my basic needs: handle incoming call (get phone number), handle incoming sms (getting senderNo and message) and make https post.

But i want to add an mqtt features to my project and can't find a way to achieve it only with this library.

I use it with TinyGSM and Pubsub but since then i'm facing accidental complexity. I no longer systematically enter Serial1.available() in the loop() to process incoming calls or received messages. Sometimes TinyGSM handles it. For example, instead of +CLCC, I get RING or nothing. Other times, nothing happens.

The same goes for SMS. I think it's because i initialise both on the same rx and tx pinout

So does someone achieve to use gsmsim with an mqtt client please ? or perhaps ways to do it ?

Or rewrite if (Serial1.available()) part another way to manage this ?
Im using the lilygo tcall (sim800l and esp32 board)

@H3wastooshort
Copy link

Not really.
You can only use this library to establish a GPRS connection. After that, you would have to manually communicate with the module to create a TCP connection with the MQTT server, then get PubSub to input/output to the Serial interface where the module is connected.

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