MCPcopy Index your code
hub / github.com/edgexfoundry/device-mqtt-go

github.com/edgexfoundry/device-mqtt-go @v4.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.0.2 ↗ · + Follow
78 symbols 211 edges 11 files 6 documented · 8%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Device MQTT Go

Build Status Code Coverage Go Report Card GitHub Latest Dev Tag) GitHub Latest Stable Tag) GitHub License GitHub go.mod Go version GitHub Pull Requests GitHub Contributors GitHub Committers GitHub Commit Activity

Warning
The main branch of this repository contains work-in-progress development code for the upcoming release, and is not guaranteed to be stable or working. It is only compatible with the main branch of edgex-compose which uses the Docker images built from the main branch of this repo and other repos.

The source for the latest release can be found at Releases.

Overview

MQTT Micro Service - device service for connecting a MQTT topic to EdgeX acting like a device/sensor feed.

Documentation

For latest documentation please visit https://docs.edgexfoundry.org/latest/microservices/device/services/device-mqtt/Purpose

Build with NATS Messaging

Currently, the NATS Messaging capability (NATS MessageBus) is opt-in at build time. This means that the published Docker images do not include the NATS messaging capability.

The following make commands will build the local binary or local Docker image with NATS messaging capability included.

make build-nats
make docker-nats

The locally built Docker image can then be used in place of the published Docker image in your compose file. See Compose Builder nat-bus option to generate compose file for NATS and local dev images.

Packaging

This component is packaged as docker images. Please refer to the Dockerfile and Docker Compose Builder scripts.

Community

  • Discussion: https://github.com/orgs/edgexfoundry/discussions
  • Mailing lists: https://lists.edgexfoundry.org/mailman/listinfo

License

Apache-2.0

Core symbols most depended-on inside this repo

newResult
called by 35
internal/driver/driver.go
sendTestData
called by 5
mock/device.go
fetchCommandTopic
called by 4
internal/driver/config.go
createMqttClient
called by 3
mock/device.go
fetchCommandResponse
called by 2
internal/driver/driver.go
NewProtocolDriver
called by 1
internal/driver/driver.go
handleReadCommandRequest
called by 1
internal/driver/driver.go
handleWriteCommandRequest
called by 1
internal/driver/driver.go

Shape

Function 52
Method 22
Struct 4

Languages

Go100%

Modules by API surface

internal/driver/driver_test.go34 symbols
internal/driver/driver.go22 symbols
internal/driver/config.go8 symbols
mock/device.go6 symbols
internal/driver/readingchecker.go4 symbols
internal/driver/responselistener.go1 symbols
internal/driver/incominglistener.go1 symbols
internal/driver/config_test.go1 symbols
cmd/main.go1 symbols

For agents

$ claude mcp add device-mqtt-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page