matthewdargan / mqtt-clients-showcase

Publish and subscribe on MQTT room sensor data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTT Clients Showcase

Build Status Go Report Card License

The MQTT Clients Showcase simulates an MQTT publisher and subscriber for room sensor data.

Installation

In order to use the MQTT Clients Showcase, install Go on your operating system.

Running the MQTT Clients

The showcase includes two main components: pub and sub, which simulate the MQTT publisher and subscriber services, respectively.

Running the MQTT Publisher (pub)

To run the MQTT publisher, run the following command in the project root directory:

go run pub/main.go

Running the MQTT Subscriber (sub)

To run the MQTT subscriber, run the following command in the project root directory:

go run sub/main.go

Testing

To run automated unit and integration tests, use the following command:

go test ./...

About

Publish and subscribe on MQTT room sensor data

License:Apache License 2.0


Languages

Language:Go 100.0%