|
Post by warrenscorner on Mar 7, 2023 22:53:22 GMT
I installed a SIM7000A shield onto an Arduino Uno WiFi R2 and downloaded the example code. The code worked great and I was successful sending an SMS to my phone. Now that the initial test worked I would like to install my code to include the bare necessities from the example code to send an SMS. I copied and pasted what I thought I needed from the sample code but the SMS fails. Is there sample code that I could download that would give me SMS capability without giving me all of the other functionality?
|
|
|
Post by Botletics on Mar 8, 2023 2:28:42 GMT
|
|
|
Post by warrenscorner on Mar 8, 2023 23:39:18 GMT
Thank you. That worked great! All I need to do now is figure out how to send a text to myself when someone opens my garage door. I'm thinking I can declare callerIDnumber with my number. I have an Arduino 33 iot with a door switch connected. I'm sending data via mqtt to my Arduino Uno WiFi. I was hoping to use the Arduino cloud but the Uno WiFi is not a recognized device. I suppose I could connect the shield to another board.
This is cool stuff!
|
|
|
Post by warrenscorner on Mar 10, 2023 20:43:06 GMT
I deleted the code to receive SMS and I would like to send a simple SMS. How do I assign my phone number to callerIDbuffer? Do the variables in sendSMS have to be char type? I guess I don't understand the char data type.
|
|
|
Post by warrenscorner on Mar 10, 2023 22:14:05 GMT
I got it! char[14] phoneNumber = "001aaabbbcccc";
|
|