pub async fn register( client: &CloudClient, name: &str, platform: &str, ) -> Result<RegisterDeviceResult>