The following table shows how the command is encoded for network transmission:
| Type | Name | Description |
|---|---|---|
| uint8 | id = 18 | The command byte that identifies this command. |
| VNodeID | node_id | The ID of the node being accessed. |
| uint16 | group_id | The ID of the tag group being accessed. |
| uint16 | tag_id | Set to ~0 in a client-to-host request to create a new tag, which is then filled in by the host in the reponse. Can be set to the value of an existing tag to work as a rename or just to re-set a tag to a new value. |
| (End of address part of command, below is data payload) | ||
| string16 | name | The name of the tag to create, or the new name for the tag if doing a rename (see above). |
| VNTagType | type | The value type of this tag. |
| VNTag | tag | The desired tag value. The content of this union value is controlled by the type parameter, above. |