MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
208 stars 152 forks source link

Help: How to turn on LED,.... #28

Closed boelle closed 5 years ago

boelle commented 8 years ago

Hi

I'm trying to build a GSM remote control for my car preheater....

What i want is to turn on the unit with a sms, but subsequent i will also want to send some status sms back.

of course i could just send the status text back to a list of numbers.

but ideal i want to send the status to the phone that started the unit.

for most uses we will only be 2 phones controlling the unit but it might change later

what i had in mind is that the sketch runs a loop where it checks for an incoming text

if there is one grap the number and then if the text says start do "blablabla" and delete the text

for starters i will just turn on a LED

now if i try to turn it off from the other phone it should just send back a text saying i did not turn it on and then delete the text

in the same loop i will pull stats from the heater and when thing happens i will send the stats to the phone that turned on the unit... hence my idea of grapping the number of the phone that starts the unit

any ideas?

a55830 commented 8 years ago

hi did you get it to work

at the moment im trying to just turn on LED.... i have a display on so i can se the message but how to get the message to plain txt or number

i can make it send sms with a push on a button...