How to fix when the device states “offline”?