Giter Club home page Giter Club logo

gsm_shield's People

Contributors

jgarland79 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gsm_shield's Issues

Fix blank phone number and SMS text on return from GetSMS()

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");

SMS.cpp

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);

SMS Not Display

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.