DataHub NATS topics
3 min
nats topics read live values published to litmus edge's internal nats broker tool description get current value from topic subscribe to a nats topic and return the next published message get multiple values from topic collect multiple sequential values from a nats topic for trend analysis when to use which spot read get current value from topic for the next message on a topic useful when devicehub publishes tag values you want to inspect without persisting them short window of samples get multiple values from topic to collect n consecutive messages for a quick trend check for longer or historical windows, use influxdb / time series # tools instead both tools open a nats subscription, wait for messages, then drain and close cleanly requirements nats source , nats port , nats user , nats password headers nats tls defaults to true ; set to false if your broker is non tls setting up nats access on litmus edge navigate to litmus edge > system > access control > tokens create or configure an access token with permissions for the topics you want to read provide the token username and value as nats user / nats password in your mcp client configuration related devicehub, tags # the tag output topic is what these tools subscribe to influxdb / time series # for historical analysis