SSH onto the device.
ssh pi@ipaddress or putty.exe on Windows.

pi@hostname $ cd /var/lib/ame/

pi@hostname $ ls 

Make sure only 1 intertrade folder.
If more than 1 Intertrade folder , check which is the correct one ,

pi@hostname  $ cd
pi@hostname  $ more /home/pi/device_config.sh | grep device


Next , create an SSL Folder 


pi@hostname $ cd /var/lib/ame/intertrade(x)/

pi@hostname : ~/var/lib/ame/intertradex/  $  sudo mkdir ssl

pi@hostname : ~/var/lib/ame/intertradex/  $  sudo chmod 755 ssl  

pi@hostname : ~/var/lib/ame/intertradex/  $  sudo chown pi ssl

pi@hostname : ~/var/lib/ame/intertradex/  $ cd


Now winscp to the device and Copy the SSL directory into the device's home/pi directory. 


Check google sheets for the correct SSL folder for the device.

https://docs.google.com/spreadsheets/d/1dkAaotw9DkEuFAoeH0xC7e0HEQXKGGadkyJRnGbZ_Hk/edit#gid=0


Copy the folder from home/pi to ssl directory. 

pi@hostname $ cp client_ame-(x)/* /var/lib/ame/intertrade(x)/ssl 


Now upgrade the device to the Latest Version with Upgrade command.

pi@hostname $ cd amedevices/videodevices/

pi@hostname :~/amedevices/videodevices/ $  ./upgrade.sh 

pi@hostname :~/amedevices/videodevices/ $  cd ..

pi@hostname :~/amedevices/ $  cd services

pi@hostname :~/amedevices/services/ $  cd edge_bot

pi@hostname :~/amedevices/services/edge_bot/ $  ./start.sh 


Now login to Rabbit server and check that the device is consuming from the Edge queue on Rabbit. 

And make sure that the consumer is using a Public IP and not 172.29...

http://192.168.7.10:15672/#/queues

isdadmin / just a spoon