Re: BLE Security Passcode
Posted: Tue Dec 31, 2019 6:33 pm
Why do you think it does not work?Arduino passcode doesn’t work.
Need to use IDF examples.
Why do you think it does not work?Arduino passcode doesn’t work.
Need to use IDF examples.
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);
Code: Select all
pServer->startAdvertising();