@@ -465,37 +465,23 @@ struct bt_uuid_128 {
465
465
*/
466
466
int bt_uuid_cmp (const struct bt_uuid * u1 , const struct bt_uuid * u2 );
467
467
468
- /** @brief Copy UUID from packet data (LE) to internal bt_uuid.
469
- *
470
- * Copy UUID from packet data in little endian format to internal bt_uuid
471
- * format. The data_len parameter is used to determine whether the received
472
- * UUID is of 16 or 128 bit format (length 2 or 16). 32 bit format is not
473
- * allowed over the air.
474
- *
475
- * @param uuid Pointer to where to write the Bluetooth UUID
476
- * @param data pointer to location of the UUID in the packet
477
- * @param data_len length of the UUID in the packet
478
- *
479
- * @return true if the data was valid and the UUID was successfully created.
480
- */
481
- bool bt_uuid_create_le (struct bt_uuid * uuid , const u8_t * data , u8_t data_len );
482
-
483
468
/** @brief Copy UUID from internal variable to internal bt_uuid.
484
469
*
485
- * Copy UUID from internal variable pointer to internal bt_uuid format.
486
- * The data parameter points to a variable (originally stored in bt_uuid_128,
487
- * bt_uuid_32 or bt_uuid_16 format) and therefore take into account of
488
- * alignment of the val member.
470
+ * Copy little endian format UUID from packet data or internal variable
471
+ * pointer to internal bt_uuid format. The data parameter points to a variable
472
+ * (originally stored in bt_uuid_128, bt_uuid_32 or bt_uuid_16 format)
473
+ * and therefore take into account of alignment of the val member.
489
474
* The data_len parameter is used to determine whether to copy the UUID from
490
475
* 16, 32 or 128 bit format (length 2, 4 or 16).
476
+ * 32 bit format is not allowed over the air.
491
477
*
492
478
* @param uuid Pointer to where to write the Bluetooth UUID
493
- * @param data pointer to location of the UUID variable
494
- * @param data_len length of the UUID in the packet
479
+ * @param data pointer to location of the UUID variable/in the packet
480
+ * @param data_len length of the UUID variable/ in the packet
495
481
*
496
482
* @return true if the data was valid and the UUID was successfully created.
497
483
*/
498
- bool bt_uuid_create (struct bt_uuid * uuid , u8_t * data , u8_t data_len );
484
+ bool bt_uuid_create (struct bt_uuid * uuid , const u8_t * data , u8_t data_len );
499
485
500
486
#if defined(CONFIG_BT_DEBUG )
501
487
/** @brief Convert Bluetooth UUID to string.
0 commit comments