BayEOS-PHP
 All Data Structures Namespaces Files Functions Variables Pages
BayEOSSender.php
Go to the documentation of this file.
1 <?php
2 /*
3  * Sender only
4  */
5 require_once 'BayEOSGatewayClient.php';
6 
7 $s = new BayEOSSender('/tmp/bayeos-device1',
8  "PHP-Test-Device",
9  "http://bayconf.bayceer.uni-bayreuth.de/gateway/frame/saveFlat",
10  "xbee",
11  "admin");
12 
13 while(TRUE){
14  $c = $s->send();
15  if($c){
16  echo "Successfully sent $c post requests\n";
17  }
18  sleep(5);
19 }
20 
21 ?>
$s
Definition: BayEOSSender.php:7