如题,请问蓝牙从机主动断开连接要怎么操作?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
没有例程
/** * Terminate a link connection. * * @par Corresponding Events: * @ref GAP_LINK_TERMINATED_EVENT of type @ref gapTerminateLinkEvent_t * * @param connectionHandle connection handle of link to terminate * or @ref LINKDB_CONNHANDLE_ALL * @param reason terminate reason. * * @return @ref SUCCESS : termination request sent to stack * @return @ref bleIncorrectMode : No Link to terminate * @return @ref bleInvalidTaskID : not app that established link */ extern bStatus_t GAP_TerminateLinkReq(uint16_t connectionHandle, uint8_t reason);