I'm using a Raspberry Pi 4B as a manually configured device. In Python 3.9.4, I'm running an ArduinoCloudClient on one thread and an MQTT client on another with my code executing in the main thread. It appears to be more-or-less working, but there's a minor issue on start-up as I can't determine exactly when the ArduinoCloudClient becomes ready to accept variable updates. If the updates come too early, error messages result.
I've got around the issue by putting in a delay between start-up and first update, but it's a bit inelegant and no sensible delay is absolutely guaranteed to work. I'd like to be able to check in the script whether the client is ready.
Is there a way to check programmatically the client status and whether it has completed its configuration and is ready to receive variable updates?