Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcpratheesh/mqtt-publisher-subscriber-golang
This repository contains a simple example of an MQTT producer and consumer implemented in Golang using the popular "paho.mqtt.golang" library. The producer publishes simulated temperature readings, and the consumer subscribes to the topic to receive and display the messages.
https://github.com/pcpratheesh/mqtt-publisher-subscriber-golang
Last synced: 12 days ago
JSON representation
This repository contains a simple example of an MQTT producer and consumer implemented in Golang using the popular "paho.mqtt.golang" library. The producer publishes simulated temperature readings, and the consumer subscribes to the topic to receive and display the messages.
- Host: GitHub
- URL: https://github.com/pcpratheesh/mqtt-publisher-subscriber-golang
- Owner: pcpratheesh
- Created: 2023-08-05T14:23:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-05T16:01:00.000Z (over 1 year ago)
- Last Synced: 2024-06-05T09:17:24.811Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mqtt-publisher-subscriber-golang
This repository contains a simple example of an MQTT publisher and subscriber implemented in Golang using the popular "paho.mqtt.golang" library. The publisher publishes simulated temperature readings, and the subscriber subscribes to the topic to receive and display the messages.**Key Features**:
- MQTT Publisher: Publishes messages to an MQTT broker at regular intervals.
- MQTT subscriber: Subscribes to the topic and displays received messages.
- Lightweight: Built with Golang and uses the lightweight MQTT protocol, making it efficient for IoT and M2M applications.**Usage**:
1. Clone the repository: `git clone https://github.com/pcpratheesh/mqtt-publisher-subscriber-golang`
2. Make sure you have Golang installed on your system.
3. Install the required dependencies: `go get -u github.com/eclipse/paho.mqtt.golang`
4. Run the MQTT publisher: `go run publisher.go`
5. Run the MQTT subscriber: `go run subscriber.go`