I have an Android app that is installed on some terminals with the barcode scanner, used for warehouse inventory, let's say we call them terminal1, terminal2, terminal3
All the terminals communicate with a mqtt broker installed on a PC inside the local lan Inside the lan
There are also other PCs, let's say we call them pc1, pc2, pc3
I would need to send the result of reading the barcode scanner from any terminal, to any PC
In essence, I would like to add to the functionality of the terminals, the possibility of being used also as fixed barcode scanners, and therefore connected to a certain pc station
And therefore I imagine there will have to be a software listening on each station waiting for the commands that could arrive from one or more terminals
Any advice on how to proceed?
Having already active the mqtt terminal-broker communication, maybe it would be enough to add a simple mqtt client on each pc
The terminal sends to the mqtt broker, and the individual pc being subscribers of some messages could 'see' the commands that arrive from terminal1/2/3
Or is it advisable to have the terminals communicate directly with the individual pc?
And then a socket-server or something similar on each pc?