如何与需要PIN码的蓝牙从机通信
-
FR8003A作为主机,去连接一个从机,这个从机需要PIN码,FR8003A的SDK如何输入PIN码
-
case GAP_SEC_EVT_PIN_CODE_REQ:
{
uint8_t conidx = p_event->param.pin_code_req.conidx;
uint8_t tk_type = p_event->param.pin_code_req.tk_type;LOG_INFO(app_tag, "PIN requested, conidx=%d, type=%d\r\n", conidx, tk_type); gap_security_send_pairing_password(conidx, 123456);}
break;