![]() |
Open Lighting Architecture 0.10.9
|
Public Types | |
| typedef ola::Callback2< void, ola::io::ConnectedDescriptor *, const RobeWidgetInformation * > | SuccessHandler |
| typedef ola::Callback1< void, ola::io::ConnectedDescriptor * > | FailureHandler |
Public Member Functions | |
| RobeWidgetDetector (ola::thread::SchedulingExecutorInterface *scheduler, SuccessHandler *on_success, FailureHandler *on_failure, unsigned int timeout=200) | |
| bool | Discover (ola::io::ConnectedDescriptor *descriptor) |
| ola::plugin::usbpro::RobeWidgetDetector::RobeWidgetDetector | ( | ola::thread::SchedulingExecutorInterface * | scheduler, |
| SuccessHandler * | on_success, | ||
| FailureHandler * | on_failure, | ||
| unsigned int | timeout = 200 ) |
Constructor
| scheduler | a instance of SchedulerInterface used to register events. |
| on_success | A callback to run if discovery succeeds. |
| on_failure | A callback to run if discovery fails. |
| timeout | the time in ms between each discovery message. |
|
virtual |
Implements ola::plugin::usbpro::WidgetDetectorInterface.