#include <cs_CommandAdvHandler.h>
|
| CommandAdvHandler () |
|
| TYPIFY (CONFIG_SPHERE_ID) _sphereId=0 |
|
void | parseAdvertisement (scanned_device_t *scannedDevice) |
|
bool | handleEncryptedCommandPayload (scanned_device_t *scannedDevice, const command_adv_header_t &header, const cs_data_t &nonce, cs_data_t &encryptedPayload, uint16_t encryptedPayloadRC5[2], uint16_t decryptedPayloadRC5[2]) |
|
bool | decryptRC5Payload (uint16_t encryptedPayload[2], uint16_t decryptedPayload[2]) |
|
void | handleDecryptedRC5Payload (scanned_device_t *scannedDevice, const command_adv_header_t &header, uint16_t decryptedPayload[2]) |
|
EncryptionAccessLevel | getRequiredAccessLevel (const AdvCommandTypes type) |
|
int | checkSimilarCommand (uint8_t deviceToken, cs_data_t &encryptedData, uint16_t encryptedRC5, uint16_t &decryptedRC5) |
| Return index of claim with this device token. More...
|
|
bool | claim (uint8_t deviceToken, cs_data_t &encryptedData, uint16_t encryptedRC5, uint16_t decryptedRC5, int indexOfDevice) |
|
void | tickClaims () |
|
◆ CommandAdvHandler()
◆ checkSimilarCommand()
int CommandAdvHandler::checkSimilarCommand |
( |
uint8_t |
deviceToken, |
|
|
cs_data_t & |
encryptedData, |
|
|
uint16_t |
encryptedRC5, |
|
|
uint16_t & |
decryptedRC5 |
|
) |
| |
|
private |
Return index of claim with this device token.
- Parameters
-
[out] | decryptedRC5 | When previous encrypted data is similar: set to previous decrypted RC5 data. |
Returns -1 when the device token was not found. Returns -2 when the device token was found, but the previous encryptedData is similar.
◆ claim()
bool CommandAdvHandler::claim |
( |
uint8_t |
deviceToken, |
|
|
cs_data_t & |
encryptedData, |
|
|
uint16_t |
encryptedRC5, |
|
|
uint16_t |
decryptedRC5, |
|
|
int |
indexOfDevice |
|
) |
| |
|
private |
◆ decryptRC5Payload()
bool CommandAdvHandler::decryptRC5Payload |
( |
uint16_t |
encryptedPayload[2], |
|
|
uint16_t |
decryptedPayload[2] |
|
) |
| |
|
private |
◆ getInstance()
◆ getRequiredAccessLevel()
◆ handleDecryptedRC5Payload()
◆ handleEncryptedCommandPayload()
◆ handleEvent()
void CommandAdvHandler::handleEvent |
( |
event_t & |
event | ) |
|
|
virtual |
◆ init()
void CommandAdvHandler::init |
( |
| ) |
|
◆ parseAdvertisement()
◆ tickClaims()
void CommandAdvHandler::tickClaims |
( |
| ) |
|
|
private |
◆ TYPIFY()
◆ _claims
The documentation for this class was generated from the following file: