Send SMS via Arduino without GSM -


is possible arduino send message internet without using gsm shield?

i need arduino send message pressing push button, connected arduino , ethernet shield, without using gsm shield.

i need send message using html/php api code included in server via get/post. i'm using code in code data nicely insert in sql database if insert data send sms via php api. it's not working. here php code:

<?php   $mysqli = new mysqli("localhost", "user", "password","db");   $tag=$_get["value"];   $result = $mysqli->query("insert tag_tbl (tag_value, status) values ('".$tag."', 1)");   if ($result === false) {     echo "sql error:".$mysqli->error;   } else {     header("location: https://vas.banglalinksgsm.com/sendsms/sendsms?msisdn='xxxxx'&message='".$tag."'&userid=xxxxx&passwd=xxxxxx&sender=wsc");   } ?> 

i think want send message number when data inserted database. best way use online message service provider.

i suggest clickatell (which provide few free messages testing) , later can buy api if want commercial purpose. first need register on site. login it, there can take sms integrations. in there option create new integration. enter name, desciption,then choose environment , api , go through features settings etc. can choose phone numbers here can add test phones sms free of cost. @ last save integration. after api key can use message services.this video set clickatell api.

now how can make send message?.

you can use inside php code. following block of code enough send message mobile number.

code:

{ $ch1 = curl_init(); curl_setopt($ch1, curlopt_url, "https://platform.clickatell.com/messages/http/send?apikey=place_your_api_key_here&to=place_your_number_here&content=%20%09alert%09%20%0a%0ayour%20vehicle%20is%20noticed%20crossing%20the%20speed%20limit%0a%0a%0aspeed%20:%20".$speed."%20kmph" ); curl_setopt($ch1, curlopt_header, 0);  curl_exec($ch1);  curl_close($ch1); } 

you can use anywhere inside php code want send message. edit apikey , to in code per api key , test mobile number. edit content portion requirement.

%20%09alert%09%20%0a%0ayour%20vehicle%20is%20noticed%20crossing%20the%20speed%20limit%0a%0a%0aspeed%20:%20".$speed."%20kmph 

the above shown content. send message

your vehicle noticed crossing speed limit speed: 50 kmph 

%20,%09,%0a various format specifiers make message formatted (edit them wish). .$speed. used add speed, send arduino php code, in message send phone.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -