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 
			
		
		
		
	updates aio mqtt auth info in cc3k example
This commit is contained in:
		@@ -11,7 +11,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2); // you can change this clock speed
 | 
					Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2); // you can change this clock speed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Adafruit_MQTT_CC3000 mqtt(&cc3000, AIO_SERVER, AIO_SERVERPORT, AIO_CLIENTNAME, AIO_KEY, AIO_PASSWORD);
 | 
					Adafruit_MQTT_CC3000 mqtt(&cc3000, AIO_SERVER, AIO_SERVERPORT, AIO_CLIENTNAME, AIO_USERNAME, AIO_KEY);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const char PHOTOCELL_FEED[] PROGMEM = "api/feeds/photocell/data/send.json";
 | 
					const char PHOTOCELL_FEED[] PROGMEM = "api/feeds/photocell/data/send.json";
 | 
				
			||||||
Adafruit_MQTT_Publish photocell = Adafruit_MQTT_Publish(&mqtt, PHOTOCELL_FEED);
 | 
					Adafruit_MQTT_Publish photocell = Adafruit_MQTT_Publish(&mqtt, PHOTOCELL_FEED);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,8 +22,8 @@
 | 
				
			|||||||
const char AIO_SERVER[] PROGMEM =  "io.adafruit.com";
 | 
					const char AIO_SERVER[] PROGMEM =  "io.adafruit.com";
 | 
				
			||||||
#define AIO_SERVERPORT 1883
 | 
					#define AIO_SERVERPORT 1883
 | 
				
			||||||
const char AIO_CLIENTNAME[] PROGMEM = "huzzah";
 | 
					const char AIO_CLIENTNAME[] PROGMEM = "huzzah";
 | 
				
			||||||
 | 
					const char AIO_USERNAME[] PROGMEM = "";
 | 
				
			||||||
const char AIO_KEY[] PROGMEM = "";
 | 
					const char AIO_KEY[] PROGMEM = "";
 | 
				
			||||||
const char AIO_PASSWORD[] PROGMEM = "";
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user