????//?Setup?the?GAP?Bond?Manager ????{ ????????uint32_t?passkey?=?0;?//?passkey?"000000" ????????uint8_t??pairMode?=?GAPBOND_PAIRING_MODE_WAIT_FOR_REQ; ????????uint8_t??mitm?=?TRUE; ????????uint8_t??bonding?=?TRUE; ????????uint8_t??ioCap?=?GAPBOND_IO_CAP_DISPLAY_ONLY; ????????GAPBondMgr_SetParameter(GAPBOND_PERI_DEFAULT_PASSCODE,?sizeof(uint32_t),?&passkey); ????????GAPBondMgr_SetParameter(GAPBOND_PERI_PAIRING_MODE,?sizeof(uint8_t),?&pairMode); ????????GAPBondMgr_SetParameter(GAPBOND_PERI_MITM_PROTECTION,?sizeof(uint8_t),?&mitm); ????????GAPBondMgr_SetParameter(GAPBOND_PERI_IO_CAPABILITIES,?sizeof(uint8_t),?&ioCap); ????????GAPBondMgr_SetParameter(GAPBOND_PERI_BONDING_ENABLED,?sizeof(uint8_t),?&bonding); ????}
我希望盡量通過(guò)修改這段代碼來(lái)完成,而不是修改 scanRspData 和 advertData。
熱門(mén)產(chǎn)品 :
CH641: PD及無(wú)線(xiàn)充電專(zhuān)用MCU