This page is retained for historical reference and may not reflect the current MOSH/IMC/MTRP architecture. See architecture_map for the current model.
The Element Manager is the hardware-to-MOSH interface, and is the subsystem responsible for managing all active elements on a MOSH node. It reads raw hardware data, and separates it into properties used by other MOSH elements. This separation allows an elements properties to reflect their intended use more clearly, and enables different properties from the same device to be routed independently. For example:
The Element Manager also maintains a list of element properties to be the used by the Virtual Wire Manager.
The Element Manager ensures that elements:
The Element Manager enables modular, plug-and-play integration of inputs, outputs, and logic into the MOSH runtime.
The Virtual Wire Manager is responsible for routing messages between elements based on their assigned virtual wire IDs. It acts as a logical patch panel, allowing input elements (like buttons, sensors, or timers) to trigger actions on output elements (like LEDs, relays, or motors) without direct coupling.
By abstracting the connection layer, the Virtual Wire Manager enables modular, transport-agnostic automation across distributed nodes. It ensures that status or property change messages are delivered in real time to all elements subscribed to a given wire, regardless of their physical location or transport layer.
Virtual wires form the backbone of decentralized automation in MOSH.
The Transport Manager oversees all communication interfaces used by a MOSH node. It handles registration, configuration, and routing for multiple simultaneous transports—including ESP-NOW, Serial, Wi-Fi, and others.
Each transport is wrapped in a standardized MOSH class, allowing MOSH Core to send and receive messages without needing to know the specifics of the underlying radio or link.
The Transport Manager:
The Transport Manager makes MOSH hardware-agnostic, enabling seamless communication across diverse networks and physical layers.