h2zero

Results 301 comments of h2zero

Can either of you share a debug log output when this occurs?

Looks like you need to enable bonding. Try adding this after initialization: `NimBLEDevice::setSecurityAuth(true, true, true);' Have a look at the secure client/server examples.

I'm not too sure what the error is yet, the logs suggest an error in a value passed during pairing. What kind of pairing does the other device expect? If...

You should also remove this: ``` NimBLESecurity *SECURITY_MANDATORY = new BLESecurity(); /** * @brief Set requested authentication mode * @param [in] auth_req A bitmask containing one or more of: *...

I would encourage not to use the security class as it has been deprecated. The equivalent call is simply: ``` NimBLEDevice::setSecurityAuth(true, false, false); // enable bonding, no MITM, no SC...

Hmm, please try erasing the flash of the esp32 then upload your code. Also remove any devices bonded to the TV if you can.

I don't have any idea why that would happen, wouldn't have anything to do with the esp32 though.

@DeeJayMX the code you posted will not block since you passed a callback function, if you did not pass that function it would then use the blocking method. One other...

>I'm using OLED device and if I put some OLED code in the callback, the display don't work... I would suggest not doing this, keep the callback code minimal, save...