diff --git a/IoT/SensorNode2Server.adoc b/IoT/SensorNode2Server.adoc index c32cb4d..5be3c53 100644 --- a/IoT/SensorNode2Server.adoc +++ b/IoT/SensorNode2Server.adoc @@ -419,10 +419,22 @@ composer require guzzlehttp/guzzle == IoT Server +.Imaging a swarm +image:./Swarming2.gif[alt="Swarm"] + + +.Architecture of swarm communication +image:./Swarming2.gif[alt="Swarm Gateway"] + +- Red Note: Sensor Node and Gateway Role +- Black and Red Note: Sensor Node - Client + === NodeJS ==== Gateway +Gateway forwards ore Client Data to the correct application - Server + .NodeJS code in Raspberry Pi - Server Gateway [source,c] ---- @@ -489,7 +501,12 @@ app.listen(9089, function () { ---- -==== Broadcast +==== Server - Broadcast + + +Broadcast data to swarm clients + +The server receives data from its client and echoes its back. .NodeJS code in Raspberry Pi - Server broadcast [source,c] @@ -542,6 +559,9 @@ io.on('connection', (socket) => { ==== Client Connection Raspberry +Swarm client recieves data + + .NodeJS code in Raspberry Pi - Client [source,c] ---- diff --git a/IoT/Swarming2.gif b/IoT/Swarming2.gif new file mode 100644 index 0000000..e47014f Binary files /dev/null and b/IoT/Swarming2.gif differ diff --git a/IoT/swarmlabn-1.png b/IoT/swarmlabn-1.png new file mode 100644 index 0000000..d7a41f9 Binary files /dev/null and b/IoT/swarmlabn-1.png differ