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