Changes

Jump to: navigation, search
Verifying the transmission of data from the edge device to the cloud
mbient":{"temperature":21.027865147929575,"humidity":25},"timeCreated":"2019-08-19T15:01:43.206327Z"}]
</pre>
 
==Addendum==
For readers interested in the technologies underlying the Azure IoT Edge solution, it is worth remembering that modules are implemented as Docker containers. After deploying the ''Simulated Temperature Sensor'' module, for instance, it is easy to verify that a new container image is installed on the edge device:
<pre class="board-terminal">
armbian@sbcx:~$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mcr.microsoft.com/azureiotedge-simulated-temperature-sensor 1.0 a626b1a36236 4 weeks ago 200MB
mcr.microsoft.com/azureiotedge-hub 1.0 3a84bfb86c7d 4 weeks ago 252MB
mcr.microsoft.com/azureiotedge-agent 1.0 58276103181c 4 weeks ago 238MB
mcr.microsoft.com/azureiotedge-diagnostics 1.0.8 a480fa622e2a 4 weeks ago 7.34MB
</pre>
 
Similarly, one can use <code>docker</code> command line to verify that the ''Simulated Temperature Sensor'' module is listed among running containers:
<pre class="board-terminal">
armbian@sbcx:~$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
145db7780bec mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0 "/bin/sh -c 'echo \"$…" 18 hours ago Up 17 hours SimulatedTemperatureSensor
200e8563544f mcr.microsoft.com/azureiotedge-hub:1.0 "/bin/sh -c 'echo \"$…" 18 hours ago Up 17 hours 443/tcp, 5671/tcp, 8883/tcp edgeHub
da40f11b4c33 mcr.microsoft.com/azureiotedge-agent:1.0 "/bin/sh -c 'echo \"$…" 10 days ago Up 17 hours edgeAgent
</pre>
 
The same information can be retrieved by using <code>iotedge</code> command line:
<pre class="board-terminal">
armbian@sbcx:~$ sudo iotedge list
NAME STATUS DESCRIPTION CONFIG
edgeHub running Up 17 hours mcr.microsoft.com/azureiotedge-hub:1.0
SimulatedTemperatureSensor running Up 17 hours mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0
edgeAgent running Up 17 hours mcr.microsoft.com/azureiotedge-agent:1.0
</pre>
4,650
edits

Navigation menu