You've already forked Adafruit_MQTT_Library
							
							
				mirror of
				https://github.com/adafruit/Adafruit_MQTT_Library.git
				synced 2025-11-03 11:53:11 +03:00 
			
		
		
		
	Tweaks
This commit is contained in:
		@@ -4,7 +4,7 @@ This example illustrates Publish an arbitrary data packet using the Adafruit MQT
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Installing and configuring Mosquitto (minimal working setup)
 | 
					## Installing and configuring Mosquitto (minimal working setup)
 | 
				
			||||||
####On Raspberry Pi/Linux:
 | 
					####Installing on Raspberry Pi/Linux:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
sudo apt-get install mosquitto
 | 
					sudo apt-get install mosquitto
 | 
				
			||||||
@@ -12,14 +12,14 @@ cd /etc/mosquitto/
 | 
				
			|||||||
#See "Both" Setup Instructions Below
 | 
					#See "Both" Setup Instructions Below
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
####On a Mac:
 | 
					####Installing On a Mac:
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
brew install mosquitto
 | 
					brew install mosquitto
 | 
				
			||||||
cd /usr/local/etc/mosquitto
 | 
					cd /usr/local/etc/mosquitto
 | 
				
			||||||
#See "Both" Setup Instructions Below
 | 
					#See "Both" Setup Instructions Below
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
####Both
 | 
					####Configuring Mosquitto
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
sudo nano mosquitto.conf
 | 
					sudo nano mosquitto.conf
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -55,14 +55,13 @@ You're almost done! We just have to create and populate the password file we jus
 | 
				
			|||||||
    * Username: TestPy
 | 
					    * Username: TestPy
 | 
				
			||||||
    * Password: TestPy
 | 
					    * Password: TestPy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
touch pwfile #create the password file
 | 
					touch pwfile #create the password file
 | 
				
			||||||
mosquitto_passwd pwfile TestUser #Enter and confirm password when prompted
 | 
					mosquitto_passwd pwfile TestUser #Enter and confirm password when prompted
 | 
				
			||||||
mosquitto_passwd pwfile TestPy #Enter and confirm password when prompted
 | 
					mosquitto_passwd pwfile TestPy #Enter and confirm password when prompted
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
## Using Example Python Subscriber:
 | 
					## Using Example Python Subscriber:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Install dependencies if haven't already
 | 
					Install dependencies if haven't already
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user