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

solicited uuids

Hi Can I populate the solicited uuids list with 2 different types of uuids whish are provided by two different servers? My intention is that my client should be able to connect to any server. So if I populate the solicited uuid list with two uuids, it means the client can connect to a server providing both services or any one of them?

Parents
  • Thank you.

    I am integrating Alert Notification Client and Apple Alert Notification Client. Now, the solicited uuid for ancs is 128 bit uuid, whereas solicited uuid for alert notification is 16 bit. How can I list both these types in the solicited uuid list? I did this:

    ble_uuid_t    ancs_uuid, anp_uuid;
    ancs_uuid.uuid = ((ble_ancs_base_uuid128.uuid128[12]) | (ble_ancs_base_uuid128.uuid128[13] << 8));
    ancs_uuid.type = BLE_UUID_TYPE_BLE;     
    
    anp_uuid.uuid = 0x1811;
    ancs_uuid.type = BLE_UUID_TYPE_BLE;
    
    ble_uuid_t solicited_uuids[] = 
    {
      ancs_uuid, anp_uuid
    };
    

    It gives me NRF_ERROR_DATA_SIZE.

Reply
  • Thank you.

    I am integrating Alert Notification Client and Apple Alert Notification Client. Now, the solicited uuid for ancs is 128 bit uuid, whereas solicited uuid for alert notification is 16 bit. How can I list both these types in the solicited uuid list? I did this:

    ble_uuid_t    ancs_uuid, anp_uuid;
    ancs_uuid.uuid = ((ble_ancs_base_uuid128.uuid128[12]) | (ble_ancs_base_uuid128.uuid128[13] << 8));
    ancs_uuid.type = BLE_UUID_TYPE_BLE;     
    
    anp_uuid.uuid = 0x1811;
    ancs_uuid.type = BLE_UUID_TYPE_BLE;
    
    ble_uuid_t solicited_uuids[] = 
    {
      ancs_uuid, anp_uuid
    };
    

    It gives me NRF_ERROR_DATA_SIZE.

Children
Related