struct os_mbuf * ble_hs_mbuf_att_pkt(void)
Allocates an mbuf suitable for an ATT command packet. The resulting packet has sufficient leading space for: ACL data header L2CAP B-frame header Largest ATT command base (prepare write request / response).
None
Value | Condition |
---|---|
An empty mbuf | Success. |
null | Memory exhaustion. |