_i have a sim800L with arduino nano and it’s work fine (in app and server) i would to use sms when internet get down.
so i don’t have any errour but it’s not working. ^-^
also i try the sms programme alone and it’s work.
_when i use the sms programme with blynk programme the sms programme don’t work.
Sorry my english is bad.
i appreciate any help.
this is my programme.
Blynk.begin is a blocking function. If it cant connect to the internet or to the Blynk server then it will stop all code execution.
Search the forum for Blynk.config and Blynk.begin with the SIM800 and you’ll see how to use these commands instead.
You will probably also have to do a Blynk.connected() test to know when to switch overs to SMS mode. I don’t think your current approach of switching to SMS mode every 2 seconds (and never switching back as far as I can see) will work with Blynk.
Use the search facility on this forum, but I doubt very much that you will find a ready-made so.option that echos what you are trying to do, so you’ll need to do your own testing and experimentation to get this working (if that is even possible).
thank you so much sir pete , it works fine now , I would never have had success without your advice .
i just have one problem , how to restart the sim800L if he get out or quit to researching to get network , i’m not skilled in coding yet .
hello, thanks pete and john
-my program work fine when i have internet or not (with SMS, when he get just the network without internet) , the problem as you know , I could not program the SIM800l to reboot when it completely leaves or lose the network and stop trying to get in, i don’t know how to use yours advice yet to reboot the SIM800l automatically , please give me a hande
ok thank you so much i will try this solution .
john i have a new problem this code is not working in ATMEGA328 microcontroller alone , when i use the board of arduino nano work fine and when i use the microcontroller alone not works (the same microcontroller but the package difference).
It would help if you explained exactly what hardware setup you are using, what Arduino IDE version you are using, what bootloader you’ve used, and exactly how far you are getting in the process of uploading and running your sketch.