Re: [PATCH 3/8] gatt-service: Provide service uuid in attrib_db_find_avail function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Anderson,

2012/1/25 Anderson Lizardo <anderson.lizardo@xxxxxxxxxxxxx>:
> Hi Santiago,
>
> On Wed, Jan 25, 2012 at 6:03 AM, Santiago Carot-Nemesio
> <sancane@xxxxxxxxx> wrote:
>> @@ -436,8 +440,8 @@ static void register_weight_service(struct gatt_example_adapter *adapter,
>>        int len;
>>
>>        btoh128(&char_weight_uuid_btorder, &char_weight_uuid);
>> -
>> -       start_handle = attrib_db_find_avail(adapter->adapter, svc_size);
>> +       bt_uuid128_create(&uuid, prim_weight_uuid_btorder);
>> +       start_handle = attrib_db_find_avail(adapter->adapter, &uuid, svc_size);
>>        if (start_handle == 0) {
>>                error("Not enough free handles to register service");
>>                return;
>
> This is still not right. bt_uuid128_create() should receive a
> uint128_t in *host* order. In other words, you need to do:
>
> uint128_t prim_weight_uuid;
> ...
> btoh128(&prim_weight_uuid_btorder, &prim_weight_uuid);
> bt_uuid128_create(&uuid, prim_weight_uuid);
> ...

Ok, I see, I'm going to send a new set fixing that.
Regards.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux