| 
				
			 | 
			
			 | 
			@@ -14,6 +14,7 @@ char topic_lumiere_color[8 + 6 + DEVICEID_SIZE]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			char topic_lumiere_bright[8 + 11 + DEVICEID_SIZE]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			char topic_lumiere_anim[8 + 10 + DEVICEID_SIZE]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			char topic_lumiere_rempli[8 + 7 + DEVICEID_SIZE]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			char topic_lumiere_allume_barres[8 + 7 + 7 + DEVICEID_SIZE]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
	
		
			
			| 
				
			 | 
			
			 | 
			@@ -140,6 +141,19 @@ void MQTT_callback(char* topic, byte* payload, unsigned int length) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    DEBUG("Detection du topics :" + String( topic_lumiere_rempli )); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    DEBUG("Lancement du remplissage à :" + String( message )); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    LED_Remplissage(String( message ).toInt()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  // ..................................................................................... | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  } else if ( strcmp( topic, topic_lumiere_allume_barres) ==0 ) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    DEBUG("Detection du topics :" + String( topic_lumiere_allume_barres )); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    DEBUG("Lancement du remplissage des " + String( message ) + " barres"); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    Couleur color; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    color.R = 255; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    color.V = 255; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    color.B = 255; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    for(int i = 0; i < String( message ).toInt(); i++){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      LED_AllumeBaton(i,  color ); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			} | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
	
		
			
			| 
				
			 | 
			
			 | 
			@@ -169,4 +183,5 @@ void MQTT_setup(){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  sprintf( topic_lumiere_bright,  "lumiere/brightness/%s", DeviceID); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  sprintf( topic_lumiere_anim,    "lumiere/animation/%s", DeviceID); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  sprintf( topic_lumiere_rempli,  "lumiere/allume/%s", DeviceID); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  sprintf( topic_lumiere_allume_barres,  "lumiere/allume/%s/barres", DeviceID); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			} |