Re: BLE Security Passcode
Posted: Tue Dec 31, 2019 6:33 pm
Hi chegewara, could you explain in a bit more detail where to use this or the idf demo? I am having the same troubles as the others.
Code: Select all
BLESecurity *pSecurity = new BLESecurity();
pSecurity->setCapability(ESP_IO_CAP_NONE);
pSecurity->setStaticPIN(123456);
pSecurity->setAuthenticationMode(ESP_LE_AUTH_REQ_SC_ONLY);
Code: Select all
void BLESecurity::setStaticPIN(uint32_t pin)
Code: Select all
BLESecurity *pSecurity = new BLESecurity();
pSecurity->setStaticPIN(123456);