KafkaIoItemTopic Property
General info
Label |
Topic |
Description |
Topic is a group of related messages. Set in ItemID. |
Data type |
String |
Type |
Regular |
Code |
13184 |
Symbolic name |
MODEL_PROP_KAFKAIOITEMTOPIC |
Lua access code |
syslib.model.properties.KafkaIoItemTopic |
Available since |
1.84 |
- Parent classes
Attributes
| Name | Tooltip |
|---|---|
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_VOLATILE | The property exists during runtime of the service only and is not saved to the image. |
Examples
Read from or write to the KafkaIoItemTopic property.
-- Read from the KafkaIoItemTopic
syslib.getvalue("<OBJECT FULL PATH>.KafkaIoItemTopic")
-- Write to the KafkaIoItemTopic
syslib.setvalue("<OBJECT FULL PATH>.KafkaIoItemTopic", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the KafkaIoItemTopic
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.KafkaIoItemTopic"));
// Write to the KafkaIoItemTopic
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.KafkaIoItemTopic"));