add the API to check online devices