update
This commit is contained in:
@@ -145,11 +145,12 @@ if ($type == "sara_connectNetwork") {
|
||||
|
||||
}
|
||||
|
||||
#SET THE URL for messaging
|
||||
#SET THE URL for messaging (profile id 2)
|
||||
if ($type == "sara_setURL") {
|
||||
$port=$_GET['port'];
|
||||
$url=$_GET['url'];
|
||||
$command = '/usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_setURL.py ' . $port . ' ' . $url;
|
||||
$profile_id = 2;
|
||||
$command = '/usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_setURL.py ' . $port . ' ' . $url . ' ' . $profile_id;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
}
|
||||
@@ -192,7 +193,8 @@ if ($type == "sara_sendMessage") {
|
||||
$port=$_GET['port'];
|
||||
$endpoint=$_GET['endpoint'];
|
||||
$endpoint = escapeshellcmd($endpoint);
|
||||
$command = '/usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_sendMessage.py ' . $port . ' ' . $endpoint;
|
||||
$profile_id = 2;
|
||||
$command = '/usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_sendMessage.py ' . $port . ' ' . $endpoint. ' ' . $profile_id;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
}
|
||||
|
||||
@@ -172,10 +172,9 @@
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<h3>MQTT</h3>
|
||||
<div class="row mb-3">
|
||||
<!-- Get CONFIG -->
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@@ -187,7 +186,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- MQTT LOGIN -->
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
@@ -202,7 +200,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Send MESSAGE -->
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
@@ -219,7 +216,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
-->
|
||||
<h3>Send message (test)</h3>
|
||||
<div class="row mb-3">
|
||||
<!-- SET URL -->
|
||||
|
||||
Reference in New Issue
Block a user