You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			|  | 1 year ago | |
|---|---|---|
| .mosquitto | 1 year ago | |
| scripts | 1 year ago | |
| .gitignore | 1 year ago | |
| LICENSE | 1 year ago | |
| Makefile | 1 year ago | |
| README.md | 1 year ago | |
| docker-compose.yaml | 1 year ago | |
| go.mod | 1 year ago | |
| go.sum | 1 year ago | |
| main.go | 1 year ago | |
| main_test.go | 1 year ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	Learn MQTT with Go
Learning MQTT with Golang by doing. This repo is a simple example of using a Golang application as a client (pub & sub) of an MQTT broker.
Development
For local development we use Mosquitto as our MQTT broker, with TLS enabled.
First generate local development certs using:
make gen-local-tls-certs
This will create CA, server, and client certificates suitable for local development. Server and CA certs are created in ./.mosquitto/certs. The client cert is create in the project root.
Start the local development environment with:
make start-dev
Stop the local development environment with:
make stop-dev
Usage
Instructions TBD