BLESecurity¶
詳細情報¶
メンバー¶
BLESecurity()¶
BLESecurity::BLESecurity()
~BLESecurity()¶
BLESecurity::~BLESecurity()
setAuthenticationMode()¶
void BLESecurity::setAuthenticationMode(esp_ble_auth_req_t auth_req)
引数
- esp_ble_auth_req_t
auth_req
setCapability()¶
Set our device IO capability to let end user perform authorization either by displaying or entering generated 6-digits pin code
void BLESecurity::setCapability(esp_ble_io_cap_t iocap)
引数
- esp_ble_io_cap_t
iocap
setInitEncryptionKey()¶
Init encryption key by server
void BLESecurity::setInitEncryptionKey(uint8_t init_key)
引数
- uint8_t
init_key
setRespEncryptionKey()¶
Init encryption key by client
void BLESecurity::setRespEncryptionKey(uint8_t resp_key)
引数
- uint8_t
resp_key
setKeySize()¶
void BLESecurity::setKeySize(uint8_t key_size=16)
引数
- uint8_t
key_size
esp_key_type_to_str()¶
Debug function to display what keys are exchanged by peers
char * BLESecurity::esp_key_type_to_str(esp_ble_key_type_t key_type)
引数
- esp_ble_key_type_t
key_type
戻り値
char *