From 1106b86bdef291bb5391223017f36bc58ebbdf81 Mon Sep 17 00:00:00 2001 From: Lingao Meng Date: Wed, 6 Dec 2023 10:53:55 +0800 Subject: [PATCH] doc: release: Add migration for bluetooth uuid The Bluetooth UUID has been declare as rodata. Signed-off-by: Lingao Meng --- doc/releases/migration-guide-3.6.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/releases/migration-guide-3.6.rst b/doc/releases/migration-guide-3.6.rst index 059b487a921..bd37aa56fb1 100644 --- a/doc/releases/migration-guide-3.6.rst +++ b/doc/releases/migration-guide-3.6.rst @@ -183,6 +183,11 @@ Bluetooth * The Bluetooth Mesh ``element`` declaration has been changed to add prefix ``const``. The ``elem->addr`` field has been changed to the new runtime structure, replaced by ``elem->rt->addr``. (:github:`65388`) +* The Bluetooth UUID has been modified to rodata in ``BT_UUID_DECLARE_16``, ``BT_UUID_DECLARE_32` + and ``BT_UUID_DECLARE_128`` as the return value has been changed to `const`. + Any pointer to a UUID must be prefixed with `const`, otherwise there will be a compilation warning. + For example change ``struct bt_uuid *uuid = BT_UUID_DECLARE_16(xx)`` to + ``const struct bt_uuid *uuid = BT_UUID_DECLARE_16(xx)``. (:github:`66136`) LoRaWAN =======