We want to create a device for each CNC machine to connect as an MTConnect adapter collecting incoming data from individual machine and stream them to Rest-API or mqtt according to requirements.
Raspberrypi will be connected internet over known wifi and machine with ethernet cable.
What we need to stream specifically from the machine side is that
1 the program cycle started
2 program cycle completed
3 canceled (with reason X)
4 stopped (with reason Y)
CNCs : Fanuc , Mazak, HaaS etc.
We can use either restapi or mqtt we are running the server side on AWS.