Browse Source

pi2server

master
test2 5 years ago
parent
commit
e4f935071d
  1. 9
      IoT/SensorNode2Server.adoc

9
IoT/SensorNode2Server.adoc

@ -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"]

Loading…
Cancel
Save