rs232_add
Adds RS232 commands or sensors under an extension, modeled on existing objects, and wires them to pages via ref_add/block_connect.
Instructions
Adds a command (kind='befehl', code = command bytes) or a sensor (kind='sensor', code = check pattern such as \x07\xF0\x00\xDE\x14\s3\1) under an RS232 extension, modelled on existing objects there. Wire it on pages with ref_add/block_connect.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"title": "<title>",
"code": "<code>"
},
"name": "rs232_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| kind | Yes | ||
| title | Yes | ||
| analog | No | ||
| device | No | ||
| code_off | No |