machhub-sdk-realtime

Subscribe to tags and publish MQTT/NATS messages for MACHHUB IoT data streams.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/machhub-dev/skills --skill machhub-sdk-realtime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: machhub-sdk-realtime
Source: https://github.com/machhub-dev/skills/tree/main/machhub-sdk-realtime
Command: npx skills add https://github.com/machhub-dev/skills --skill machhub-sdk-realtime

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables real-time tag subscriptions and MQTT/NATS messaging for MACHHUB IoT data streams, allowing systems to react instantly to sensor updates.

Core Features & Use Cases

  • Real-time tag subscriptions and message routing for dashboards, alerts, and automation.
  • Wildcard topic support and publishing to topics to drive reactive workflows.
  • Use cases include live sensor monitoring, IoT dashboards, and event-driven alerts.

Quick Start

Use the machhub-sdk-realtime skill to start subscribing to sensor topics and publishing values within your MACHHUB-enabled project.

Frequently Asked Questions about machhub-sdk-realtime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I subscribe to real-time IoT data streams using MQTT or NATS?

To subscribe to real-time IoT data streams, you can use the MACHHUB SDK to connect to MQTT or NATS protocols, enabling live tag subscriptions for instant sensor updates. It supports individual and wildcard topic routing for dashboards and alerts.

Can I use wildcard topics for real-time MQTT subscriptions in an IoT dashboard?

Yes, you can use wildcard topics for real-time MQTT subscriptions to route sensor updates dynamically across IoT dashboards. The MACHHUB SDK supports wildcard topic matching, allowing systems to react instantly to events from multiple sensor tags.

What is the best way to publish sensor values to NATS topics for event-driven alerts?

The best way to publish sensor values to NATS topics for event-driven alerts is through the MACHHUB SDK's messaging interface. It enables direct publishing to specified topics, driving reactive workflows and automation across your IoT infrastructure.

Do I need to initialize the MACHHUB SDK before subscribing to real-time tag data?

Yes, you need to complete the MACHHUB SDK initialization workflow and use the included TypeScript templates before subscribing to real-time tag data. This setup is required to establish connections for MQTT and NATS messaging.

Does the MACHHUB SDK support both MQTT and NATS protocols for live sensor monitoring?

Yes, the MACHHUB SDK supports both MQTT and NATS protocols for live sensor monitoring and real-time data streams. You can build live dashboards and alerting flows by subscribing to and publishing values across either messaging protocol.

Why are my real-time IoT tag subscriptions not receiving messages from wildcard topics?

Real-time IoT tag subscriptions may fail to receive messages from wildcard topics if the MACHHUB SDK initialization workflow was not completed or the TypeScript templates were not properly configured. Ensure your MQTT or NATS connection is active and topic patterns match.