NimBLE: Added support of encrypted advertising data

This commit is contained in:
isha.pardikar@espressif.com
2023-05-05 12:43:21 +05:30
parent 2bc2a35199
commit 9178a78142
25 changed files with 1822 additions and 5 deletions
@@ -22,6 +22,7 @@ int scli_receive_key(int *key);
void print_bytes(const uint8_t *bytes, int len);
void print_addr(const void *addr);
char *addr_str(const void *addr);
void print_mbuf(const struct os_mbuf *om);
#ifdef __cplusplus
}
@@ -41,3 +41,22 @@ addr_str(const void *addr)
return buf;
}
void
print_mbuf(const struct os_mbuf *om)
{
int colon, i;
colon = 0;
while (om != NULL) {
if (colon) {
MODLOG_DFLT(DEBUG, ":");
} else {
colon = 1;
}
for (i = 0; i < om->om_len; i++) {
MODLOG_DFLT(DEBUG, "%s0x%02x", i != 0 ? ":" : "", om->om_data[i]);
}
om = SLIST_NEXT(om, om_next);
}
}