Updated sample due to fix in API server for read device by HardwareId