|
@ -391,19 +391,12 @@ var serverIOT=IP_SERVER |
|
|
[source,php] |
|
|
[source,php] |
|
|
---- |
|
|
---- |
|
|
require "vendor/autoload.php"; |
|
|
require "vendor/autoload.php"; |
|
|
|
|
|
|
|
|
$client = new \GuzzleHttp\Client(["base_uri" => "http://SERVER"]); |
|
|
$client = new \GuzzleHttp\Client(["base_uri" => "http://SERVER"]); |
|
|
|
|
|
|
|
|
$options = [ |
|
|
$options = [ |
|
|
|
|
|
|
|
|
'form_params' => [ |
|
|
'form_params' => [ |
|
|
|
|
|
|
|
|
"fruit" => "apple" |
|
|
"fruit" => "apple" |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
$response = $client->post("/post", $options); |
|
|
$response = $client->post("/post", $options); |
|
|
|
|
|
|
|
|
echo $response->getBody(); |
|
|
echo $response->getBody(); |
|
@ -417,7 +410,7 @@ composer require guzzlehttp/guzzle |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
== IoT Swarm Server |
|
|
== IoT Swarm - Gateway and Server |
|
|
|
|
|
|
|
|
.Imaging a swarm |
|
|
.Imaging a swarm |
|
|
image:./Swarming2.png[alt="Swarm"] |
|
|
image:./Swarming2.png[alt="Swarm"] |
|
|