After performing a factory reset, the device will not reconnect to RMS automatically, as the reset removes all configuration data, including the certificates required for RMS communication. In this case, the device needs to be re-registered on the RMS platform to establish a connection again.
However, if you perform only a system settings reset (rather than a full factory reset), the RMS-related data is not cleared, and the device should reconnect after initiating the connection or running RMS service restart (with /etc/init.d/rms_mqtt restart command).