we want to connect an existing system with a field-gateway like structure to azure iot hub. Our system already registers devices in azure iot hub using DPS group enrollment. After the enrollment process, we want to:
Send/Receive messages to/from iot hub
Send/Receive DeviceTwin updates (reported/desired) properties.
Currently we are not able to figure out how this can be done using the java-sdk. We can see that we have to use the TransportClient via AMQP and then add all devices which are to be multiplexed through this connection. Nevertheless, we are not able to figure our what we have to supply as ConnectionString for the first (and the successive) devices.
Can somebody drop a hint or point us to an example/relevant documentation?
We've got more than 100K devices. Currently we can see that adding/removing devices while using the TransportClient is not possible. Therefore we intend to create clusters containing e.g. 1000 devices each so we have to restart only 1 cluster if a device is added/removed. If there are better possibilities, we would be glad to hear about!