#include <alexa_interaction.h>
|
static void | Callback (unsigned char id, const char *device_name, bool state, unsigned char percentage) |
| Gets called by fauxmo esp when a alexa calls the device. More...
|
|
◆ AlexaInteraction()
AlexaInteraction::AlexaInteraction |
( |
std::shared_ptr< Logging > & |
logging, |
|
|
String |
device_id |
|
) |
| |
◆ ~AlexaInteraction()
AlexaInteraction::~AlexaInteraction |
( |
| ) |
|
◆ Callback()
void AlexaInteraction::Callback |
( |
unsigned char |
id, |
|
|
const char * |
device_name, |
|
|
bool |
state, |
|
|
unsigned char |
percentage |
|
) |
| |
|
staticprivate |
Gets called by fauxmo esp when a alexa calls the device.
- Parameters
-
id | device id number |
device_name | device name |
state | on/off bool |
percentage | 0-100 percentage |
◆ GetAlexaRequest()
Get the latest Alexa Request object.
- Returns
- std::tuple<bool, CONFIG_SET::MOTION_REQUEST>
◆ HandleFauxmo()
void AlexaInteraction::HandleFauxmo |
( |
| ) |
|
Handler function for the class.
◆ SetState()
Set the object state to alexa.
◆ alexa_request_mutex_
std::mutex AlexaInteraction::alexa_request_mutex_ |
|
staticprivate |
◆ device_id_
◆ is_new_request_available_
bool AlexaInteraction::is_new_request_available_ = false |
|
staticprivate |
◆ latest_alexa_request_
◆ logger_
std::shared_ptr<Logging> AlexaInteraction::logger_ |
|
private |
The documentation for this class was generated from the following files: