# ck send lin-update

Updates a message buffer in a slave. The contents of the message buffer will be used the next time the slave is polled for the specified LIN message id.

## Synopsis

```text
ck send lin-update
    <OUTPUT_CHANNEL_NAME_OR_ID>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [-i|--id <MESSAGE_ID>]
    [-d|--data <MESSAGE_DATA>]
    [-f|--frame <FRAME>]

ck send lin-update -h|--help
```

## Arguments

- ```OUTPUT_CHANNEL_NAME_OR_ID```  
The identifier/name of the output channel to be used.

## Options

- ```--url```  
Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.

- ```--api-key```  
API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.

- ```--language```  
Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).

- ```-i|--id```  
The message id. Prefix with 0x to indicate hex format. Valid identifiers are 0-63. Not used together with --frame.

- ```-d|--data```  
The message data, a byte array (hex format) passed as a string, e.g. 0001020304. Max 8 bytes are allowed. Not used together with --frame.

- ```-f|--frame```  
The whole message given as ID[#DATA], as an alternative to --id and --data. The ID is decimal, or hex when prefixed with 0x, and must be in the range 0-63. The DATA is a byte array in hex format, and may be left out for a message with no data. Examples: 1#0102030405060708, 0x3F#AABBCCDD.

## Examples

```bash
ck send lin-update "LIN 1" -i 1 -d 0102030405060708
ck send lin-update "LIN 1" --id 0x3F --data AABBCCDD
ck send lin-update "LIN 1" --frame 1#0102030405060708
```

