3 #include "../SinricProRequest.h"
4 #include "../SinricProStrings.h"
6 #include "../SinricProNamespace.h"
7 namespace SINRICPRO_NAMESPACE {
9 FSTR(KEYPAD, sendKeystroke);
10 FSTR(KEYPAD, keystroke);
41 bool handleKeypadController(SinricProRequest &request);
49 T* device =
static_cast<T*
>(
this);
66 T* device =
static_cast<T*
>(
this);
69 if (request.action != FSTR_KEYPAD_sendKeystroke)
return false;
71 if (keystrokeCallback) {
72 String keystroke = request.request_value[FSTR_KEYPAD_keystroke] |
"";
73 success = keystrokeCallback(device->deviceId, keystroke);
74 request.response_value[FSTR_KEYPAD_keystroke] = keystroke;
84 using KeypadController = SINRICPRO_NAMESPACE::KeypadController<T>;
KeypadController.
Definition: KeypadController.h:34
std::function< bool(const String &, String &)> KeystrokeCallback
Callback definition for onKeystroke function.
Definition: KeypadController.h:26