puart_control : Definition of errCode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RuCh_2181101
Level 3
Level 3
5 likes given First like received First like given

Dear Sir,

   puart_control is very demo to show up the opeartion of WICED and MCU.

   And it also bring lot of question for me.

   I check the my_l2cap_data_handler, but I cannot find any errCode detail define.

   Could you give me a help to explain the detail define of errCode ?

 

   like.

#define ERRCODE_TIMEOUT xxxx

Best Regards,

Rush Chen

void my_l2cap_data_handler(LEL2CAP_HDR *l2capHdr)
{
    LEATT_PDU_HDR   *p_gatt_msg = (LEATT_PDU_HDR*) (l2capHdr + 1);
    int             opcode = (LEATT_OPCODE_MASK & p_gatt_msg->attrCode);
    UINT16    con_handle = emconinfo_getConnHandle();
    UINT32    con_index  = con_handle - RMULP_CONN_HANDLE_START;

    ble_trace2("data_handle con_handle:%04x opcode:%04x", con_handle, opcode);
    // process messages not processed by the standard l2capHandler
.....

      puart_control_send_write_completed(con_handle, p_rsp->errCode);
      return;

0 Likes
1 Solution
Anonymous
Not applicable

please refer to core spec v4.1 Vol. 3, Part F, 3.4.1.1 Error Response

View solution in original post

4 Replies
Anonymous
Not applicable

please refer to core spec v4.1 Vol. 3, Part F, 3.4.1.1 Error Response

Anonymous
Not applicable

Where is the document called "core spec" located?  Is that a Broadcom document or a Bluetooth spec?

0 Likes

This reference is to the Bluetooth Spec.

I found it using Google, so it's publicly available.

0 Likes

Thank you and I also download the BLE spec. to study.

0 Likes