Skip to content

SMS.cpp #3

@Lelandwilson

Description

@Lelandwilson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions