# fuchsia.castsysteminfo

<br />

Added: 7

## **PROTOCOLS**

## Provider

*Defined in [fuchsia.castsysteminfo/cast_system_info.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castsysteminfo/cast_system_info.fidl;l=33)*

Exposes Cast system info, as modeled in the SystemInfo table.

<br />

### GetSystemInfo

Retrieves the SystemInfo fields that are generated at first boot and are
available at startup.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.castsysteminfo#Provider_GetSystemInfo_Result` |

## **STRUCTS**

### Provider_GetSystemInfo_Response

*Defined in [fuchsia.castsysteminfo/cast_system_info.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castsysteminfo/cast_system_info.fidl;l=36)*

| Field | Type | Description | Default |
|---|---|---|---|
| `systemInfo` | `https://fuchsia.dev/reference/fidl/fuchsia.castsysteminfo#SystemInfo` |   | No default |

## **ENUMS**

### ErrorCode [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.castsysteminfo/cast_system_info.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castsysteminfo/cast_system_info.fidl;l=9)*

Error codes for the GetSystemInfo operation.

<br />

| Name | Value | Description |
|---|---|---|
| ### ERR_NO_SYSTEM_INFO | `1` | Error when there is no system info available. |
| ### ERR_INTERNAL | `2` | Generic error. |

## **TABLES**

### SystemInfo

*Defined in [fuchsia.castsysteminfo/cast_system_info.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castsysteminfo/cast_system_info.fidl;l=21)*

Cast-related device settings

This table may be extended to include additional cast-specific information.
The values requested here are generated on first boot of the device and
don't change unless there is a factory reset.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `local_device_id` | `string` | Local (CastV2) device ID. Identifies the device on a local network. Used by the Home app as the device identifier and for MDNS record matching. |
| ### 2 | `cloud_device_id` | `string` | The device will use this identifier to send/receive CloudCast commands. Sending a CloudCast command to the receiver with this ID will ensure that the command is accepted and consumed by the device. |

## **UNIONS**

### Provider_GetSystemInfo_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.castsysteminfo/cast_system_info.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castsysteminfo/cast_system_info.fidl;l=36)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.castsysteminfo#Provider_GetSystemInfo_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.castsysteminfo#ErrorCode` |   |

<br />