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 
			
		
		
		
	Uncommented code to handle subscription packets...
This commit is contained in:
		@@ -229,11 +229,11 @@ uint16_t Adafruit_MQTT::processPacketsUntil(uint8_t *buffer, uint8_t waitforpack
 | 
			
		||||
        if (packetType == waitforpackettype) {
 | 
			
		||||
            return len;
 | 
			
		||||
        } else {
 | 
			
		||||
//            if (packetType == MQTT_CTRL_PUBLISH) {
 | 
			
		||||
//                handleSubscriptionPacket(len);
 | 
			
		||||
//            } else {
 | 
			
		||||
            if (packetType == MQTT_CTRL_PUBLISH) {
 | 
			
		||||
                handleSubscriptionPacket(len);
 | 
			
		||||
            } else {
 | 
			
		||||
                ERROR_PRINTLN(F("Dropped a packet"));
 | 
			
		||||
//            }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user