為啥我改了需要密碼和原始密碼之后調(diào)試助手依舊能不用輸入密碼直接連上????
還有微信小程序谷雨藍(lán)牙也能直接連上?
怎么做才能讓他們配上密碼之后才能連接收發(fā)數(shù)據(jù)?
?// Setup the GAP Bond Manager
? {
??? uint32 passkey = 666666; // passkey "000000"
??? uint8 pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
??? uint8 mitm = TRUE;
??? uint8 bonding = TRUE;
??? uint8 ioCap = GAPBOND_IO_CAP_KEYBOARD_ONLY;
??? GAPBondMgr_SetParameter( GAPBOND_PERI_DEFAULT_PASSCODE, sizeof ( uint32 ), &passkey );
??? GAPBondMgr_SetParameter( GAPBOND_PERI_PAIRING_MODE, sizeof ( uint8 ), &pairMode );
??? GAPBondMgr_SetParameter( GAPBOND_PERI_MITM_PROTECTION, sizeof ( uint8 ), &mitm );
??? GAPBondMgr_SetParameter( GAPBOND_PERI_IO_CAPABILITIES, sizeof ( uint8 ), &ioCap );
??? GAPBondMgr_SetParameter( GAPBOND_PERI_BONDING_ENABLED, sizeof ( uint8 ), &bonding );
? }