Skip to main content

moat-link-gate

% start synopsis % start main

Gateway modules for MoaT-Link providing KV and MQTT integrations.

This package provides gateway functionality for MoaT-Link, including:

  • MoaT-KV gateway for data storage integration
  • Raw MQTT gateway, using configurable codecs
  • Optional separate MQTT backend per gateway instance

% end synopsis

Features

The gateway bidirectionally translates from MoaT-Link to various other destinations. Messages are timestamped and marked, so there are no update cycles.

MQTT gateway

The MQTT gateway (driver mqtt) bridges a subtree in MoaT-Link to a subtree of MQTT topics.

Configuration

The gate entry at :R.gate.NAME accepts:

src Source path inside MoaT-Link (!P path).

dst Destination topic prefix on the MQTT broker (!P path, must not be inside the MoaT-Link root).

codec Codec for external MQTT messages. Either a codec name (string) or a !P path to a conversion vector stored under :R.conv.

backend (optional) When present, the gateway connects to a separate MQTT broker for its external side instead of reusing the primary MoaT-Link broker. Any field supported by moat.link.backend.mqtt may be given here; driver defaults to mqtt. Example::

  backend:
    driver: mqtt
    host: broker.example.com
    port: 1883
    codec: std-cbor

The backend connection is kept alive for the whole lifetime of the gateway and is torn down cleanly when the gateway stops.

speed (optional) Minimum interval in seconds between consecutive writes to MoaT-Link for the same path. Rapid external updates are coalesced.

% end main

License

This project is licensed under the same terms as MoaT.

Release files for moat-link-gate 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moat-link-gate 0.0.11
File Size Uploaded
moat_link_gate-0.0.11.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moat-link-gate 0.0.11
File Interpreter ABI Platform
moat_link_gate-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 42.0 kB

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page