jgarland79 / gsm_shield Goto Github PK
View Code? Open in Web Editor NEWGSM Library for the SIM900 chip and the GBoard Arduino GSM development board
GSM Library for the SIM900 chip and the GBoard Arduino GSM development board
Using the GSM_Shield_Test sketch the returned number and message text are null from GetSMS - looking into this it seems the retrieve message command needs the position to be sent as a string rather than as the value itself. I'm not sure if this is the best arduino way of doing this, but a sample fix is as below:
char GSM::GetSMS(.)
...
//send "AT+CMGR=X" - where X = position
mySerial.write("AT+CMGR=");
char posArray[4];
itoa(position, posArray, 10);
mySerial.write(posArray); // was : mySerial.write((int)position)
mySerial.write("\r");
Hi,
I really appreciate you library so thank you very much!
in you sms.cpp it requires a char string for both the phone number and the message.
"
char SMSGSM::SendSMS(char *number_str, char *message_str)
"
Im hoping to send some dynamic information like temperature and other things
currently my temperature is a float.
is there any way of amending the sms.cpp to allow for more than just char strings?
this is where in at with my arduino code- its just a snippet:
if(!strcmp(smsbuffer,"Temp?")){
delay(dht.getMinimumSamplingPeriod());
float humidity = dht.getHumidity();
float temperature = dht.getTemperature();
Serial.println("Getting temperature");
Serial.print(temperature, 1);
Serial.print(" degrees C");
Serial.println("");
sms.SendSMS("+614********", (temperature, 1) );
Serial.println("\nSMS sent OK");
delay(10);
When I send the SMS. the Text from SMS is not display at serial screen... for serial communication I'm using baudrate 57600, and for SIM900 is 9600
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.