4b Raspberry Pi configuration IoT Edge

After you can ssh login, first we look at a variety of software update and upgrade. Then we start configuring deploy IoT Edge.

First, test to see whether pip python with the installation, because the back docker use.
Here Insert Picture Description
Too lazy to capture the specific processes see the documentation
link: Azure IoT Edge ON Raspberry Pi 3 with Raspbian .

After configured:

Here Insert Picture Description
Here Insert Picture Description

Return Azure portal 400 error:
Here Insert Picture Description
But he should be a connection, the opportunity to show off 406 Error:
Here Insert Picture Description
Then we

iotedge check

Check where the problem is, ah, then found that by operating among the above installation is not equipped iotedge of. . amount. . Illogical ah = =. . Well, whatever he installed our own.

sudo apt-get install iotedge

Then appeared the following figure, configure it
Here Insert Picture Description
and then

sudo vi /etc/iotedge/config.yaml

Edit the settings into the document. Vi also change the settings and then found not delete or backspace thing. Configured simply forgot how good the next vim

sudo apt-get install vim

Then add device information according to which the notes

After setting the restart iotedge server:

sudo iotedge restart edgeAgent
sudo systemctl restart iotedge

Ah because of vim blue with blue powershell with crimes against humanity too, replaced by a non-administrator mode powershell continue iotedge check No description
Well well my fault, need to give permission

sudo iotedge check

Here Insert Picture Description
Ah, continue to roll back configuration changes
after changing for the better, reconnect restart the service:

 sudo iotedgectl setup --connection-string "HostName=nicai;DeviceId=raspberry;SharedAccessKey=wobucai" --auto-cert-gen-force-no-passwords
 sudo iotedgectl restart

Then run detect what is not normal:
Here Insert Picture Description
every few minutes to look at,
Here Insert Picture Description
Here Insert Picture Description

Ness

Released four original articles · won praise 3 · views 75

Guess you like

Origin blog.csdn.net/Elleryer/article/details/105380877