How i can connect my esp8266 to arduino iot cloud through a gsm module?
Hi!
You can try the following:
- Add this line to your sketch (i.e. before the
setup()
function)
GSMConnectionHandler ArduinoIoTPreferredConnectionGSM(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
- Replace the existing
ArduinoCloud.begin()
line with
ArduinoCloud.begin(ArduinoIoTPreferredConnectionGSM);
- Go to the Secret tab and add values to your newly created secrets (APN, ...)
Not sure if it will work, as I don't have a GSM board at hand and I couldn't test it.
Let me know if works.
And if I use an A9G board ?
I have merged your cross-posts @stillmt.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Hi @stillmt. This GSM module is not supported for use with Arduino IoT Cloud. If you would like to use Arduino IoT Cloud via GSM, you should use the MKR GSM 1400 board.
And if i want to use an arduino nano with a SIM808, how i can do it?
You can't use Arduino IoT Cloud with that hardware.
So if i want to use Arduino IoT Cloud with GSM i have to buy a 90$ board for a school project. Seriously?
As long as you have internet connection, you should be able to access the IoT Cloud.
The problem is that the Arduino IoT Cloud library does not support managing your modem, so that's something you must do on your own. I guess there will be libraries to communicate with the SIM808 modem.
So my suggestion is that you try managing the internet connection using your own code and then use the IoT Cloud library. Not 100% sure if it will work, as there might be some conflicts between connectivity libraries, but I think it's worth trying.
You can come back here if you find any issues... or if it works (as that might be very valuable feedback for everyone).
Where i can find the documentation to code on my own? The library, the commands, the classes, etc.
Two alternatives come to my mind:
- You can use AT commands directly to communicate with the modem using the serial port.
- You can try to find a suitable library
With a quick Google search, I found this one (that I don't know if it will work and how it works).
And there are a couple of additional libraries in the Library manager if you search for "simcom". You could give them a try.
I would start with the 2nd one.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.