0

Why cannot I run two testAgents(of raspberry pi) at the same time?

When I run them in two separate raspberry pi boards with different deviceIds, when one is connected to the broker other one gets disconnected. Then the next one is connected and 1st gets disconnected... They don't do anything else.

I cannot guess any reason for this and I tried my best to solve this. I tried with same user, different users, same access token, different access tokens. But same thing happened.

hardillb
  • 54,545
  • 11
  • 67
  • 105

1 Answers1

0

They will be using the same MQTT client ID. The broker will always disconnect the first client that connects with a client ID when a second client connects with the same client ID.

The logs from the broker should show this happening.

hardillb
  • 54,545
  • 11
  • 67
  • 105