MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modBLEConnectionFindByAddress

Function modBLEConnectionFindByAddress

modules/network/ble/gap.c:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40modBLEConnection modBLEConnectionFindByAddress(uint8_t *address)
41{
42 modBLEConnection walker;
43 modCriticalSectionDeclare;
44 modCriticalSectionBegin();
45 for (walker = gConnections; NULL != walker; walker = walker->next) {
46 if (0 == c_memcmp(address, walker->address, 6))
47 goto bail;
48 }
49bail:
50 modCriticalSectionEnd();
51 return walker;
52}
53
54modBLEConnection modBLEConnectionFindByAddressAndType(uint8_t *address, uint8_t addressType)
55{

Callers 15

xs_ble_client_connectFunction · 0.85
connectEventFunction · 0.85
gapPasskeyRequestEventFunction · 0.85
gapPasskeyNotifyEventFunction · 0.85
gapPasskeyConfirmEventFunction · 0.85
gapAuthCompleteEventFunction · 0.85
GAP_LE_Event_CallbackFunction · 0.85
xs_ble_client_connectFunction · 0.85
leConnectionOpenedEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected