Home › Forums › Mayfly Data Logger › Using Xbee Cellular Modem with ThingSpeak › Reply To: Using Xbee Cellular Modem with ThingSpeak
It should be interesting to see what
It should be interesting to see what you get with your cell modem.
Using your sketch, which references the latest ModularSensors
Using ModularSensors Library version 0.30.0
TinyGSM Library version 0.11.4
My cell modem which is running on Verizon wouldn’t connect. The modem issues are technical and I believe understood, and have been discussed.
This specific modem has been working no problem in my fork which has modifications for managing the startup of the cell modem and works for the cell company I’ve been using …. my fork currently is at ModularSensors 0.28.5
I did try compiling your program in my fork, but there is some changes in 0.30.0 that aren’t backward compatible, so I need to upgrade before I can try this.
Still with your software, referncing MS 0.30.0 I switched the modem to Digi WiFi S6B, which I use a lot in testing, and it worked no problem.
Once connected to an TCP/IP link – whether over cell or wifi – the passage of data is the same, though Modem AT cmds may be a little different.
So this is what I get
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
Sending data to [ 0 ] mqtt.thingspeak.com 5 fields will be sent to ThingSpeak <--ThingSpeakPublisher Topic [ 38 ]: channels/5940/publish/DHCKWX0HZQLHGIAX <--ThingSpeakPublisher Dumping the TX Buffer <--dataPublisherBase Message [ 106 ]: created_at=2021-07-29T18:34:00-05:00&field1=-9999.0&field2=-9999.00&field3=-9999.0&field4=4.761&field5=-25 <--ThingSpeakPublisher Opening MQTT Connection <--ThingSpeakPublisher +++OK ATLAmqtt.thingspeak.com 34.194.225.123 ATIP 1 ATDL 132.163.97.6 ATDL34.194.225.123 OK ATDE 25 ATDE75b OK ATWR OK ATAC OK ATCN OK $MQTTÂMSMSZ0G6QS4IXEHKG0PK MQTT connected after 838 ms <--ThingSpeakPublisher 0&channels/5940/publish/DHCKWX0HZQLHGIAXcreated_at=2021-07-29T18:34:00-05:00&field1=-9999.0&field2=-9999.00&field3=-9999.0&field4=4.761&field5=-25ThingSpeak topic published! Current state: 0: MQTT_CONNECTED Disconnecting from MQTT <--ThingSpeakPublisher à+++OK ATTM |