Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
pairing_responder.cpp File Reference

Pure decision logic for the device-role key-extraction responder. More...

#include "pairing_responder.h"
#include "proto_commands.h"
#include <cstring>
Include dependency graph for pairing_responder.cpp:

Go to the source code of this file.

Namespaces

namespace  esphome
namespace  esphome::home_io_control
namespace  esphome::home_io_control::pairing_responder

Functions

const char * esphome::home_io_control::pairing_responder::responder_stage_name (ResponderState state)
 Get a short, log/telemetry-friendly name for a responder state.
bool esphome::home_io_control::pairing_responder::on_discover_request (ResponderContext &ctx)
 Decide how to react to an inbound CMD_DISCOVER_REQ (0x28) while armed.
bool esphome::home_io_control::pairing_responder::on_discover_confirm (ResponderContext &ctx)
 Decide how to react to an inbound CMD_DISCOVER_CONFIRM (0x2C) addressed to our throwaway ID.
bool esphome::home_io_control::pairing_responder::on_key_init (ResponderContext &ctx, const uint8_t challenge[HMAC_SIZE], const uint8_t hub_node_id[NODE_ID_SIZE])
 Decide how to react to an inbound CMD_KEY_INIT (0x31) addressed to our throwaway ID.
bool esphome::home_io_control::pairing_responder::on_key_transfer (ResponderContext &ctx, const uint8_t transfer_payload[AES_KEY_SIZE])
 Decide how to react to an inbound CMD_KEY_TRANSFER (0x32) while armed.

Detailed Description

Pure decision logic for the device-role key-extraction responder.

Definition in file pairing_responder.cpp.