Execute function in sensor
- 
					
					
					
					
 Hello, I have a sensor with a number of predefined functions. Now I want to be able to execute the functions by sending a command to the sensor. Is this possible? For instance I have the following functions: void colorWipe1(uint16_t c, uint8_t wait) { do something } void colorWipe2(uint16_t c, uint8_t wait) { do something }When I send a command to the sensor I want it to run the function I have addressed in my command. 
 What sensor type should I use and how do I execute the correct incoming command?Thanks! 
 
- 
					
					
					
					
 Sensor type doesn't really matter. You could use S_CUSTOM for this type of thing. Then just register a callback for incoming messages where you handle functions-calls depending on message received. 
 
- 
					
					
					
					
 Thank you hek! I actually got it to work exactly the way I want.  
 
 
			
		 
					
				