system
March 3, 2015, 1:55pm
1
Hi Im new at arduino and programming.
May I ask is there a way to send the reading of my sensor (Dht11) through SMS using a GSM shield?
Can i use the AT+CMGS command here? Or what Command will i use?
I have set my temp and humidity into these
int h = dht.readHumidity();
int t = dht.readTemperature();
system
March 4, 2015, 7:08am
2
I have this code.
(sms.SendSMS("3471234567", "Arduino SMS"))
How can i send the reading of this by substituting it as an variable in the body of sms
Caveat - I don't use libraries with the GSM/GPRS shields.
I would suggest that you need to convert your variables to a string (sprintf? http://www.cplusplus.com/reference/cstdio/sprintf/ ) and then replace "Arduino SMS" with your formatted data.
system
March 4, 2015, 1:26pm
4
Thanks!
Are you using the softwareserial only? and the AT commands?
Yes, just use SoftwareSerial, send a command but then wait for the response before carrying on. You might get an error message which needs to be acted upon!