-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IoT_Example doesn't seem to be working #75
Comments
This last time I ran it seems like each time it's trying to get the IMEI from the FONA library it is looping. fona.getIMEI(imei); |
Still can't seem to find the difference between the iot example and lte demo example. |
I have the exact same issue, the LTE_demo works perfectly but the iot_demo stalls after the AT+GSN command... |
I found that |
All right, I found it! I installed a previous version of the Adafruit MCP9808 library and now it's working properly! |
Nice work @wwkv confirmed that does the trick for me as well. Your efforts are much appreciated :) @botletics can you please either update the documentation or implementation so that others don't fall into this issue please? |
@wwkv which version of the library did you use? I wasn't able to get it working with the adafruit mqtt example on any version. |
I used version 1.0.1. I'm still having issues too btw, the IMEI lookup works fine but if I enable the temperature sensor it doesn't want to connect to the MQTT. The only fix I now use temporarily is just uncomment all of the code that uses the MCP9808 library... I will look into it some more tomorrow. |
Try commenting out the temperature sleep and wake up lines. |
Included the serial output. I am using CloudMQTT. I have the 7000G version. I was able to successfully work through the LTE Demo sketch. I did have to add these two lines.
fona.setPreferredMode(38); // Use LTE only, not 2G
fona.setPreferredLTEMode(1); // Use LTE CAT-M only, not NB-IoT
I added them to the IoT Example sketch as well. I am noticing some off characters so possibly a baud rate issue? I really don't know. It just sits there at the end. I know the cell connection isn't established because the light is blinking at the slower speed.
*** SIMCom Module IoT Example ***
Configuring to 9600 baud
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
<--- AT
---> ATE0
<--- ATE0
---> ATE0
<--- OK
---> ATI
<--- SIM7000G R1529
OK
FONA is OK
Found SIM7000G (Global)
---> AT+GSN
<--- RRR�⸮%5
⸮⸮⸮Module IoT Example ***
Configuring to 9600 baud
Attempting to open comm with ATs
---> AT
<--- OK
---> ATE0
<--- OK
---> ATE0
<--- OK
---> ATI
<--- SIM7000G R1529
OK
FONA is OK
Found SIM7000G (Global)
---> AT+GSN
<---⸮
The text was updated successfully, but these errors were encountered: