-
Notifications
You must be signed in to change notification settings - Fork 239
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
TCPconnected Does not work on FONA 3G #116
Comments
Hi, If you are using only 1 active connection at a time, you should try something like this:
Btw, are the TCP functions working for you with FONA 3G? |
That looks like it should work :) The TCP functions in this fork do not work on the FONA 3G without modification, as it uses different AT conmands. I adapted them and have got it to work. I can open a TCP socket successfully and send TCP packets. I also got the MQTT Connect and Publish functionality to work too. I've committed some of the changes to my fork of this repo, if you're interested you can have a look. |
They say that the TCP functions are working with FONA 3G: https://forums.adafruit.com/viewtopic.php?f=54&t=162392 But I had to implement the following TCP functions to be able to work with FONA 3G:
|
Looks similar to (but better/more complete) than the stuff I had to do. Wish I'd had those functions 1 week ago today, would have saved me a lot of time. It seems Adafruit have abandoned this Adafruit_FONA library, fortunately there's a dude called botletics who has made a fork of this FONA repo which adds a lot of support for other chips and is still given attention, this claims to support the FONA 3G / SIM5320, but it's still not great. https://github.com/botletics/SIM7000-LTE-Shield You should make a PR to add this support for the FONA 3G / SIM5320 :) This code in botletics repo would make a pretty decent library for the FONA 3G. |
This is what im looking for! im using tim woo's botletics library, esp32 and a sim7000 trying to connect to AIO. TheRobertTalley/lilygo-sim7000-ESP32@cde2727 I dont know how to use what kukukk posted directly. An example would be well appreciated, deffinatley a free beer in order. Im not sure how to call functions from the library. I have posted here also if the nice folks here would take a look: https://www.reddit.com/r/esp32/comments/oykl6r/adafruit_io_esp32sim7000_lilygo_sim7000x_aio_over/ |
The TCPconnected function sends
AT+CIPSTATUS
, however this is not a valid command for the FONA 3G's SIM5320. As a result, this fails every time.In some other libraries like Adafruit_MQTT_FONA it checks the TCP connection to the MQTT server is open with TCPconnected(), this fails every time for the above issue.
I have not yet found which AT command is a substitute for AT+CIPSTATUS for the FONA 3G.
The text was updated successfully, but these errors were encountered: