Part of the HoloScript Traits reference. Browse: Social · AI Autonomous · All Traits
Category: IoT/Industrial Tags: iot, twin, synchronization, sensors, industry
Bidirectional synchronization between HoloScript objects and real-world industrial sensors or digital twins.
object IndustrialArm @twin_sync(topic: "factory/cell_01/arm", interval: 100) {
geometry: "models/arm.glb"
}
| Config | Type | Default | Description |
|---|---|---|---|
topic |
string | null | MQTT/REST endpoint or topic name |
interval |
number | 100 | Sync frequency in milliseconds |
mode |
string | 'push' | 'push' (real → virtual), 'pull', 'both' |
protocol |
string | 'mqtt' | 'mqtt', 'opc-ua', 'rest' |
State:
lastUpdate- Timestamp of last syncsensorData- Raw data from the twinisConnected- Connection status
Events:
twin_connect- Connection establishedtwin_data- New data receivedtwin_disconnect- Connection losttwin_error- Synchronization error
Category: IoT/Industrial Tags: actuator, control, physical, bridge
Triggers physical actions from virtual interactions.
object FactorySwitch @twin_actuator(actuator_id: "arm_01_reset") {
geometry: "models/switch.glb"
onInteraction: {
emit "twin_trigger" { action: "reset" }
}
}
| Config | Type | Default | Description |
|---|---|---|---|
actuator_id |
string | null | Unique ID of the physical hardware |
protocol |
string | 'mqtt' | 'mqtt', 'rest' |
Events:
twin_trigger- Emitted to target physical hardwaretwin_actuated- Confirmed completion from physical hardware
MQTT message subscription.