Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this comment might be useful
Browse files Browse the repository at this point in the history
funkycode committed Nov 9, 2023
1 parent 69b74f1 commit cacdc0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adapter_nrf528xx-full.go
Original file line number Diff line number Diff line change
@@ -110,6 +110,9 @@ func handleEvent() {
}
// would assume this depends on the role,
// as for central we need to call sd_ble_gap_authenticate after connection esteblished instead

// in general key can be null, i would assume in our case we need to read it from flash here
// so we we do not reapprove bonding
errCode := C.sd_ble_gap_sec_params_reply(gapEvent.conn_handle, C.BLE_GAP_SEC_STATUS_SUCCESS, &secParams, &secKeySet)
if errCode != 0 {
println("security parameters response failed:", Error(errCode).Error())
@@ -120,7 +123,7 @@ func handleEvent() {
}

case C.BLE_GAP_EVT_LESC_DHKEY_REQUEST:
// TODO: for LESC connection implementation
// TODO: for LESC connection implementation
// peerPk := eventBuf.evt.unionfield_gatts_evt()
// sd_ble_gap_lesc_dhkey_reply(gapEvent.conn_handle, ble_gap_lesc_dhkey_t const *p_dhkey))
default:

0 comments on commit cacdc0d

Please sign in to comment.