This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Mesh GATT PDU TYPE question

Hello everyone

I have a small question about Mesh_gatt_pdu_type_t in light_switch_example. 

When my NRF52 connect with smartphone over BLE mesh proxy, my smartphone will send data to nrf using GATT characteristics. So what pdu type of this message transmit ?

typedef enum
{
MESH_GATT_PDU_TYPE_NETWORK_PDU,
MESH_GATT_PDU_TYPE_MESH_BEACON,
MESH_GATT_PDU_TYPE_PROXY_CONFIG,
MESH_GATT_PDU_TYPE_PROV_PDU,
MESH_GATT_PDU_TYPE_PROHIBITED,
MESH_GATT_PDU_TYPE_INVALID = 0xFF
} mesh_gatt_pdu_type_t;

Thank you Stuck out tongue

Parents
  • Hi Nhi, 

    It depends on which packet you are sending from the the phone. There are a few generic types: Configuration packet (MESH_GATT_PDU_TYPE_PROXY_CONFIG) , Provisioning packet (MESH_GATT_PDU_TYPE_PROV_PDU) or beacon packet (advertising) and normal mesh packet (MESH_GATT_PDU_TYPE_NETWORK_PDU). 
    If you have a light switch model on the phone and switch on and  off the light on the device , it should be MESH_GATT_PDU_TYPE_NETWORK_PDU.

    Please refer to the Mesh spec to find definition of each type. 

Reply
  • Hi Nhi, 

    It depends on which packet you are sending from the the phone. There are a few generic types: Configuration packet (MESH_GATT_PDU_TYPE_PROXY_CONFIG) , Provisioning packet (MESH_GATT_PDU_TYPE_PROV_PDU) or beacon packet (advertising) and normal mesh packet (MESH_GATT_PDU_TYPE_NETWORK_PDU). 
    If you have a light switch model on the phone and switch on and  off the light on the device , it should be MESH_GATT_PDU_TYPE_NETWORK_PDU.

    Please refer to the Mesh spec to find definition of each type. 

Children
Related