In all Factories we have machines or robots, these are the core of the factories, the more follow up for info from them , the better the performance.
That's why in this platform prototype , I'm Going to collect data from these robot ( Temperature and Vibration) Using Simulation code into Adafruit Feather HUZZAH with ESP8266 this code send the Robot ID , Related Related Temperature and related Vibration( we can add as much as we can of Robots and we can change the type of info to add beside Temp and Vib like up time , errors, etc... ).
These Info gonna send over TCP/IP Socket to a Raspberry Pi , or any PC running Python code attached into this tutorial. That will play the role of called it IoT Gateway, and that will save a cost and development time of this platform.
Once Info sent to Raspberry Pi , for IoT Gateway , The Gateway will collect the info according to Algorithm that we like to program , in real time ,and send the result of this Alogarthem based on Periodical messages , that we can set also, to Azure IoT Hub , that we reffer to it into Python code and Related "CONNECTION_STRING".
Onec the Message reach the IoT Hub , we creat a Listner for all these messages into out IoT Gateway so we validate the info has been sent.Actually we create Thread that take the messages ( Telementary) from cloud and print it into Console.
Once the Message is into Azure IoT Hub , we route them to :
1- Blob Storage Using Message routing ,
2- Table Storage using Azure Function APP
3- then download and process the data into remote computer.