static int trans_att_write_callback(hci_con_handle_t connection_handle, uint16_t att
_handle, uint16_t transaction_mode, uint16_t offset, uint8_t *buffer, uint16_t buffe
r_size)
2. {
3. int result = 0;
4. u16 tmp16;
5. 6. u16 handle = att_handle;
7. 8. log_info(“write_callback,conn_handle =%04x, handle =%04x,size =%d\n”, connection
_handle, handle, buffer_size);
9. 10. switch (handle) {
11. 12. case ATT_CHARACTERISTIC_2a00_01_VALUE_HANDLE:
13. break;
杰理之ATT 写事件处理:“ble_trans.c”【篇】
最新推荐文章于 2023-06-06 16:28:53 发布