【发布时间】:2017-09-03 01:08:27
【问题描述】:
Arduino 是否可以在不使用 GSM 屏蔽的情况下向互联网发送消息?
我需要一个 Arduino 来按一个按钮发送消息,该按钮连接到 Arduino 和以太网屏蔽,而不使用 GSM 屏蔽。
我需要通过 GET/POST 使用服务器中包含的 HTML/PHP API 代码发送消息。我在此代码中使用此代码,数据很好地插入 SQL 数据库,但如果成功插入数据,则通过 PHP API 发送短信。但它不起作用。这是我的 PHP 代码:
<?php
$mysqli = new mysqli("localhost", "user", "password","db");
$tag=$_GET["value"];
$result = $mysqli->query("INSERT INTO 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");
}
?>
【问题讨论】:
-
您可以发送电子邮件。有图书馆。
-
你的问题有点含糊。您想在将数据插入数据库时向手机号码发送确认消息,我认为这是您的目标。
标签: arduino