...
SDK “Waiting for Auth” Queue
Had to add a “waiting for auth” state where hardware sockets would connect, but the exhibit hasn’t received the connected If the exhibit SDK has not yet received the hardware list from the platform yet (Gumband Cloud but is expecting to (ie. noInternetConnection: false
and the SDK is initializing or the exhibit is temporarily offline). When it does, it would send the message to ask for auth on that client. If it doesn’t, it will disconnect is 10s
and then assuming the hardware would try to reconnect and repeat the cycle until it connects.
TODO: If the SDK disconnects due to no hardwareID in this queue, it should respond per the updated MQTT spec.
...
, the SDK holds hardware connections in a “Waiting for Auth” queue as it waits for the hardware list. When the SDK adds connections to this queue, it doesn’t request the auth token from the connection immediately but instead just holds the connection. If the SDK doesn’t receive the hardware list from the Gumband Cloud within 10 seconds, it will disconnect the hardware connection assuming that the hardware will try to reconnect, and repeat that cycle until the Gumband Cloud connection is re-established.
How Two MQTT Connections for the Same Hardware ID Respond
...