Jump to content









Photo

Invalid value for SMS

SMS Phone Number Error 27

  • Please log in to reply
2 replies to this topic

#1 rmedrano23

rmedrano23

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 24 May 2014 - 10:10 PM

Hi.

I am just trying to test a temperature sensor in my arduino uno. I need to send an SMS to my phone number in Costa Rica +50683111409 but I receive the following alarm:

 

"Listener ListenerSendSMS2@rmedrano23.rmedrano23:Validation error Value 27 50683111409 27 is invalid for parameter 27recipient 27"

 

I built the listener following the wizard and  I am using this expression:

 

--------------------------

import com.carriots.sdk.utils.Sms;
 
def sms = new Sms();
sms.to="+50683111409";  
sms.message="Temperature has exceeded 32 degrees";
 
sms.send();
---------------------------
 
Right now I can't try other combinations like sms.to="(506)8311 1409" because I reached the limit of 5 SMS per day :-(.
 
Does any one know what the correct way is to format the phone number? Is there a limitation on free accounts to send SMS overseas? Any suggestion will be appreciated. Regards. Rodolfo.


#2 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 107 posts
  • LocationMadrid, Spain.

Posted 26 May 2014 - 09:19 AM

Hi

 

You can look at documentation https://www.carriots...y_libraries#sms and try to use the format: 00xxx

 

 

 

I hope this can help you!



#3 rmedrano23

rmedrano23

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 May 2014 - 05:33 AM

Thanks a lot for your answer. I will review in detail the documentation I and let you all know the results. Regards.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users