Execute function in sensor
Development
3
Posts
2
Posters
1.1k
Views
1
Watching
-
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!