diff --git a/.properties b/.properties
index 9b3c7b3df1c..417126f6df3 100644
--- a/.properties
+++ b/.properties
@@ -1,6 +1,6 @@
id=com.silabs.sdk.stack.super
-version=4.0.0
+version=4.0.1
label=Gecko SDK Suite
description=Gecko SDK Suite
diff --git a/app/bluetooth/bluetooth_production_demos.xml b/app/bluetooth/bluetooth_production_demos.xml
index 5eced73b6c4..f379c17bcfe 100644
--- a/app/bluetooth/bluetooth_production_demos.xml
+++ b/app/bluetooth/bluetooth_production_demos.xml
@@ -4,19 +4,29 @@
-
+
-
+
Network Co-Processor (NCP) target application extended with CTE Receiver support. It enables Angle of Arrival (AoA) calculation. Use this application with Direction Finding host examples.
+
+
+
+
+
+
+
+
+
+ Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -24,9 +34,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -34,9 +44,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -44,9 +54,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -54,9 +64,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -64,9 +74,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -74,9 +84,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -84,9 +94,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -94,9 +104,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -104,9 +114,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -114,9 +124,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -124,9 +134,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -134,9 +144,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -144,9 +154,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -154,9 +164,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -164,9 +174,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -174,9 +184,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -184,9 +194,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -194,9 +204,29 @@
-
+
+
+
+ Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
+
+
+
+
+
+
+
-
+
+ Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
+
+
+
+
+
+
+
+
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example contains a minimal GATT database, and cannot be used with host applications that use Dynamic GATT API.
@@ -204,9 +234,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -214,9 +244,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -224,9 +254,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -234,9 +264,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -244,9 +274,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -254,9 +284,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -264,9 +294,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -274,9 +304,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -284,9 +314,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -294,9 +324,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -304,9 +334,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -314,9 +344,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -324,9 +354,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -334,9 +364,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -344,9 +374,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -354,9 +384,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -364,9 +394,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -374,9 +404,9 @@
-
+
-
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -384,9 +414,29 @@
-
+
-
+
+ Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
+
+
+
+
+
+
+
+
+
+ Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
+
+
+
+
+
+
+
+
+
Network Co-Processor (NCP) target application. Runs the Bluetooth stack and provides access to it by exposing the Bluetooth API (BGAPI) via UART connection. NCP mode makes it possible to run your application on a host controller or PC. This example does not have a GATT database, but makes it possible to build one from the application using Dynamic GATT API.
@@ -394,27 +444,37 @@
-
+
-
+
This sample app demonstrates a CTE (Constant Tone Extension) transmitter that can be used as an asset tag in a Direction Finding setup estimating Angle of Arrival (AoA).
-
+
-
+
This sample app demonstrates a CTE (Constant Tone Extension) transmitter that can be used as an asset tag in a Direction Finding setup estimating Angle of Arrival (AoA).
+
+
+
+
+
+
+
+ The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
+
+
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -422,9 +482,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -432,9 +492,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -442,9 +502,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -452,9 +512,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -462,9 +522,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -472,9 +532,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -482,9 +542,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -492,9 +552,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -502,9 +562,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -512,9 +572,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -522,9 +582,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -532,9 +592,29 @@
-
+
+
+
+ The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
+
+
+
+
+
+
+
-
+
+ The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
+
+
+
+
+
+
+
+
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED0 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -542,9 +622,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -552,9 +632,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -562,9 +642,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -572,9 +652,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -582,9 +662,9 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
@@ -592,19 +672,29 @@
-
+
-
+
The classic blinky example using Bluetooth communication. From the EFR Connect mobile app, the LED controller button toggles LED1 on the board. In addition, on the board pressing or releasing BTN0 notifies the app. This is a demonstration of a simple two-way data exchange over GATT.
+
+
+
+
+
+
+
+
+
+ Demonstrates the features of the EFR32xG24 Dev Kit Board. This can be tested with the EFR Connect mobile app.
-
+
-
+
This is a Dynamic Multiprotocol reference application demonstrating a light bulb that can be switched both via Bluetooth and via a Proprietary protocol. To switch it via Bluetooth use the Wireless Gecko smartphone app. To switch it via Proprietary protocol use the Flex (RAIL) - Switch sample app.
@@ -612,9 +702,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -622,9 +712,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -632,9 +722,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -642,9 +732,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -652,9 +742,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -662,9 +752,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
@@ -672,19 +762,49 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
+
+
+
+
+
+
+
+
+
+ Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
+
+
+
+
+
+
+
+
+
+ Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the mock relative humidity and temperature sensor.
+
+
+
+
+
+
+
+
+
+ Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -692,9 +812,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -702,9 +822,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -712,9 +832,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -722,9 +842,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -732,9 +852,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -742,9 +862,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -752,9 +872,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -762,9 +882,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -772,9 +892,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -782,9 +902,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -792,9 +912,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -802,9 +922,9 @@
-
+
-
+
Implements a GATT Server with the Health Thermometer Profile, which enables a Client device to connect and get temperature data. Temperature is read from the Si7021 digital relative humidity and temperature sensor of the WSTK or of the Thunderboard.
@@ -812,9 +932,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -822,9 +942,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -832,9 +952,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -842,9 +962,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -852,9 +972,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -862,9 +982,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -872,9 +992,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -882,9 +1002,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -892,9 +1012,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -902,9 +1022,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -912,9 +1032,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -922,9 +1042,19 @@
-
+
-
+
+ This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
+
+
+
+
+
+
+
+
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -932,9 +1062,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -942,9 +1072,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -952,9 +1082,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -962,9 +1092,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -972,9 +1102,9 @@
-
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -982,9 +1112,29 @@
-
+
+
+
+ This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
+
+
+
+
+
+
+
+
+
+ This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
+
+
+
+
+
+
+
-
+
This example tests the throughput capabilities of the device and can be used to measure throughput between 2 *EFR32* devices, as well as between a device and a smartphone using EFR Connect mobile app, through the Throughput demo tile.
@@ -992,39 +1142,49 @@
-
+
-
- Demonstrates the features of the Thunderboard EFR32BG22 Kit. This can be tested with the Thunderboard mobile app.
+
+ Demonstrates the features of the Thunderboard EFR32BG22 Kit. This can be tested with the EFR Connect mobile app.
-
+
-
- Demonstrates the features of the Thunderboard EFR32BG22 Kit. This can be tested with the Thunderboard mobile app.
+
+ Demonstrates the features of the Thunderboard EFR32BG22 Kit. This can be tested with the EFR Connect mobile app.
-
+
-
- Demonstrates the features of the Thunderboard Sense 2 Kit. This can be tested with the Thunderboard mobile app.
+
+ Demonstrates the features of the Thunderboard Sense 2 Kit. This can be tested with the EFR Connect mobile app.
+
+
+
+
+
+
+
+
+
+ Voice over Bluetooth Low Energy sample application. It is supported by Thunderboard Sense 2 and Thunderboard EFR32BG22 boards and demonstrates how to send voice data over GATT, which is acquired from the on-board microphones.
-
+
-
+
Voice over Bluetooth Low Energy sample application. It is supported by Thunderboard Sense 2 and Thunderboard EFR32BG22 boards and demonstrates how to send voice data over GATT, which is acquired from the on-board microphones.
@@ -1032,19 +1192,29 @@
-
+
-
+
Voice over Bluetooth Low Energy sample application. It is supported by Thunderboard Sense 2 and Thunderboard EFR32BG22 boards and demonstrates how to send voice data over GATT, which is acquired from the on-board microphones.
+
+
+
+
+
+
+
+
+
+ An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1052,9 +1222,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1062,9 +1232,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1072,9 +1242,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1082,9 +1252,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1092,9 +1262,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1102,9 +1272,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1112,9 +1282,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1122,9 +1292,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1132,9 +1302,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1142,9 +1312,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1152,9 +1322,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1162,9 +1332,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1172,9 +1342,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1182,9 +1352,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1192,9 +1362,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1202,9 +1372,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1212,9 +1382,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1222,9 +1392,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1232,9 +1402,9 @@
-
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
@@ -1242,9 +1412,29 @@
-
+
+
+
+ An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
+
+
+
+
+
+
+
+
+
+ An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
+
+
+
+
+
+
+
-
+
An iBeacon device implementation that sends non-connectable advertisements in iBeacon format. The iBeacon Service gives Bluetooth accessories a simple and convenient way to send iBeacons to smartphones. This example can be tested together with the EFR Connect mobile app.
diff --git a/app/bluetooth/bluetooth_production_templates.xml b/app/bluetooth/bluetooth_production_templates.xml
index 9f400e8802a..7c977094049 100644
--- a/app/bluetooth/bluetooth_production_templates.xml
+++ b/app/bluetooth/bluetooth_production_templates.xml
@@ -4,8 +4,8 @@
-
-
+
+
@@ -17,7 +17,7 @@
-
+
@@ -30,8 +30,8 @@
-
-
+
+
@@ -43,8 +43,8 @@
-
-
+
+
@@ -56,8 +56,8 @@
-
-
+
+
@@ -69,8 +69,8 @@
-
-
+
+
@@ -82,8 +82,8 @@
-
-
+
+
@@ -95,8 +95,8 @@
-
-
+
+
@@ -108,8 +108,8 @@
-
-
+
+
@@ -121,8 +121,8 @@
-
-
+
+
@@ -134,8 +134,8 @@
-
-
+
+
@@ -147,9 +147,9 @@
-
-
-
+
+
+
@@ -160,9 +160,9 @@
-
-
-
+
+
+
@@ -173,9 +173,9 @@
-
-
-
+
+
+
@@ -186,9 +186,9 @@
-
-
-
+
+
+
@@ -199,8 +199,8 @@
-
-
+
+
@@ -212,8 +212,8 @@
-
-
+
+
@@ -225,8 +225,8 @@
-
-
+
+
@@ -238,9 +238,9 @@
-
-
-
+
+
+
@@ -251,9 +251,9 @@
-
-
-
+
+
+
@@ -264,9 +264,9 @@
-
-
-
+
+
+
@@ -277,9 +277,9 @@
-
-
-
+
+
+
@@ -290,8 +290,8 @@
-
-
+
+
@@ -304,7 +304,7 @@
-
+
@@ -317,7 +317,7 @@
-
+
@@ -329,8 +329,8 @@
-
-
+
+
@@ -342,8 +342,8 @@
-
-
+
+
@@ -355,8 +355,8 @@
-
-
+
+
@@ -368,8 +368,8 @@
-
-
+
+
@@ -381,8 +381,8 @@
-
-
+
+
@@ -394,8 +394,8 @@
-
-
+
+
@@ -407,8 +407,8 @@
-
-
+
+
@@ -416,11 +416,11 @@
-
+
-
+
@@ -429,11 +429,11 @@
-
+
-
+
@@ -442,11 +442,11 @@
-
+
-
+
@@ -455,12 +455,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/app/bluetooth/btmesh.properties b/app/bluetooth/btmesh.properties
index e4bf5a95fe5..48e72a71f33 100644
--- a/app/bluetooth/btmesh.properties
+++ b/app/bluetooth/btmesh.properties
@@ -2,10 +2,8 @@
id=com.silabs.stack.btMesh
label=Bluetooth Mesh SDK
description=Bluetooth Mesh Software Development Kit
-version=2.2.0.0
-dependantSdkVersion=3.3.0
-dependentBLESdkVersion=3.3.0
-prop.subLabel=Bluetooth\\ Mesh\\ 2.2.0
+version=2.2.1.0
+prop.subLabel=Bluetooth\\ Mesh\\ 2.2.1
# Default compatibility of the BT Mesh SDK (This is needed for the documentation only)
prop.boardCompatibility=.*
diff --git a/app/bluetooth/btmesh_internal_demos.xml b/app/bluetooth/btmesh_internal_demos.xml
index 7570813de75..e3deef8a2e6 100644
--- a/app/bluetooth/btmesh_internal_demos.xml
+++ b/app/bluetooth/btmesh_internal_demos.xml
@@ -4,9 +4,9 @@
-
+
-
+
Friend example for IOP test. This node acts as a friend for the low power node and caches messages sent to it when the low power node is sleeping.
@@ -14,9 +14,9 @@
-
+
-
+
Friend example for IOP test. This node acts as a friend for the low power node and caches messages sent to it when the low power node is sleeping.
@@ -24,9 +24,9 @@
-
+
-
+
Friend example for IOP test. This node acts as a friend for the low power node and caches messages sent to it when the low power node is sleeping.
@@ -34,9 +34,9 @@
-
+
-
+
Low power node example for IOP test. This node acts as a typical low power device and sleeps most of the time. It needs a friend node to cache messages and forward them when polled.
@@ -44,9 +44,9 @@
-
+
-
+
Low power node example for IOP test. This node acts as a typical low power device and sleeps most of the time. It needs a friend node to cache messages and forward them when polled.
@@ -54,9 +54,9 @@
-
+
-
+
Low power node example for IOP test. This node acts as a typical low power device and sleeps most of the time. It needs a friend node to cache messages and forward them when polled.
@@ -64,9 +64,9 @@
-
+
-
+
Low power node example for IOP test. This node acts as a typical low power device and sleeps most of the time. It needs a friend node to cache messages and forward them when polled.
@@ -74,9 +74,9 @@
-
+
-
+
Proxy example for IOP test. This node forwards/relays messages between GATT and advertising bearers in the network.
@@ -84,9 +84,9 @@
-
+
-
+
Proxy example for IOP test. This node forwards/relays messages between GATT and advertising bearers in the network.
@@ -94,9 +94,9 @@
-
+
-
+
Proxy example for IOP test. This node forwards/relays messages between GATT and advertising bearers in the network.
@@ -104,9 +104,9 @@
-
+
-
+
Relay example for IOP test. This node acts as a relay, i.e. if a node is out of range for another node, it relays messages between the two, provided the relay node is in range for both.
@@ -114,9 +114,9 @@
-
+
-
+
Relay example for IOP test. This node acts as a relay, i.e. if a node is out of range for another node, it relays messages between the two, provided the relay node is in range for both.
@@ -124,9 +124,9 @@
-
+
-
+
Relay example for IOP test. This node acts as a relay, i.e. if a node is out of range for another node, it relays messages between the two, provided the relay node is in range for both.
diff --git a/app/bluetooth/btmesh_production_demos.xml b/app/bluetooth/btmesh_production_demos.xml
index 5bf2af68843..8fb5613c602 100644
--- a/app/bluetooth/btmesh_production_demos.xml
+++ b/app/bluetooth/btmesh_production_demos.xml
@@ -4,9 +4,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -14,9 +14,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -24,9 +24,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -34,9 +34,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -44,9 +44,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -54,9 +54,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -64,9 +64,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -74,9 +74,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -84,9 +84,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -94,9 +94,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -104,9 +104,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -114,9 +114,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -124,9 +124,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -134,9 +134,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -144,9 +144,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -154,9 +154,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -164,9 +164,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -174,9 +174,9 @@
-
+
-
+
Bluetooth Mesh NCP (Network Co-Processor) target demonstrates the bare minimum needed for a Bluetooth Mesh NCP Target C application, that makes it possible for the NCP Host Controller to access the Bluetooth Mesh stack via UART. It provides access to the host layer via BGAPI and not to the link layer via HCI. This example is recommended for EFR32xG22 which has limited RAM and Flash, therefore some of the stack classes are disabled by default. The required stack class components need to be enabled and the stack parameters need to be configured before use. The communication between the Host Controller and the target can be secured by installing the Secure NCP component. This example requires the BGAPI UART DFU Bootloader.
@@ -184,9 +184,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -194,9 +194,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the Thunderboard Sense 2 can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only by UART logs) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the UART. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires Internal Storage Bootloader (single image on 1MB device).
@@ -204,9 +204,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -214,9 +214,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -224,9 +224,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -234,9 +234,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -244,9 +244,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -254,9 +254,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -264,9 +264,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -274,9 +274,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -284,9 +284,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity can also be set. Hue and saturation (only displayed on the LCD) can be set by hsl client. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, HSL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -294,9 +294,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -304,9 +304,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the Thunderboard Sense 2 can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV can also be set. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires Internal Storage Bootloader (single image on 1MB device).
@@ -314,9 +314,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -324,9 +324,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -334,9 +334,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -344,9 +344,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -354,9 +354,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -364,9 +364,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -374,9 +374,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -384,9 +384,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -394,9 +394,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo where the LEDs of the WSTK can be controlled by push button presses on another device (soc_btmesh_switch). Beside switching on and off the LEDs, their lighting intensity, color temperature and delta UV (only displayed on the LCD) can also be set. The example also tries to establish friendship as Friend node and prints its status to the LCD. The example is based on the Bluetooth Mesh Generic On/Off Model, the Light Lightness Model, CTL Model and LC Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -404,9 +404,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -414,9 +414,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -424,9 +424,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -434,9 +434,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -444,9 +444,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -454,9 +454,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -464,9 +464,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -474,9 +474,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -484,9 +484,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -494,9 +494,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -504,9 +504,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -514,9 +514,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -524,9 +524,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -534,9 +534,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -544,9 +544,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -554,9 +554,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -564,9 +564,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -574,9 +574,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Client Model. It collects and displays sensor measurement data from remote device(s) (eg soc_btmesh_sensor_server). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -584,9 +584,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -594,9 +594,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature, people count and illuminance and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is sent to UART. This example requires Internal Storage Bootloader (single image on 1MB device).
@@ -604,9 +604,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -614,9 +614,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -624,9 +624,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -634,9 +634,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -644,9 +644,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the measurement data to a remote device (eg soc_btmesh_sensor_client). The current status is sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -654,9 +654,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the measurement data to a remote device (eg soc_btmesh_sensor_client). The current status is sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is wired. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -664,9 +664,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature, people count and illuminance and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is available. This example requires Internal Storage Bootloader (single image on 512kB device).
@@ -674,9 +674,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature, people count and illuminance and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is sent to UART. CLI commands can substitute button presses as on the selected board only one Push Button is available. This example requires Internal Storage Bootloader (single image on 512kB device).
@@ -684,9 +684,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -694,9 +694,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -704,9 +704,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -714,9 +714,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -724,9 +724,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -734,9 +734,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -744,9 +744,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -754,9 +754,9 @@
-
+
-
+
This example demonstrates the Bluetooth Mesh Sensor Server Model and Sensor Setup Server Model. It measures temperature and people count and sends the mearurement data to a remote device (eg soc_btmesh_sensor_client). The current status is displayed on the LCD and also sent to UART. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -764,9 +764,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -774,9 +774,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -784,9 +784,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -794,9 +794,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -804,9 +804,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -814,9 +814,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -824,9 +824,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board (only PB0 is functional) can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -834,9 +834,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board (only PB0 is functional) can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -844,9 +844,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board (only PB0 is functional) can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -854,9 +854,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board (only PB0 is functional) can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -864,9 +864,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -874,9 +874,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -884,9 +884,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -894,9 +894,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -904,9 +904,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -914,9 +914,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -924,9 +924,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -934,9 +934,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for low current consumption where the device acts as a switch. It has disabled CLI, logging and LCD. Push Button presses on the development board can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -944,9 +944,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -954,9 +954,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the development board or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -964,9 +964,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -974,9 +974,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -984,9 +984,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -994,9 +994,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1004,9 +1004,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the development board (only PB0 is functional) or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1014,9 +1014,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the development board (only PB0 is functional) or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1024,9 +1024,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the development board (only PB0 is functional) or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1034,9 +1034,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the development board (only PB0 is functional) or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1044,9 +1044,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1054,9 +1054,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1064,9 +1064,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1074,9 +1074,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1084,9 +1084,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1094,9 +1094,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1104,9 +1104,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
@@ -1114,9 +1114,9 @@
-
+
-
+
This example is an out-of-the-box Software Demo optimized for user experience where the device acts as a switch. Push Button presses on the WSTK or CLI commands can control the state, lightness and color temperature of the LEDs and also scenes on a remote device (soc_btmesh_light). The example also acts as a LPN and tries to establish friendship. The status messages are also displayed on the LCD and sent to UART. The example is based on the Bluetooth Mesh Generic On/Off Client Model, the Light Lightness Client Model, CTL Client Model and Scene Client Model. This example requires one of the Internal Storage Bootloader (single image) variants depending on device memory.
diff --git a/app/bluetooth/btmesh_production_templates.xml b/app/bluetooth/btmesh_production_templates.xml
index 22b4b39ce69..b2258871c5c 100644
--- a/app/bluetooth/btmesh_production_templates.xml
+++ b/app/bluetooth/btmesh_production_templates.xml
@@ -4,7 +4,7 @@
-
+
@@ -17,7 +17,7 @@
-
+
@@ -30,7 +30,7 @@
-
+
@@ -43,7 +43,7 @@
-
+
@@ -56,7 +56,7 @@
-
+
@@ -69,7 +69,7 @@
-
+
@@ -82,7 +82,7 @@
-
+
@@ -95,7 +95,7 @@
-
+
@@ -108,7 +108,7 @@
-
+
@@ -121,7 +121,7 @@
-
+
@@ -134,7 +134,7 @@
-
+
@@ -147,7 +147,7 @@
-
+
@@ -160,7 +160,7 @@
-
+
@@ -173,7 +173,7 @@
-
+
@@ -186,7 +186,7 @@
-
+
@@ -199,7 +199,7 @@
-
+
@@ -212,7 +212,7 @@
-
+
@@ -225,7 +225,7 @@
-
+
@@ -238,7 +238,7 @@
-
+
@@ -251,7 +251,7 @@
-
+
@@ -264,7 +264,7 @@
-
+
@@ -277,7 +277,7 @@
-
+
@@ -290,7 +290,7 @@
-
+
@@ -303,7 +303,7 @@
-
+
diff --git a/app/bluetooth/common/app_btmesh_util/app_btmesh_util.h b/app/bluetooth/common/app_btmesh_util/app_btmesh_util.h
index 744d7e31ced..4ed76b0d3bf 100644
--- a/app/bluetooth/common/app_btmesh_util/app_btmesh_util.h
+++ b/app/bluetooth/common/app_btmesh_util/app_btmesh_util.h
@@ -81,22 +81,22 @@
// This macro calculates the number of precompile logging enable request in the
// specific c file where the this header file is included from
-#define APP_BTMESH_UTIL_COMPONENT_LOGGING \
- (CTL_CLIENT_LOGGING \
- + CTL_SERVER_LOGGING \
- + FRIEND_LOGGING \
- + GENERIC_ONOFF_SERVER_LOGGING \
- + LC_SERVER_LOGGING \
- + LIGHTING_CLIENT_LOGGING \
- + LIGHTING_SERVER_LOGGING \
- + LPN_LOGGING \
- + PROVISIONING_DECORATOR_LOGGING \
- + SCENE_CLIENT_LOGGING \
- + SCHEDULER_SERVER_LOGGING \
- + SENSOR_CLIENT_LOGGING \
- + SENSOR_SERVER_LOGGING \
- + TIME_SERVER_LOGGING \
- + VENDOR_LOOPBACK_LOGGING)
+#define APP_BTMESH_UTIL_COMPONENT_LOGGING \
+ (SL_BTMESH_CTL_CLIENT_LOGGING_CFG_VAL \
+ + SL_BTMESH_CTL_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_FRIEND_LOGGING_CFG_VAL \
+ + SL_BTMESH_GENERIC_ONOFF_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_LC_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_LIGHTING_CLIENT_LOGGING_CFG_VAL \
+ + SL_BTMESH_LIGHTING_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_LPN_LOGGING_CFG_VAL \
+ + SL_BTMESH_PROVISIONING_DECORATOR_LOGGING_CFG_VAL \
+ + SL_BTMESH_SCENE_CLIENT_LOGGING_CFG_VAL \
+ + SL_BTMESH_SCHEDULER_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_SENSOR_CLIENT_LOGGING_CFG_VAL \
+ + SL_BTMESH_SENSOR_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_TIME_SERVER_LOGGING_CFG_VAL \
+ + SL_BTMESH_VENDOR_LOOPBACK_LOGGING_CFG_VAL)
// Component A shall not include the config file of another component B because
// _LOGGING macro of component B could turn on the logging in the
// component A unnecessarily. This is important in case of components with log.
diff --git a/app/bluetooth/common/btmesh_ctl_client/config/sl_btmesh_ctl_client_config.h b/app/bluetooth/common/btmesh_ctl_client/config/sl_btmesh_ctl_client_config.h
index 0cc376ce66d..8fc56f8076e 100644
--- a/app/bluetooth/common/btmesh_ctl_client/config/sl_btmesh_ctl_client_config.h
+++ b/app/bluetooth/common/btmesh_ctl_client/config/sl_btmesh_ctl_client_config.h
@@ -34,37 +34,37 @@
// CTL Client configuration
-// CTL model retransmission count
+// CTL model retransmission count
// Default: 3
// CTL model retransmission count (How many times CTL model messages are to be sent out for reliability).
-#define CTL_CLIENT_RETRANSMISSION_COUNT (3)
+#define SL_BTMESH_CTL_CLIENT_RETRANSMISSION_COUNT_CFG_VAL (3)
-// CTL model retransmission timeout [ms] <0-1275:5>
+// CTL model retransmission timeout [ms] <0-1275:5>
// Default: 50
// CTL model retransmission timeout.
-#define CTL_CLIENT_RETRANSMISSION_TIMEOUT (50)
+#define SL_BTMESH_CTL_CLIENT_RETRANSMISSION_TIMEOUT_CFG_VAL (50)
-// Enable color temperature wraparound
+// Enable color temperature wraparound
// Default: 0
// If the color temperature reaches the max or min value then it wraps around.
-#define CTL_CLIENT_TEMPERATURE_WRAP_ENABLED (0)
+#define SL_BTMESH_CTL_CLIENT_TEMPERATURE_WRAP_ENABLED_CFG_VAL (0)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for CTL Client model specific messages for this component.
-#define CTL_CLIENT_LOGGING (1)
+#define SL_BTMESH_CTL_CLIENT_LOGGING_CFG_VAL (1)
-// Log text when new color temperature has been set.
+// Log text when new color temperature has been set.
// Set Log text when new color temperature has been set
-#define CTL_CLIENT_LOGGING_NEW_TEMP_SET "Set temperature to %u %% / level %u K\r\n"
+#define SL_BTMESH_CTL_CLIENT_LOGGING_NEW_TEMP_SET_CFG_VAL "Set temperature to %u %% / level %u K\r\n"
-// Log text when sending a CTL message fails.
+// Log text when sending a CTL message fails.
// Set Log text in case sending a CTL message fails
-#define CTL_CLIENT_LOGGING_CLIENT_PUBLISH_FAIL "CTL Client Publish failed\r\n"
+#define SL_BTMESH_CTL_CLIENT_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL "CTL Client Publish failed\r\n"
-// Log text when recalling a scene recall is successful.
+// Log text when recalling a scene recall is successful.
// Set Log text a scene recall is successful.
-#define CTL_CLIENT_LOGGING_RECALL_SUCCESS "CTL request sent, trid = %u, delay = %u\r\n"
+#define SL_BTMESH_CTL_CLIENT_LOGGING_RECALL_SUCCESS_CFG_VAL "CTL request sent, trid = %u, delay = %u\r\n"
//
diff --git a/app/bluetooth/common/btmesh_ctl_client/sl_btmesh_ctl_client.c b/app/bluetooth/common/btmesh_ctl_client/sl_btmesh_ctl_client.c
index 44ca3dbb179..90589d05bb7 100644
--- a/app/bluetooth/common/btmesh_ctl_client/sl_btmesh_ctl_client.c
+++ b/app/bluetooth/common/btmesh_ctl_client/sl_btmesh_ctl_client.c
@@ -148,9 +148,9 @@ static void send_ctl_request(uint8_t retrans)
);
if (sc == SL_STATUS_OK) {
- log_info(CTL_CLIENT_LOGGING_RECALL_SUCCESS, ctl_trid, delay);
+ log_info(SL_BTMESH_CTL_CLIENT_LOGGING_RECALL_SUCCESS_CFG_VAL, ctl_trid, delay);
} else {
- log_btmesh_status_f(sc, CTL_CLIENT_LOGGING_CLIENT_PUBLISH_FAIL);
+ log_btmesh_status_f(sc, SL_BTMESH_CTL_CLIENT_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL);
}
// Keep track of how many requests has been sent
@@ -172,7 +172,7 @@ void sl_btmesh_change_temperature(int8_t change_percentage)
if (change_percentage > 0) {
temperature_percent += change_percentage;
if (temperature_percent > TEMPERATURE_PCT_MAX) {
-#if (CTL_CLIENT_TEMPERATURE_WRAP_ENABLED != 0)
+#if (SL_BTMESH_CTL_CLIENT_TEMPERATURE_WRAP_ENABLED_CFG_VAL != 0)
temperature_percent = 0;
#else
temperature_percent = TEMPERATURE_PCT_MAX;
@@ -180,7 +180,7 @@ void sl_btmesh_change_temperature(int8_t change_percentage)
}
} else {
if (temperature_percent < (-change_percentage)) {
-#if (CTL_CLIENT_TEMPERATURE_WRAP_ENABLED != 0)
+#if (SL_BTMESH_CTL_CLIENT_TEMPERATURE_WRAP_ENABLED_CFG_VAL != 0)
temperature_percent = TEMPERATURE_PCT_MAX;
#else
temperature_percent = 0;
@@ -217,12 +217,12 @@ void sl_btmesh_set_temperature(uint8_t new_color_temperature_percentage)
/ TEMPERATURE_PCT_MAX) \
* (TEMPERATURE_MAX - TEMPERATURE_MIN) \
/ TEMPERATURE_SCALE_FACTOR;
- log(CTL_CLIENT_LOGGING_NEW_TEMP_SET,
+ log(SL_BTMESH_CTL_CLIENT_LOGGING_NEW_TEMP_SET_CFG_VAL,
temperature_percent * temperature_percent / TEMPERATURE_PCT_MAX,
temperature_level);
// Request is sent multiple times to improve reliability
- ctl_request_count = CTL_CLIENT_RETRANSMISSION_COUNT;
+ ctl_request_count = SL_BTMESH_CTL_CLIENT_RETRANSMISSION_COUNT_CFG_VAL;
send_ctl_request(0); //Send the first request
@@ -230,7 +230,7 @@ void sl_btmesh_set_temperature(uint8_t new_color_temperature_percentage)
// to trigger retransmission of the request after 50 ms delay
if (ctl_request_count > 0) {
sl_status_t sc = sl_simple_timer_start(&ctl_retransmission_timer,
- CTL_CLIENT_RETRANSMISSION_TIMEOUT,
+ SL_BTMESH_CTL_CLIENT_RETRANSMISSION_TIMEOUT_CFG_VAL,
ctl_retransmission_timer_cb,
NO_CALLBACK_DATA,
true);
diff --git a/app/bluetooth/common/btmesh_ctl_server/config/sl_btmesh_ctl_server_config.h b/app/bluetooth/common/btmesh_ctl_server/config/sl_btmesh_ctl_server_config.h
index 1eba03576bc..6b766004a42 100644
--- a/app/bluetooth/common/btmesh_ctl_server/config/sl_btmesh_ctl_server_config.h
+++ b/app/bluetooth/common/btmesh_ctl_server/config/sl_btmesh_ctl_server_config.h
@@ -34,50 +34,50 @@
// CTL Server configuration
-// Timeout [ms] for saving States of the model to NVM.
+// Timeout [ms] for saving States of the model to NVM.
// Default: 5000
// Timeout [ms] for saving States of the model to NVM.
-#define CTL_SERVER_NVM_SAVE_TIME (5000)
+#define SL_BTMESH_CTL_SERVER_NVM_SAVE_TIME_CFG_VAL (5000)
-// PS Key for NVM Page where the States of the Lighting Model are saved.
+// PS Key for NVM Page where the States of the Lighting Model are saved.
// Default: 0x4005
// PS Key for NVM Page where the States of the Lighting Model are saved.
-#define CTL_SERVER_PS_KEY (0x4005)
+#define SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL (0x4005)
-// Periodicity [ms] for updating the PWM duty cycle during a transition.
+// Periodicity [ms] for updating the PWM duty cycle during a transition.
// Default: 1
// Periodicity [ms] for updating the PWM duty cycle during a transition.
-#define CTL_SERVER_PWM_UPDATE_PERIOD (1)
+#define SL_BTMESH_CTL_SERVER_PWM_UPDATE_PERIOD_CFG_VAL (1)
-// Periodicity [ms] for updating the UI with temperature & delta UV during a transition.
+// Periodicity [ms] for updating the UI with temperature & delta UV during a transition.
// Default: 100
// Periodicity [ms] for updating the temperature & delta UV values on the UI.
-#define CTL_SERVER_UI_UPDATE_PERIOD (100)
+#define SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL (100)
-// Default Color Temperature
+// Default Color Temperature
// Default: 6500
// Default Color Temperature value.
-#define CTL_SERVER_DEFAULT_TEMPERATURE (6500)
+#define SL_BTMESH_CTL_SERVER_DEFAULT_TEMPERATURE_CFG_VAL (6500)
-// Default Delta UV
+// Default Delta UV
// Default: 0
// Default Delta UV.
-#define CTL_SERVER_DEFAULT_DELTAUV (0)
+#define SL_BTMESH_CTL_SERVER_DEFAULT_DELTAUV_CFG_VAL (0)
-// Minimum Color Temperature
+// Minimum Color Temperature
// Default: 800
// Minimum Color Temperature.
-#define CTL_SERVER_MINIMUM_TEMPERATURE (800)
+#define SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL (800)
-// Maximum Color Temperature
+// Maximum Color Temperature
// Default: 800
// Maximum Color Temperature.
-#define CTL_SERVER_MAXIMUM_TEMPERATURE (20000)
+#define SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL (20000)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Lighting Server model specific messages for this component.
-#define CTL_SERVER_LOGGING (1)
+#define SL_BTMESH_CTL_SERVER_LOGGING_CFG_VAL (1)
//
@@ -86,8 +86,8 @@
// <<< end of configuration section >>>
// The PWM update period shall not be greater than the UI update period
-#if (CTL_SERVER_UI_UPDATE_PERIOD) < (CTL_SERVER_PWM_UPDATE_PERIOD)
-#error "The CTL_SERVER_PWM_UPDATE_PERIOD shall be less than CTL_SERVER_UI_UPDATE_PERIOD."
+#if (SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL) < (SL_BTMESH_CTL_SERVER_PWM_UPDATE_PERIOD_CFG_VAL)
+#error "The SL_BTMESH_CTL_SERVER_PWM_UPDATE_PERIOD_CFG_VAL shall be less than SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL."
#endif
#endif // SL_BTMESH_CTL_SERVER_CONFIG_H
diff --git a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_server.c b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_server.c
index aada264d10e..3805caaeb3b 100644
--- a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_server.c
+++ b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_server.c
@@ -147,7 +147,7 @@ static void ctl_state_store_timer_cb(sl_simple_timer_t *handle,
/***************************************************************************//**
* This function loads the saved light state from Persistent Storage and
* copies the data in the global variable lightbulb_state.
- * If PS key with ID CTL_SERVER_PS_KEY does not exist or loading failed,
+ * If PS key with ID SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL does not exist or loading failed,
* lightbulb_state is set to zero and some default values are written to it.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
@@ -1933,7 +1933,7 @@ static void init_ctl_models(void)
/***************************************************************************//**
* This function loads the saved light state from Persistent Storage and
* copies the data in the global variable lightbulb_state.
- * If PS key with ID CTL_SERVER_PS_KEY does not exist or loading failed,
+ * If PS key with ID SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL does not exist or loading failed,
* lightbulb_state is set to zero and some default values are written to it.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
@@ -1944,7 +1944,7 @@ static sl_status_t lightbulb_state_load(void)
size_t ps_len = 0;
struct lightbulb_state ps_data;
- sc = sl_bt_nvm_load(CTL_SERVER_PS_KEY,
+ sc = sl_bt_nvm_load(SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL,
sizeof(ps_data),
&ps_len,
(uint8_t *)&ps_data);
@@ -1952,10 +1952,10 @@ static sl_status_t lightbulb_state_load(void)
// Set default values if ps_load fail or size of lightbulb_state has changed
if ((sc != SL_STATUS_OK) || (ps_len != sizeof(struct lightbulb_state))) {
memset(&lightbulb_state, 0, sizeof(struct lightbulb_state));
- lightbulb_state.temperature_default = CTL_SERVER_DEFAULT_TEMPERATURE;
- lightbulb_state.temperature_min = CTL_SERVER_MINIMUM_TEMPERATURE;
- lightbulb_state.temperature_max = CTL_SERVER_MAXIMUM_TEMPERATURE;
- lightbulb_state.deltauv_default = CTL_SERVER_DEFAULT_DELTAUV;
+ lightbulb_state.temperature_default = SL_BTMESH_CTL_SERVER_DEFAULT_TEMPERATURE_CFG_VAL;
+ lightbulb_state.temperature_min = SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL;
+ lightbulb_state.temperature_max = SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL;
+ lightbulb_state.deltauv_default = SL_BTMESH_CTL_SERVER_DEFAULT_DELTAUV_CFG_VAL;
// Check if default values are valid and correct them if needed
lightbulb_state_validate_and_correct();
@@ -1984,7 +1984,7 @@ static sl_status_t lightbulb_state_load(void)
* This function saves the current light state in Persistent Storage so that
* the data is preserved over reboots and power cycles.
* The light state is hold in a global variable lightbulb_state.
- * A PS key with ID CTL_SERVER_PS_KEY is used to store the whole struct.
+ * A PS key with ID SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL is used to store the whole struct.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
******************************************************************************/
@@ -1992,7 +1992,7 @@ static sl_status_t lightbulb_state_store(void)
{
sl_status_t sc;
- sc = sl_bt_nvm_save(CTL_SERVER_PS_KEY,
+ sc = sl_bt_nvm_save(SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL,
sizeof(struct lightbulb_state),
(const uint8_t *)&lightbulb_state);
@@ -2011,7 +2011,7 @@ static sl_status_t lightbulb_state_store(void)
static void lightbulb_state_changed(void)
{
sl_status_t sc = sl_simple_timer_start(&ctl_state_store_timer,
- CTL_SERVER_NVM_SAVE_TIME,
+ SL_BTMESH_CTL_SERVER_NVM_SAVE_TIME_CFG_VAL,
ctl_state_store_timer_cb,
NO_CALLBACK_DATA,
false);
@@ -2024,11 +2024,11 @@ static void lightbulb_state_changed(void)
******************************************************************************/
static void lightbulb_state_validate_and_correct(void)
{
- if (lightbulb_state.temperature_min < CTL_SERVER_MINIMUM_TEMPERATURE) {
- lightbulb_state.temperature_min = CTL_SERVER_MINIMUM_TEMPERATURE;
+ if (lightbulb_state.temperature_min < SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL) {
+ lightbulb_state.temperature_min = SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL;
}
- if (lightbulb_state.temperature_min > CTL_SERVER_MAXIMUM_TEMPERATURE) {
- lightbulb_state.temperature_min = CTL_SERVER_MAXIMUM_TEMPERATURE;
+ if (lightbulb_state.temperature_min > SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL) {
+ lightbulb_state.temperature_min = SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL;
}
if (lightbulb_state.temperature_min > lightbulb_state.temperature_max) {
lightbulb_state.temperature_min = lightbulb_state.temperature_max;
@@ -2150,7 +2150,7 @@ void sl_btmesh_ctl_server_on_event(sl_btmesh_msg_t *evt)
break;
case sl_btmesh_evt_node_reset_id:
- sl_bt_nvm_erase(CTL_SERVER_PS_KEY);
+ sl_bt_nvm_erase(SL_BTMESH_CTL_SERVER_PS_KEY_CFG_VAL);
break;
}
}
diff --git a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.c b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.c
index 6a3e3953499..2d3327555f0 100644
--- a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.c
+++ b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.c
@@ -61,7 +61,7 @@
#define HIGH_PRIORITY 0 // High Priority
/// current temperature level
-static uint16_t current_temperature = CTL_SERVER_DEFAULT_TEMPERATURE;
+static uint16_t current_temperature = SL_BTMESH_CTL_SERVER_DEFAULT_TEMPERATURE_CFG_VAL;
/// starting level of temperature transition
static uint16_t start_temperature;
/// target level of temperature transition
@@ -111,7 +111,7 @@ static void transition_timer_cb(sl_simple_timer_t *timer, void *data)
(void)timer;
// Initialize the variable to UI update period in order to trigger a UI update
// at the beginning of the transition.
- static uint16_t time_elapsed_since_ui_update = CTL_SERVER_UI_UPDATE_PERIOD;
+ static uint16_t time_elapsed_since_ui_update = SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
if (!temp_transitioning) {
sl_status_t sc = sl_simple_timer_stop(&transition_timer);
@@ -128,7 +128,7 @@ static void transition_timer_cb(sl_simple_timer_t *timer, void *data)
// Set the variable to UI update period in order to trigger a UI update
// at the beginning of the next transition.
- time_elapsed_since_ui_update = CTL_SERVER_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update = SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
// Trigger a UI update in order to provide the target values at the end
// of the current transition
@@ -160,12 +160,12 @@ static void transition_timer_cb(sl_simple_timer_t *timer, void *data)
}
// When transition is ongoing generate an event to application once every
- // CTL_SERVER_UI_UPDATE_PERIOD ms because the event is used to update
+ // SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL ms because the event is used to update
// display status and therefore the rate should not be too high
- time_elapsed_since_ui_update += CTL_SERVER_PWM_UPDATE_PERIOD;
+ time_elapsed_since_ui_update += SL_BTMESH_CTL_SERVER_PWM_UPDATE_PERIOD_CFG_VAL;
- if (CTL_SERVER_UI_UPDATE_PERIOD <= time_elapsed_since_ui_update) {
- time_elapsed_since_ui_update -= CTL_SERVER_UI_UPDATE_PERIOD;
+ if (SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL <= time_elapsed_since_ui_update) {
+ time_elapsed_since_ui_update -= SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
sl_btmesh_ctl_on_ui_update(current_temperature, current_deltauv);
}
}
@@ -185,10 +185,10 @@ void sl_btmesh_ctl_set_temperature_deltauv_level(uint16_t temperature,
int16_t deltauv,
uint32_t transition_ms)
{
- if (temperature < CTL_SERVER_MINIMUM_TEMPERATURE) {
- temperature = CTL_SERVER_MINIMUM_TEMPERATURE;
- } else if (temperature > CTL_SERVER_MAXIMUM_TEMPERATURE) {
- temperature = CTL_SERVER_MAXIMUM_TEMPERATURE;
+ if (temperature < SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL) {
+ temperature = SL_BTMESH_CTL_SERVER_MINIMUM_TEMPERATURE_CFG_VAL;
+ } else if (temperature > SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL) {
+ temperature = SL_BTMESH_CTL_SERVER_MAXIMUM_TEMPERATURE_CFG_VAL;
}
if (transition_ms == 0) {
@@ -221,7 +221,7 @@ void sl_btmesh_ctl_set_temperature_deltauv_level(uint16_t temperature,
// enabling timer IRQ -> the temperature is adjusted in timer interrupt
// gradually until target temperature is reached.
sl_status_t sc = sl_simple_timer_start(&transition_timer,
- CTL_SERVER_PWM_UPDATE_PERIOD,
+ SL_BTMESH_CTL_SERVER_PWM_UPDATE_PERIOD_CFG_VAL,
transition_timer_cb,
NO_CALLBACK_DATA,
true);
diff --git a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.h b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.h
index 1e1c0dd7d3c..6a390700ade 100644
--- a/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.h
+++ b/app/bluetooth/common/btmesh_ctl_server/sl_btmesh_ctl_signal_transition_handler.h
@@ -81,7 +81,7 @@ void sl_btmesh_lighting_color_pwm_cb(uint16_t color);
/***************************************************************************//**
* Called when the UI shall be updated with the changed CTL Model state during
* a transition. The rate of this callback can be controlled by changing the
- * CTL_SERVER_UI_UPDATE_PERIOD macro.
+ * SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL macro.
*
* This is a callback which can be implemented in the application.
* @note If no implementation is provided in the application then a default weak
diff --git a/app/bluetooth/common/btmesh_dcd_configuration/dcd_config.btmeshconf b/app/bluetooth/common/btmesh_dcd_configuration/dcd_config.btmeshconf
index ac22590f517..f3273915f64 100644
--- a/app/bluetooth/common/btmesh_dcd_configuration/dcd_config.btmeshconf
+++ b/app/bluetooth/common/btmesh_dcd_configuration/dcd_config.btmeshconf
@@ -2,7 +2,7 @@
"composition_data": {
"cid": "0x02ff",
"pid": "0xffff",
- "vid": "0x0220",
+ "vid": "0x0221",
"elements": [
{
"name": "Main",
diff --git a/app/bluetooth/common/btmesh_event_log/config/sl_btmesh_event_log_config.h b/app/bluetooth/common/btmesh_event_log/config/sl_btmesh_event_log_config.h
index f89f94bb989..4ed0d1b99d0 100644
--- a/app/bluetooth/common/btmesh_event_log/config/sl_btmesh_event_log_config.h
+++ b/app/bluetooth/common/btmesh_event_log/config/sl_btmesh_event_log_config.h
@@ -33,13 +33,13 @@
// <<< Use Configuration Wizard in Context Menu >>>
-// Enable linear output events logging
+// Enable linear output events logging
// Enables logging of linear output events.
-#define LC_LINEAR_OUTPUT_LOG_ENABLE 0
+#define SL_BTMESH_LC_LINEAR_OUTPUT_LOG_ENABLE_CFG_VAL 0
-// Enable unknown events logging
+// Enable unknown events logging
// Enables logging of unknown events.
-#define UNKNOWN_EVENTS_LOG_ENABLE 0
+#define SL_BTMESH_UNKNOWN_EVENTS_LOG_ENABLE_CFG_VAL 0
// <<< end of configuration section >>>
diff --git a/app/bluetooth/common/btmesh_event_log/sl_btmesh_event_log.c b/app/bluetooth/common/btmesh_event_log/sl_btmesh_event_log.c
index 5a09459819b..15abeff92b5 100644
--- a/app/bluetooth/common/btmesh_event_log/sl_btmesh_event_log.c
+++ b/app/bluetooth/common/btmesh_event_log/sl_btmesh_event_log.c
@@ -309,11 +309,11 @@ void sl_btmesh_handle_btmesh_logging_events(sl_btmesh_msg_t *evt)
break;
case sl_btmesh_evt_lc_server_linear_output_updated_id:
-#if defined(LC_LINEAR_OUTPUT_LOG_ENABLE) && LC_LINEAR_OUTPUT_LOG_ENABLE
+#if defined(SL_BTMESH_LC_LINEAR_OUTPUT_LOG_ENABLE_CFG_VAL) && SL_BTMESH_LC_LINEAR_OUTPUT_LOG_ENABLE_CFG_VAL
app_log("evt:sl_btmesh_evt_lc_server_linear_output_updated_id, "
"linear_output=%u\r\n",
evt->data.evt_lc_server_linear_output_updated.linear_output_value);
-#endif // LC_LINEAR_OUTPUT_LOG_ENABLE
+#endif // SL_BTMESH_LC_LINEAR_OUTPUT_LOG_ENABLE_CFG_VAL
break;
case sl_btmesh_evt_lc_setup_server_set_property_id:
@@ -323,12 +323,12 @@ void sl_btmesh_handle_btmesh_logging_events(sl_btmesh_msg_t *evt)
break;
default:
-#if defined(UNKNOWN_EVENTS_LOG_ENABLE) && UNKNOWN_EVENTS_LOG_ENABLE
+#if defined(SL_BTMESH_UNKNOWN_EVENTS_LOG_ENABLE_CFG_VAL) && SL_BTMESH_UNKNOWN_EVENTS_LOG_ENABLE_CFG_VAL
app_log("unknown evt: %8.8x class %2.2x method %2.2x\r\n",
evt_id,
(evt_id >> 16) & 0xFF,
(evt_id >> 24) & 0xFF);
-#endif // UNKNOWN_EVENTS_LOG_ENABLE
+#endif // SL_BTMESH_UNKNOWN_EVENTS_LOG_ENABLE_CFG_VAL
break;
}
}
diff --git a/app/bluetooth/common/btmesh_friend/config/sl_btmesh_friend_config.h b/app/bluetooth/common/btmesh_friend/config/sl_btmesh_friend_config.h
index a025ad515e5..6eaf0dd01bd 100644
--- a/app/bluetooth/common/btmesh_friend/config/sl_btmesh_friend_config.h
+++ b/app/bluetooth/common/btmesh_friend/config/sl_btmesh_friend_config.h
@@ -34,10 +34,10 @@
// Friend configuration
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable or disable Logging for Friend specific messages for this component.
-#define FRIEND_LOGGING (1)
+#define SL_BTMESH_FRIEND_LOGGING_CFG_VAL (1)
//
diff --git a/app/bluetooth/common/btmesh_generic_base/config/sl_btmesh_generic_base_config.h b/app/bluetooth/common/btmesh_generic_base/config/sl_btmesh_generic_base_config.h
index f89a4192d3d..5882686ca50 100644
--- a/app/bluetooth/common/btmesh_generic_base/config/sl_btmesh_generic_base_config.h
+++ b/app/bluetooth/common/btmesh_generic_base/config/sl_btmesh_generic_base_config.h
@@ -34,137 +34,137 @@
// Generic Base configuration
-// Register size increment <0-10>
+// Register size increment <0-10>
// Default: 3
// The dynamically reallocated array will grow in size by this value.
// Setting this value to 0 will disable reallocation.
-#define GENERIC_BASE_INCREMENT 3
+#define SL_BTMESH_GENERIC_BASE_INCREMENT_CFG_VAL 3
//
// Generic Models Initialization configuration
-// Enable Generic Server Models
+// Enable Generic Server Models
// Default: 0
// Enable Generic Server functionality.
-#define GENERIC_BASE_SERVER 0
+#define SL_BTMESH_GENERIC_BASE_SERVER_CFG_VAL 0
-// Generic On/Off Server
+// Generic On/Off Server
// Default: 0
// Initialize Generic On/Off Server.
-#define GENERIC_ON_OFF_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_ON_OFF_SERVER_INIT_CFG_VAL 0
-// Generic Level Server
+// Generic Level Server
// Default: 0
// Initialize Generic Level Server.
-#define GENERIC_LEVEL_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_LEVEL_SERVER_INIT_CFG_VAL 0
-// Generic Default Transition Time Server
+// Generic Default Transition Time Server
// Default: 0
// Initialize Generic Default Transition Time Server.
-#define GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT_CFG_VAL 0
-// Generic Power On/Off Server
+// Generic Power On/Off Server
// Default: 0
// Initialize Generic Power On/Off Server.
-#define GENERIC_POWER_ON_OFF_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_POWER_ON_OFF_SERVER_INIT_CFG_VAL 0
-// Generic Power Level Server
+// Generic Power Level Server
// Default: 0
// Initialize Generic Power Level Server.
-#define GENERIC_POWER_LEVEL_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL 0
-// Generic Battery Server
+// Generic Battery Server
// Default: 0
// Initialize Generic Battery Server.
-#define GENERIC_BATTERY_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_BATTERY_SERVER_INIT_CFG_VAL 0
-// Generic Location Server
+// Generic Location Server
// Default: 0
// Initialize Generic Location Server.
-#define GENERIC_LOCATION_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_LOCATION_SERVER_INIT_CFG_VAL 0
-// Generic Property Server
+// Generic Property Server
// Default: 0
// Initialize Generic Property Server.
-#define GENERIC_PROPERTY_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_PROPERTY_SERVER_INIT_CFG_VAL 0
-// Light Lightness Server
+// Light Lightness Server
// Default: 0
// Initialize Light Lightness Server.
-#define GENERIC_LIGHTNESS_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_LIGHTNESS_SERVER_INIT_CFG_VAL 0
-// Light CTL Server
+// Light CTL Server
// Default: 0
// Initialize Light CTL Server.
-#define GENERIC_CTL_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL 0
-// Light HSL Server
+// Light HSL Server
// Default: 0
// Initialize Light HSL Server.
-#define GENERIC_HSL_SERVER_INIT 0
+#define SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL 0
//
-// Enable Generic Client Models
+// Enable Generic Client Models
// Default: 0
// Enable Generic Client functionality.
-#define GENERIC_BASE_CLIENT 0
+#define SL_BTMESH_GENERIC_BASE_CLIENT_CFG_VAL 0
-// Generic On/Off Client
+// Generic On/Off Client
// Default: 0
// Initialize Generic On/Off Client.
-#define GENERIC_ON_OFF_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_ON_OFF_CLIENT_INIT_CFG_VAL 0
-// Generic Level Client
+// Generic Level Client
// Default: 0
// Initialize Generic Level Client.
-#define GENERIC_LEVEL_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_LEVEL_CLIENT_INIT_CFG_VAL 0
-// Generic Default Transition Time Client
+// Generic Default Transition Time Client
// Default: 0
// Initialize Generic Default Transition Time Client.
-#define GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT_CFG_VAL 0
-// Generic Power On/Off Client
+// Generic Power On/Off Client
// Default: 0
// Initialize Generic Power On/Off Client.
-#define GENERIC_POWER_ON_OFF_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_POWER_ON_OFF_CLIENT_INIT_CFG_VAL 0
-// Generic Power Level Client
+// Generic Power Level Client
// Default: 0
// Initialize Generic Power Level Client.
-#define GENERIC_POWER_LEVEL_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_POWER_LEVEL_CLIENT_INIT_CFG_VAL 0
-// Generic Battery Client
+// Generic Battery Client
// Default: 0
// Initialize Generic Battery Client.
-#define GENERIC_BATTERY_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_BATTERY_CLIENT_INIT_CFG_VAL 0
-// Generic Location Client
+// Generic Location Client
// Default: 0
// Initialize Generic Location Client.
-#define GENERIC_LOCATION_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_LOCATION_CLIENT_INIT_CFG_VAL 0
-// Generic Property Client
+// Generic Property Client
// Default: 0
// Initialize Generic Property Client.
-#define GENERIC_PROPERTY_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_PROPERTY_CLIENT_INIT_CFG_VAL 0
-// Light Lightness Client
+// Light Lightness Client
// Default: 0
// Initialize Lightness Client.
-#define GENERIC_LIGHTNESS_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_LIGHTNESS_CLIENT_INIT_CFG_VAL 0
-// Light CTL Client
+// Light CTL Client
// Default: 0
// Initialize Light CTL Client.
-#define GENERIC_CTL_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_CTL_CLIENT_INIT_CFG_VAL 0
-// Light HSL Client
+// Light HSL Client
// Default: 0
// Initialize Light HSL Client.
-#define GENERIC_HSL_CLIENT_INIT 0
+#define SL_BTMESH_GENERIC_HSL_CLIENT_INIT_CFG_VAL 0
//
diff --git a/app/bluetooth/common/btmesh_generic_base/sl_btmesh_generic_base.c b/app/bluetooth/common/btmesh_generic_base/sl_btmesh_generic_base.c
index f68688dbdc1..8ef1f45c0fa 100644
--- a/app/bluetooth/common/btmesh_generic_base/sl_btmesh_generic_base.c
+++ b/app/bluetooth/common/btmesh_generic_base/sl_btmesh_generic_base.c
@@ -46,7 +46,7 @@
sl_status_t sl_btmesh_generic_base_init(void)
{
return mesh_lib_init(SL_BTMESH_GENERIC_BASE_REGISTRY_INIT_SIZE,
- GENERIC_BASE_INCREMENT);
+ SL_BTMESH_GENERIC_BASE_INCREMENT_CFG_VAL);
}
void sl_btmesh_generic_base_on_event(sl_btmesh_msg_t *evt)
@@ -54,118 +54,118 @@ void sl_btmesh_generic_base_on_event(sl_btmesh_msg_t *evt)
sl_status_t sc = SL_STATUS_OK;
switch (SL_BT_MSG_ID(evt->header)) {
case sl_btmesh_evt_node_initialized_id:
-#if GENERIC_BASE_SERVER || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT) \
- || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT) \
- || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT) \
+#if SL_BTMESH_GENERIC_BASE_SERVER_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT) \
+ || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT) \
+ || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT) \
|| defined(SL_CATALOG_BTMESH_GENERIC_ONOFF_SERVER_PRESENT)
-#if GENERIC_CTL_SERVER_INIT || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT) \
- || GENERIC_HSL_SERVER_INIT || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT) \
- || GENERIC_POWER_LEVEL_SERVER_INIT
+#if SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT) \
+ || SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT) \
+ || SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL
- #if GENERIC_CTL_SERVER_INIT || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT)
+ #if SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_CTL_SERVER_PRESENT)
sc = sl_btmesh_generic_server_init_ctl();
app_assert_status_f(sc, "Failed to init ctl server\n");
- #endif // GENERIC_CTL_SERVER_INIT
- #if GENERIC_HSL_SERVER_INIT || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT)
+ #endif // SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_HSL_SERVER_PRESENT)
sc = sl_btmesh_generic_server_init_hsl();
app_assert_status_f(sc, "Failed to init hsl server\n");
- #endif // GENERIC_HSL_SERVER_INIT
- #if GENERIC_POWER_LEVEL_SERVER_INIT
+ #endif // SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_power_level();
app_assert_status_f(sc, "Failed to init power level server\n");
- #endif // GENERIC_POWER_LEVEL_SERVER_INIT
-#elif GENERIC_LIGHTNESS_SERVER_INIT || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT)
+ #endif // SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL
+#elif SL_BTMESH_GENERIC_LIGHTNESS_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT)
sc = sl_btmesh_generic_server_init_lightness();
app_assert_status_f(sc, "Failed to init lightness server\n");
-#else // GENERIC_CTL_SERVER_INIT || GENERIC_HSL_SERVER_INIT || GENERIC_POWER_LEVEL_SERVER_INIT
- #if GENERIC_LEVEL_SERVER_INIT
+#else // SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL || SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL || SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_LEVEL_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_level();
app_assert_status_f(sc, "Failed to init level server\n");
- #endif // GENERIC_LEVEL_SERVER_INIT
- #if GENERIC_POWER_ON_OFF_SERVER_INIT
+ #endif // SL_BTMESH_GENERIC_LEVEL_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_POWER_ON_OFF_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_power_on_off();
app_assert_status_f(sc, "Failed to init power on/off server\n");
- #else //GENERIC_POWER_ON_OFF_SERVER_INIT
- #if GENERIC_ON_OFF_SERVER_INIT || defined(SL_CATALOG_BTMESH_GENERIC_ONOFF_SERVER_PRESENT)
+ #else //SL_BTMESH_GENERIC_POWER_ON_OFF_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_ON_OFF_SERVER_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_GENERIC_ONOFF_SERVER_PRESENT)
sc = sl_btmesh_generic_server_init_on_off();
app_assert_status_f(sc, "Failed to init on/off server\n");
- #endif // GENERIC_ON_OFF_SERVER_INIT
- #if GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT
+ #endif // SL_BTMESH_GENERIC_ON_OFF_SERVER_INIT_CFG_VAL
+ #if SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_default_transition_time();
app_assert_status_f(sc, "Failed to init default transition time server\n");
- #endif // GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT
- #endif //GENERIC_POWER_ON_OFF_SERVER_INIT
-#endif // GENERIC_CTL_SERVER_INIT || GENERIC_HSL_SERVER_INIT || GENERIC_POWER_LEVEL_SERVER_INIT
-#if GENERIC_BATTERY_SERVER_INIT
+ #endif // SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_SERVER_INIT_CFG_VAL
+ #endif //SL_BTMESH_GENERIC_POWER_ON_OFF_SERVER_INIT_CFG_VAL
+#endif // SL_BTMESH_GENERIC_CTL_SERVER_INIT_CFG_VAL || SL_BTMESH_GENERIC_HSL_SERVER_INIT_CFG_VAL || SL_BTMESH_GENERIC_POWER_LEVEL_SERVER_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_BATTERY_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_battery();
app_assert_status_f(sc, "Failed to init battery server\n");
-#endif // GENERIC_BATTERY_SERVER_INIT
-#if GENERIC_LOCATION_SERVER_INIT
+#endif // SL_BTMESH_GENERIC_BATTERY_SERVER_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_LOCATION_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_location();
app_assert_status_f(sc, "Failed to init location server\n");
-#endif // GENERIC_LOCATION_SERVER_INIT
-#if GENERIC_PROPERTY_SERVER_INIT
+#endif // SL_BTMESH_GENERIC_LOCATION_SERVER_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_PROPERTY_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_property();
app_assert_status_f(sc, "Failed to init property server\n");
-#endif // GENERIC_PROPERTY_SERVER_INIT
+#endif // SL_BTMESH_GENERIC_PROPERTY_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_server_init_common();
app_assert_status_f(sc, "Failed to common init Generic Server\n");
-#endif // GENERIC_BASE_SERVER
+#endif // SL_BTMESH_GENERIC_BASE_SERVER_CFG_VAL
-#if GENERIC_BASE_CLIENT || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT) \
+#if SL_BTMESH_GENERIC_BASE_CLIENT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT) \
|| defined(SL_CATALOG_BTMESH_CTL_CLIENT_PRESENT)
-#if GENERIC_ON_OFF_CLIENT_INIT || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
+#if SL_BTMESH_GENERIC_ON_OFF_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
sc = sl_btmesh_generic_client_init_on_off();
app_assert_status_f(sc, "Failed to init on/off client\n");
-#endif // GENERIC_ON_OFF_CLIENT_INIT || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
-#if GENERIC_LEVEL_SERVER_INIT
+#endif // SL_BTMESH_GENERIC_ON_OFF_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
+#if SL_BTMESH_GENERIC_LEVEL_SERVER_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_level();
app_assert_status_f(sc, "Failed to init level client\n");
-#endif // GENERIC_LEVEL_SERVER_INIT
-#if GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_LEVEL_SERVER_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_default_transition_time();
app_assert_status_f(sc, "Failed to init default transition time client\n");
-#endif // GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT
-#if GENERIC_POWER_ON_OFF_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_DEFAULT_TRANSITION_TIME_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_POWER_ON_OFF_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_power_on_off();
app_assert_status_f(sc, "Failed to init power on/off client\n");
-#endif // GENERIC_POWER_ON_OFF_CLIENT_INIT
-#if GENERIC_POWER_LEVEL_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_POWER_ON_OFF_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_POWER_LEVEL_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_power_level();
app_assert_status_f(sc, "Failed to init power level client\n");
-#endif // GENERIC_POWER_LEVEL_CLIENT_INIT
-#if GENERIC_BATTERY_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_POWER_LEVEL_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_BATTERY_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_battery();
app_assert_status_f(sc, "Failed to init battery client\n");
-#endif // GENERIC_BATTERY_CLIENT_INIT
-#if GENERIC_LOCATION_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_BATTERY_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_LOCATION_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_location();
app_assert_status_f(sc, "Failed to init location client\n");
-#endif // GENERIC_LOCATION_CLIENT_INIT
-#if GENERIC_PROPERTY_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_LOCATION_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_PROPERTY_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_property();
app_assert_status_f(sc, "Failed to init property client\n");
-#endif // GENERIC_PROPERTY_CLIENT_INIT
-#if GENERIC_LIGHTNESS_CLIENT_INIT || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
+#endif // SL_BTMESH_GENERIC_PROPERTY_CLIENT_INIT_CFG_VAL
+#if SL_BTMESH_GENERIC_LIGHTNESS_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
sc = sl_btmesh_generic_client_init_lightness();
app_assert_status_f(sc, "Failed to init lightness client\n");
-#endif // GENERIC_LIGHTNESS_CLIENT_INIT || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
-#if GENERIC_CTL_CLIENT_INIT || defined(SL_CATALOG_BTMESH_CTL_CLIENT_PRESENT)
+#endif // SL_BTMESH_GENERIC_LIGHTNESS_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_CLIENT_PRESENT)
+#if SL_BTMESH_GENERIC_CTL_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_CTL_CLIENT_PRESENT)
sc = sl_btmesh_generic_client_init_ctl();
app_assert_status_f(sc, "Failed to init ctl client\n");
-#endif // GENERIC_CTL_CLIENT_INIT || defined(SL_CATALOG_BTMESH_CTL_CLIENT_PRESENT)
-#if GENERIC_HSL_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_CTL_CLIENT_INIT_CFG_VAL || defined(SL_CATALOG_BTMESH_CTL_CLIENT_PRESENT)
+#if SL_BTMESH_GENERIC_HSL_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_hsl();
app_assert_status_f(sc, "Failed to init hsl client\n");
-#endif // GENERIC_HSL_CLIENT_INIT
+#endif // SL_BTMESH_GENERIC_HSL_CLIENT_INIT_CFG_VAL
sc = sl_btmesh_generic_client_init_common();
app_assert_status_f(sc, "Failed to common init Generic Client\n");
-#endif // GENERIC_BASE_CLIENT
+#endif // SL_BTMESH_GENERIC_BASE_CLIENT_CFG_VAL
break;
-#if GENERIC_BASE_SERVER || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT)
+#if SL_BTMESH_GENERIC_BASE_SERVER_CFG_VAL || defined(SL_CATALOG_BTMESH_LIGHTING_SERVER_PRESENT)
case sl_btmesh_evt_generic_server_client_request_id:
// intentional fall through
case sl_btmesh_evt_generic_server_state_recall_id:
@@ -173,11 +173,11 @@ void sl_btmesh_generic_base_on_event(sl_btmesh_msg_t *evt)
case sl_btmesh_evt_generic_server_state_changed_id:
mesh_lib_generic_server_event_handler(evt);
break;
-#endif // GENERIC_BASE_SERVER
-#if GENERIC_BASE_CLIENT
+#endif // SL_BTMESH_GENERIC_BASE_SERVER_CFG_VAL
+#if SL_BTMESH_GENERIC_BASE_CLIENT_CFG_VAL
case sl_btmesh_evt_generic_client_server_status_id:
mesh_lib_generic_client_event_handler(evt);
break;
-#endif // GENERIC_BASE_CLIENT
+#endif // SL_BTMESH_GENERIC_BASE_CLIENT_CFG_VAL
}
}
diff --git a/app/bluetooth/common/btmesh_hsl_server/config/sl_btmesh_hsl_server_config.h b/app/bluetooth/common/btmesh_hsl_server/config/sl_btmesh_hsl_server_config.h
index 557bdc4ca95..0c48f90979d 100644
--- a/app/bluetooth/common/btmesh_hsl_server/config/sl_btmesh_hsl_server_config.h
+++ b/app/bluetooth/common/btmesh_hsl_server/config/sl_btmesh_hsl_server_config.h
@@ -5,70 +5,70 @@
// HSL Server configuration
-// Timeout [ms] for saving States of the model to NVM.
+// Timeout [ms] for saving States of the model to NVM.
// Default: 5000
// Timeout [ms] for saving States of the model to NVM.
-#define HSL_SERVER_NVM_SAVE_TIME (5000)
+#define SL_BTMESH_HSL_SERVER_NVM_SAVE_TIME_CFG_VAL (5000)
-// PS Key for NVM Page where the States of the HSL Models are saved.
+// PS Key for NVM Page where the States of the HSL Models are saved.
// Default: 0x4008
// PS Key for NVM Page where the States of the HSL Models are saved.
-#define HSL_SERVER_PS_KEY (0x4008)
+#define SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL (0x4008)
-// Periodicity [ms] for updating the hue during a transition.
+// Periodicity [ms] for updating the hue during a transition.
// Default: 1
// Periodicity [ms] for updating the hue during a transition.
-#define HSL_SERVER_HUE_UPDATE_PERIOD (1)
+#define SL_BTMESH_HSL_SERVER_HUE_UPDATE_PERIOD_CFG_VAL (1)
-// Periodicity [ms] for updating the saturation during a transition.
+// Periodicity [ms] for updating the saturation during a transition.
// Default: 1
// Periodicity [ms] for updating the saturation during a transition.
-#define HSL_SERVER_SATURATION_UPDATE_PERIOD (1)
+#define SL_BTMESH_HSL_SERVER_SATURATION_UPDATE_PERIOD_CFG_VAL (1)
-// Periodicity [ms] for updating the UI with hue during a transition.
+// Periodicity [ms] for updating the UI with hue during a transition.
// Default: 100
// Periodicity [ms] for updating the hue values on the UI.
-#define HSL_SERVER_HUE_UI_UPDATE_PERIOD (100)
+#define SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL (100)
-// Periodicity [ms] for updating the UI with saturation during a transition.
+// Periodicity [ms] for updating the UI with saturation during a transition.
// Default: 100
// Periodicity [ms] for updating the saturation values on the UI.
-#define HSL_SERVER_SATURATION_UI_UPDATE_PERIOD (100)
+#define SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL (100)
-// Default Hue
+// Default Hue
// Default: 0
// Default Hue value.
-#define HSL_SERVER_DEFAULT_HUE (0)
+#define SL_BTMESH_HSL_SERVER_DEFAULT_HUE_CFG_VAL (0)
-// Default Saturation
+// Default Saturation
// Default: 0
// Default Saturation.
-#define HSL_SERVER_DEFAULT_SATURATION (0)
+#define SL_BTMESH_HSL_SERVER_DEFAULT_SATURATION_CFG_VAL (0)
-// Minimum Hue
+// Minimum Hue
// Default: 0
// Minimum Hue.
-#define HSL_SERVER_MINIMUM_HUE (0)
+#define SL_BTMESH_HSL_SERVER_MINIMUM_HUE_CFG_VAL (0)
-// Maximum Hue
+// Maximum Hue
// Default: 65535
// Maximum Hue.
-#define HSL_SERVER_MAXIMUM_HUE (65535)
+#define SL_BTMESH_HSL_SERVER_MAXIMUM_HUE_CFG_VAL (65535)
-// Minimum Saturation
+// Minimum Saturation
// Default: 0
// Minimum Saturation.
-#define HSL_SERVER_MINIMUM_SATURATION (0)
+#define SL_BTMESH_HSL_SERVER_MINIMUM_SATURATION_CFG_VAL (0)
-// Maximum Saturation
+// Maximum Saturation
// Default: 65535
// Maximum Saturation.
-#define HSL_SERVER_MAXIMUM_SATURATION (65535)
+#define SL_BTMESH_HSL_SERVER_MAXIMUM_SATURATION_CFG_VAL (65535)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable UART Logging for HSL Server models specific messages for this component.
-#define HSL_SERVER_LOGGING (1)
+#define SL_BTMESH_HSL_SERVER_LOGGING_CFG_VAL (1)
//
@@ -77,13 +77,13 @@
// <<< end of configuration section >>>
// The hue update period shall not be greater than the hue UI update period
-#if (HSL_SERVER_HUE_UI_UPDATE_PERIOD) < (HSL_SERVER_HUE_UPDATE_PERIOD)
-#error "The HSL_SERVER_HUE_UPDATE_PERIOD shall be less than HSL_SERVER_HUE_UI_UPDATE_PERIOD."
+#if (SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL) < (SL_BTMESH_HSL_SERVER_HUE_UPDATE_PERIOD_CFG_VAL)
+#error "The SL_BTMESH_HSL_SERVER_HUE_UPDATE_PERIOD_CFG_VAL shall be less than SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL."
#endif
// The saturation update period shall not be greater than the saturation UI update period
-#if (HSL_SERVER_SATURATION_UI_UPDATE_PERIOD) < (HSL_SERVER_SATURATION_UPDATE_PERIOD)
-#error "The HSL_SERVER_SATURATION_UPDATE_PERIOD shall be less than HSL_SERVER_SATURATION_UI_UPDATE_PERIOD."
+#if (SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL) < (SL_BTMESH_HSL_SERVER_SATURATION_UPDATE_PERIOD_CFG_VAL)
+#error "The SL_BTMESH_HSL_SERVER_SATURATION_UPDATE_PERIOD_CFG_VAL shall be less than SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL."
#endif
#endif // SL_BTMESH_HSL_SERVER_CONFIG_H
diff --git a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_server.c b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_server.c
index 4c04ae941dd..edd7fef54fb 100644
--- a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_server.c
+++ b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_server.c
@@ -169,7 +169,7 @@ static void hsl_state_store_timer_cb(sl_simple_timer_t *handle,
/***************************************************************************//**
* This function loads the saved light state from Persistent Storage and
* copies the data in the global variable lightbulb_state.
- * If PS key with ID HSL_SERVER_PS_KEY does not exist or loading failed,
+ * If PS key with ID SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL does not exist or loading failed,
* lightbulb_state is set to zero and some default values are written to it.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
@@ -2769,7 +2769,7 @@ static void init_hsl_models(void)
/***************************************************************************//**
* This function loads the saved light state from Persistent Storage and
* copies the data in the global variable lightbulb_state.
- * If PS key with ID HSL_SERVER_PS_KEY does not exist or loading failed,
+ * If PS key with ID SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL does not exist or loading failed,
* lightbulb_state is set to zero and some default values are written to it.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
@@ -2780,7 +2780,7 @@ static sl_status_t lightbulb_state_load(void)
size_t ps_len = 0;
struct lightbulb_state ps_data;
- sc = sl_bt_nvm_load(HSL_SERVER_PS_KEY,
+ sc = sl_bt_nvm_load(SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL,
sizeof(ps_data),
&ps_len,
(uint8_t *)&ps_data);
@@ -2788,12 +2788,12 @@ static sl_status_t lightbulb_state_load(void)
// Set default values if ps_load fail or size of lightbulb_state has changed
if ((sc != SL_STATUS_OK) || (ps_len != sizeof(struct lightbulb_state))) {
memset(&lightbulb_state, 0, sizeof(struct lightbulb_state));
- lightbulb_state.hue_default = HSL_SERVER_DEFAULT_HUE;
- lightbulb_state.hue_min = HSL_SERVER_MINIMUM_HUE;
- lightbulb_state.hue_max = HSL_SERVER_MAXIMUM_HUE;
- lightbulb_state.saturation_default = HSL_SERVER_DEFAULT_SATURATION;
- lightbulb_state.saturation_min = HSL_SERVER_MINIMUM_SATURATION;
- lightbulb_state.saturation_max = HSL_SERVER_MAXIMUM_SATURATION;
+ lightbulb_state.hue_default = SL_BTMESH_HSL_SERVER_DEFAULT_HUE_CFG_VAL;
+ lightbulb_state.hue_min = SL_BTMESH_HSL_SERVER_MINIMUM_HUE_CFG_VAL;
+ lightbulb_state.hue_max = SL_BTMESH_HSL_SERVER_MAXIMUM_HUE_CFG_VAL;
+ lightbulb_state.saturation_default = SL_BTMESH_HSL_SERVER_DEFAULT_SATURATION_CFG_VAL;
+ lightbulb_state.saturation_min = SL_BTMESH_HSL_SERVER_MINIMUM_SATURATION_CFG_VAL;
+ lightbulb_state.saturation_max = SL_BTMESH_HSL_SERVER_MAXIMUM_SATURATION_CFG_VAL;
// Check if default values are valid and correct them if needed
lightbulb_state_validate_and_correct();
@@ -2822,7 +2822,7 @@ static sl_status_t lightbulb_state_load(void)
* This function saves the current light state in Persistent Storage so that
* the data is preserved over reboots and power cycles.
* The light state is hold in a global variable lightbulb_state.
- * A PS key with ID HSL_SERVER_PS_KEY is used to store the whole struct.
+ * A PS key with ID SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL is used to store the whole struct.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
******************************************************************************/
@@ -2830,7 +2830,7 @@ static sl_status_t lightbulb_state_store(void)
{
sl_status_t sc;
- sc = sl_bt_nvm_save(HSL_SERVER_PS_KEY,
+ sc = sl_bt_nvm_save(SL_BTMESH_HSL_SERVER_PS_KEY_CFG_VAL,
sizeof(struct lightbulb_state),
(const uint8_t *)&lightbulb_state);
@@ -2849,7 +2849,7 @@ static sl_status_t lightbulb_state_store(void)
static void lightbulb_state_changed(void)
{
sl_status_t sc = sl_simple_timer_start(&hsl_state_store_timer,
- HSL_SERVER_NVM_SAVE_TIME,
+ SL_BTMESH_HSL_SERVER_NVM_SAVE_TIME_CFG_VAL,
hsl_state_store_timer_cb,
NO_CALLBACK_DATA,
false);
diff --git a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.c b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.c
index 9d12c92c45c..08ceabd86c7 100644
--- a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.c
+++ b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.c
@@ -44,14 +44,14 @@
#define HIGH_PRIORITY 0 // High Priority
/// current hue level
-static uint16_t current_hue = HSL_SERVER_DEFAULT_HUE;
+static uint16_t current_hue = SL_BTMESH_HSL_SERVER_DEFAULT_HUE_CFG_VAL;
/// starting level of hue transition
static uint16_t start_hue;
/// target level of hue transition
static uint16_t target_hue;
/// current saturation level
-static uint16_t current_saturation = HSL_SERVER_DEFAULT_SATURATION;
+static uint16_t current_saturation = SL_BTMESH_HSL_SERVER_DEFAULT_SATURATION_CFG_VAL;
/// starting level of saturation transition
static uint16_t start_saturation;
/// target level of saturation transition
@@ -111,7 +111,7 @@ static void hue_transition_timer_cb(sl_simple_timer_t *timer, void *data)
(void)timer;
// Initialize the variable to UI update period in order to trigger a UI update
// at the beginning of the transition.
- static uint16_t time_elapsed_since_ui_update = HSL_SERVER_HUE_UI_UPDATE_PERIOD;
+ static uint16_t time_elapsed_since_ui_update = SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL;
if (!hue_transitioning) {
sl_status_t sc = sl_simple_timer_stop(&hue_transition_timer);
@@ -127,7 +127,7 @@ static void hue_transition_timer_cb(sl_simple_timer_t *timer, void *data)
// Set the variable to UI update period in order to trigger a UI update
// at the beginning of the next transition.
- time_elapsed_since_ui_update = HSL_SERVER_HUE_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update = SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL;
// Trigger a UI update in order to provide the target values at the end
// of the current transition
@@ -147,12 +147,12 @@ static void hue_transition_timer_cb(sl_simple_timer_t *timer, void *data)
}
// When transition is ongoing generate an event to application once every
- // HSL_SERVER_HUE_UI_UPDATE_PERIOD ms because the event is used to update
+ // SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL ms because the event is used to update
// display status and therefore the rate should not be too high
- time_elapsed_since_ui_update += HSL_SERVER_HUE_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update += SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL;
- if (HSL_SERVER_HUE_UI_UPDATE_PERIOD <= time_elapsed_since_ui_update) {
- time_elapsed_since_ui_update -= HSL_SERVER_HUE_UI_UPDATE_PERIOD;
+ if (SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL <= time_elapsed_since_ui_update) {
+ time_elapsed_since_ui_update -= SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL;
sl_btmesh_hsl_hue_on_ui_update(current_hue);
}
}
@@ -170,7 +170,7 @@ static void saturation_transition_timer_cb(sl_simple_timer_t *timer, void *data)
(void)timer;
// Initialize the variable to UI update period in order to trigger a UI update
// at the beginning of the transition.
- static uint16_t time_elapsed_since_ui_update = HSL_SERVER_SATURATION_UI_UPDATE_PERIOD;
+ static uint16_t time_elapsed_since_ui_update = SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL;
if (!saturation_transitioning) {
sl_status_t sc = sl_simple_timer_stop(&saturation_transition_timer);
@@ -186,7 +186,7 @@ static void saturation_transition_timer_cb(sl_simple_timer_t *timer, void *data)
// Set the variable to UI update period in order to trigger a UI update
// at the beginning of the next transition.
- time_elapsed_since_ui_update = HSL_SERVER_SATURATION_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update = SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL;
// Trigger a UI update in order to provide the target values at the end
// of the current transition
@@ -206,12 +206,12 @@ static void saturation_transition_timer_cb(sl_simple_timer_t *timer, void *data)
}
// When transition is ongoing generate an event to application once every
- // HSL_SERVER_SATURATION_UI_UPDATE_PERIOD ms because the event is used to update
+ // SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL ms because the event is used to update
// display status and therefore the rate should not be too high
- time_elapsed_since_ui_update += HSL_SERVER_SATURATION_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update += SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL;
- if (HSL_SERVER_SATURATION_UI_UPDATE_PERIOD <= time_elapsed_since_ui_update) {
- time_elapsed_since_ui_update -= HSL_SERVER_SATURATION_UI_UPDATE_PERIOD;
+ if (SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL <= time_elapsed_since_ui_update) {
+ time_elapsed_since_ui_update -= SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL;
sl_btmesh_hsl_saturation_on_ui_update(current_saturation);
}
}
@@ -228,15 +228,15 @@ static void saturation_transition_timer_cb(sl_simple_timer_t *timer, void *data)
******************************************************************************/
void sl_btmesh_hsl_set_hue_level(uint16_t hue, uint32_t transition_ms)
{
-#if HSL_SERVER_MINIMUM_HUE != (0)
- if (hue < HSL_SERVER_MINIMUM_HUE) {
- hue = HSL_SERVER_MINIMUM_HUE;
+#if SL_BTMESH_HSL_SERVER_MINIMUM_HUE_CFG_VAL != (0)
+ if (hue < SL_BTMESH_HSL_SERVER_MINIMUM_HUE_CFG_VAL) {
+ hue = SL_BTMESH_HSL_SERVER_MINIMUM_HUE_CFG_VAL;
}
#endif
-#if HSL_SERVER_MAXIMUM_HUE != (65535)
- if (hue > HSL_SERVER_MAXIMUM_HUE) {
- hue = HSL_SERVER_MAXIMUM_HUE;
+#if SL_BTMESH_HSL_SERVER_MAXIMUM_HUE_CFG_VAL != (65535)
+ if (hue > SL_BTMESH_HSL_SERVER_MAXIMUM_HUE_CFG_VAL) {
+ hue = SL_BTMESH_HSL_SERVER_MAXIMUM_HUE_CFG_VAL;
}
#endif
@@ -266,7 +266,7 @@ void sl_btmesh_hsl_set_hue_level(uint16_t hue, uint32_t transition_ms)
// enabling timer IRQ -> the temperature is adjusted in timer interrupt
// gradually until target temperature is reached.
sl_status_t sc = sl_simple_timer_start(&hue_transition_timer,
- HSL_SERVER_HUE_UPDATE_PERIOD,
+ SL_BTMESH_HSL_SERVER_HUE_UPDATE_PERIOD_CFG_VAL,
hue_transition_timer_cb,
NO_CALLBACK_DATA,
true);
@@ -283,15 +283,15 @@ void sl_btmesh_hsl_set_hue_level(uint16_t hue, uint32_t transition_ms)
******************************************************************************/
void sl_btmesh_hsl_set_saturation_level(uint16_t saturation, uint32_t transition_ms)
{
-#if HSL_SERVER_MINIMUM_SATURATION != (0)
- if (saturation < HSL_SERVER_MINIMUM_SATURATION) {
- saturation = HSL_SERVER_MINIMUM_SATURATION;
+#if SL_BTMESH_HSL_SERVER_MINIMUM_SATURATION_CFG_VAL != (0)
+ if (saturation < SL_BTMESH_HSL_SERVER_MINIMUM_SATURATION_CFG_VAL) {
+ saturation = SL_BTMESH_HSL_SERVER_MINIMUM_SATURATION_CFG_VAL;
}
#endif
-#if HSL_SERVER_MAXIMUM_SATURATION != (65535)
- if (saturation > HSL_SERVER_MAXIMUM_SATURATION) {
- saturation = HSL_SERVER_MAXIMUM_SATURATION;
+#if SL_BTMESH_HSL_SERVER_MAXIMUM_SATURATION_CFG_VAL != (65535)
+ if (saturation > SL_BTMESH_HSL_SERVER_MAXIMUM_SATURATION_CFG_VAL) {
+ saturation = SL_BTMESH_HSL_SERVER_MAXIMUM_SATURATION_CFG_VAL;
}
#endif
@@ -321,7 +321,7 @@ void sl_btmesh_hsl_set_saturation_level(uint16_t saturation, uint32_t transition
// enabling timer IRQ -> the temperature is adjusted in timer interrupt
// gradually until target temperature is reached.
sl_status_t sc = sl_simple_timer_start(&saturation_transition_timer,
- HSL_SERVER_SATURATION_UPDATE_PERIOD,
+ SL_BTMESH_HSL_SERVER_SATURATION_UPDATE_PERIOD_CFG_VAL,
saturation_transition_timer_cb,
NO_CALLBACK_DATA,
true);
diff --git a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.h b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.h
index 577035f6469..6d1073032d2 100644
--- a/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.h
+++ b/app/bluetooth/common/btmesh_hsl_server/sl_btmesh_hsl_signal_transition_handler.h
@@ -66,7 +66,7 @@ void sl_btmesh_hsl_saturation_cb(uint16_t saturation);
/***************************************************************************//**
* Called when the UI shall be updated with the changed HSL Model state during
* a transition. The rate of this callback can be controlled by changing the
- * HSL_SERVER_HUE_UI_UPDATE_PERIOD macro.
+ * SL_BTMESH_HSL_SERVER_HUE_UI_UPDATE_PERIOD_CFG_VAL macro.
*
* This is a callback which can be implemented in the application.
* @note If no implementation is provided in the application then a default weak
@@ -79,7 +79,7 @@ void sl_btmesh_hsl_hue_on_ui_update(uint16_t hue);
/***************************************************************************//**
* Called when the UI shall be updated with the changed HSL Model state during
* a transition. The rate of this callback can be controlled by changing the
- * HSL_SERVER_SATURATION_UI_UPDATE_PERIOD macro.
+ * SL_BTMESH_HSL_SERVER_SATURATION_UI_UPDATE_PERIOD_CFG_VAL macro.
*
* This is a callback which can be implemented in the application.
* @note If no implementation is provided in the application then a default weak
diff --git a/app/bluetooth/common/btmesh_lc_server/config/sl_btmesh_lc_server_config.h b/app/bluetooth/common/btmesh_lc_server/config/sl_btmesh_lc_server_config.h
index 159f921bfbb..1dca95c346c 100644
--- a/app/bluetooth/common/btmesh_lc_server/config/sl_btmesh_lc_server_config.h
+++ b/app/bluetooth/common/btmesh_lc_server/config/sl_btmesh_lc_server_config.h
@@ -34,95 +34,95 @@
// LC Server configuration
-// Timeout [ms] for saving States of the model to NVM.
+// Timeout [ms] for saving States of the model to NVM.
// Default: 5000
// Timeout [ms] for saving States of the model to NVM.
-#define LC_SERVER_NVM_SAVE_TIME (5000)
+#define SL_BTMESH_LC_SERVER_NVM_SAVE_TIME_CFG_VAL (5000)
-// PS Key for NVM Page where the States of the LC Model are saved.
+// PS Key for NVM Page where the States of the LC Model are saved.
// Default: 0x4006
// PS Key for NVM Page where the States of the LC Model are saved.
-#define LC_SERVER_PS_KEY (0x4006)
+#define SL_BTMESH_LC_SERVER_PS_KEY_CFG_VAL (0x4006)
-// PS Key for NVM Page where the Property State of the LC Model are saved.
+// PS Key for NVM Page where the Property State of the LC Model are saved.
// Default: 0x4007
// PS Key for NVM Page where the Property State of the LC Model are saved.
-#define LC_SERVER_PROPERTY_PS_KEY (0x4007)
+#define SL_BTMESH_LC_SERVER_PROPERTY_PS_KEY_CFG_VAL (0x4007)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for LC Server model specific messages for this component.
-#define LC_SERVER_LOGGING (1)
+#define SL_BTMESH_LC_SERVER_LOGGING_CFG_VAL (1)
//
//
-// Customize LC Property states' default values
-#define LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE 0
+// Customize LC Property states' default values
+#define SL_BTMESH_LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE_CFG_VAL 0
// Time
-// Occupancy Delay [ms] <0x000000-0xFFFFFF>
+// Occupancy Delay [ms] <0x000000-0xFFFFFF>
// Determines the delay for changing the LC Occupancy state upon receiving a Sensor Status message from an occupancy sensor.
// LC Occupancy is a binary state that represents occupancy reported by an occupancy sensor.
-#define LC_SERVER_TIME_OCCUPANCY_DELAY_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_OCCUPANCY_DELAY_DEFAULT_CFG_VAL 0
-// Fade On [ms] <0x000000-0xFFFFFF>
+// Fade On [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights fade to the level determined by the LC Lightness On state.
-#define LC_SERVER_TIME_FADE_ON_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_FADE_ON_DEFAULT_CFG_VAL 0
-// Run On [ms] <0x000000-0xFFFFFF>
+// Run On [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights stay at the level determined by the LC Lightness On state since the occupancy input stopped detecting active occupancy information.
-#define LC_SERVER_TIME_RUN_ON_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_RUN_ON_DEFAULT_CFG_VAL 0
-// Fade [ms] <0x000000-0xFFFFFF>
+// Fade [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights fade from the level determined by the LC Lightness On state to the level determined by the Lightness Prolong state.
-#define LC_SERVER_TIME_FADE_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_FADE_DEFAULT_CFG_VAL 0
-// Prolong [ms] <0x000000-0xFFFFFF>
+// Prolong [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights stay at the level determined by the LC Lightness Prolong state.
-#define LC_SERVER_TIME_PROLONG_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_PROLONG_DEFAULT_CFG_VAL 0
-// Fade Standby Auto [ms] <0x000000-0xFFFFFF>
+// Fade Standby Auto [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights fade from the level determined by the LC Lightness Prolong state to the level determined by the LC Lightness Standby state when the transition is automatic.
-#define LC_SERVER_TIME_FADE_STANDBY_AUTO_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_FADE_STANDBY_AUTO_DEFAULT_CFG_VAL 0
-// Fade Standby Manual [ms] <0x000000-0xFFFFFF>
+// Fade Standby Manual [ms] <0x000000-0xFFFFFF>
// Determines the time the controlled lights fade from the level determined by the LC Lightness Prolong state to the level determined by the LC Lightness Standby state when the transition is triggered by a change in the LC Light OnOff state.
-#define LC_SERVER_TIME_FADE_STANDBY_MANUAL_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_TIME_FADE_STANDBY_MANUAL_DEFAULT_CFG_VAL 0
//
// Lightness
-// On <0x0000-0xFFFF>
+// On <0x0000-0xFFFF>
// Determines the perceptive light lightness at the Occupancy and Run internal controller states.
-#define LC_SERVER_LIGHTNESS_ON_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_LIGHTNESS_ON_DEFAULT_CFG_VAL 0
-// Prolong <0x0000-0xFFFF>
+// Prolong <0x0000-0xFFFF>
// Determines the light lightness at the Prolong internal controller state.
-#define LC_SERVER_LIGHTNESS_PROLONG_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_LIGHTNESS_PROLONG_DEFAULT_CFG_VAL 0
-// Standby <0x0000-0xFFFF>
+// Standby <0x0000-0xFFFF>
// Determines the light lightness at the Standby internal controller state.
-#define LC_SERVER_LIGHTNESS_STANDBY_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_LIGHTNESS_STANDBY_DEFAULT_CFG_VAL 0
//
// Ambient
-// LuxLevel On [lux] <0x0000-0xFFFF>
+// LuxLevel On [lux] <0x0000-0xFFFF>
// Represents the level that determines if the controller transitions from the Light Control Standby state.
-#define LC_SERVER_AMBIENT_LUX_LEVEL_ON_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_ON_DEFAULT_CFG_VAL 0
-// LuxLevel Prolong [lux] <0x0000-0xFFFF>
+// LuxLevel Prolong [lux] <0x0000-0xFFFF>
// Represents the required level in the Prolong state.
-#define LC_SERVER_AMBIENT_LUX_LEVEL_PROLONG_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_PROLONG_DEFAULT_CFG_VAL 0
-// LuxLevel Standby [lux] <0x0000-0xFFFF>
+// LuxLevel Standby [lux] <0x0000-0xFFFF>
// Represents the required level in the Standby state.
-#define LC_SERVER_AMBIENT_LUX_LEVEL_STANDBY_DEFAULT 0
+#define SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_STANDBY_DEFAULT_CFG_VAL 0
//
diff --git a/app/bluetooth/common/btmesh_lc_server/sl_btmesh_lc_server.c b/app/bluetooth/common/btmesh_lc_server/sl_btmesh_lc_server.c
index 2feef4b4c54..e7c7e7adf81 100644
--- a/app/bluetooth/common/btmesh_lc_server/sl_btmesh_lc_server.c
+++ b/app/bluetooth/common/btmesh_lc_server/sl_btmesh_lc_server.c
@@ -237,7 +237,7 @@ static sl_status_t lc_state_load(void)
size_t ps_len = 0;
struct lc_state ps_data;
- sc = sl_bt_nvm_load(LC_SERVER_PS_KEY,
+ sc = sl_bt_nvm_load(SL_BTMESH_LC_SERVER_PS_KEY_CFG_VAL,
sizeof(ps_data),
&ps_len,
(uint8_t *)&ps_data);
@@ -278,7 +278,7 @@ static sl_status_t lc_state_load(void)
******************************************************************************/
static int lc_state_store(void)
{
- sl_status_t sc = sl_bt_nvm_save(LC_SERVER_PS_KEY,
+ sl_status_t sc = sl_bt_nvm_save(SL_BTMESH_LC_SERVER_PS_KEY_CFG_VAL,
sizeof(struct lc_state),
(const uint8_t *)&lc_state);
@@ -297,7 +297,7 @@ static int lc_state_store(void)
static void lc_state_changed(void)
{
sl_status_t sc = sl_simple_timer_start(&lc_save_state_timer,
- LC_SERVER_NVM_SAVE_TIME,
+ SL_BTMESH_LC_SERVER_NVM_SAVE_TIME_CFG_VAL,
lc_save_state_timer_cb,
NO_CALLBACK_DATA,
false);
@@ -393,7 +393,7 @@ static sl_status_t lc_property_state_load(void)
size_t ps_len = 0;
struct lc_property_state ps_data;
- sc = sl_bt_nvm_load(LC_SERVER_PROPERTY_PS_KEY,
+ sc = sl_bt_nvm_load(SL_BTMESH_LC_SERVER_PROPERTY_PS_KEY_CFG_VAL,
sizeof(ps_data),
&ps_len,
(uint8_t *)&ps_data);
@@ -401,27 +401,27 @@ static sl_status_t lc_property_state_load(void)
// Set default values if ps_load fail or size of lc_property_state has changed
if ((sc != SL_STATUS_OK) || (ps_len != sizeof(lc_property_state))) {
memset(&lc_property_state, 0, sizeof(lc_property_state));
-#if LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE
+#if SL_BTMESH_LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE_CFG_VAL
lc_property_state.time_occupancy_delay =
- LC_SERVER_TIME_OCCUPANCY_DELAY_DEFAULT;
- lc_property_state.time_fade_on = LC_SERVER_TIME_FADE_ON_DEFAULT;
- lc_property_state.time_run_on = LC_SERVER_TIME_RUN_ON_DEFAULT;
- lc_property_state.time_fade = LC_SERVER_TIME_FADE_DEFAULT;
- lc_property_state.time_prolong = LC_SERVER_TIME_PROLONG_DEFAULT;
+ SL_BTMESH_LC_SERVER_TIME_OCCUPANCY_DELAY_DEFAULT_CFG_VAL;
+ lc_property_state.time_fade_on = SL_BTMESH_LC_SERVER_TIME_FADE_ON_DEFAULT_CFG_VAL;
+ lc_property_state.time_run_on = SL_BTMESH_LC_SERVER_TIME_RUN_ON_DEFAULT_CFG_VAL;
+ lc_property_state.time_fade = SL_BTMESH_LC_SERVER_TIME_FADE_DEFAULT_CFG_VAL;
+ lc_property_state.time_prolong = SL_BTMESH_LC_SERVER_TIME_PROLONG_DEFAULT_CFG_VAL;
lc_property_state.time_fade_standby_auto =
- LC_SERVER_TIME_FADE_STANDBY_AUTO_DEFAULT;
+ SL_BTMESH_LC_SERVER_TIME_FADE_STANDBY_AUTO_DEFAULT_CFG_VAL;
lc_property_state.time_fade_standby_manual =
- LC_SERVER_TIME_FADE_STANDBY_MANUAL_DEFAULT;
- lc_property_state.lightness_on = LC_SERVER_LIGHTNESS_ON_DEFAULT;
- lc_property_state.lightness_prolong = LC_SERVER_LIGHTNESS_PROLONG_DEFAULT;
- lc_property_state.lightness_standby = LC_SERVER_LIGHTNESS_STANDBY_DEFAULT;
+ SL_BTMESH_LC_SERVER_TIME_FADE_STANDBY_MANUAL_DEFAULT_CFG_VAL;
+ lc_property_state.lightness_on = SL_BTMESH_LC_SERVER_LIGHTNESS_ON_DEFAULT_CFG_VAL;
+ lc_property_state.lightness_prolong = SL_BTMESH_LC_SERVER_LIGHTNESS_PROLONG_DEFAULT_CFG_VAL;
+ lc_property_state.lightness_standby = SL_BTMESH_LC_SERVER_LIGHTNESS_STANDBY_DEFAULT_CFG_VAL;
lc_property_state.ambient_luxlevel_on =
- LC_SERVER_AMBIENT_LUX_LEVEL_ON_DEFAULT;
+ SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_ON_DEFAULT_CFG_VAL;
lc_property_state.ambient_luxlevel_prolong =
- LC_SERVER_AMBIENT_LUX_LEVEL_PROLONG_DEFAULT;
+ SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_PROLONG_DEFAULT_CFG_VAL;
lc_property_state.ambient_luxlevel_standby =
- LC_SERVER_AMBIENT_LUX_LEVEL_STANDBY_DEFAULT;
-#endif // LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE
+ SL_BTMESH_LC_SERVER_AMBIENT_LUX_LEVEL_STANDBY_DEFAULT_CFG_VAL;
+#endif // SL_BTMESH_LC_SERVER_PROPERTY_STATE_DEFAULT_ENABLE_CFG_VAL
lc_property_state.regulator_kiu = LC_REGULATOR_KIU_DEFAULT;
lc_property_state.regulator_kid = LC_REGULATOR_KID_DEFAULT;
lc_property_state.regulator_kpu = LC_REGULATOR_KPU_DEFAULT;
@@ -461,7 +461,7 @@ static int lc_property_state_store(void)
{
sl_status_t sc;
- sc = sl_bt_nvm_save(LC_SERVER_PROPERTY_PS_KEY,
+ sc = sl_bt_nvm_save(SL_BTMESH_LC_SERVER_PROPERTY_PS_KEY_CFG_VAL,
sizeof(struct lc_property_state),
(const uint8_t *)&lc_property_state);
@@ -480,7 +480,7 @@ static int lc_property_state_store(void)
static void lc_property_state_changed(void)
{
sl_status_t sc = sl_simple_timer_start(&lc_save_property_state_timer,
- LC_SERVER_NVM_SAVE_TIME,
+ SL_BTMESH_LC_SERVER_NVM_SAVE_TIME_CFG_VAL,
lc_save_property_state_timer_cb,
NO_CALLBACK_DATA,
false);
@@ -1166,8 +1166,8 @@ void sl_btmesh_lc_server_on_event(sl_btmesh_msg_t *evt)
break;
case sl_btmesh_evt_node_reset_id:
- sl_bt_nvm_erase(LC_SERVER_PS_KEY);
- sl_bt_nvm_erase(LC_SERVER_PROPERTY_PS_KEY);
+ sl_bt_nvm_erase(SL_BTMESH_LC_SERVER_PS_KEY_CFG_VAL);
+ sl_bt_nvm_erase(SL_BTMESH_LC_SERVER_PROPERTY_PS_KEY_CFG_VAL);
break;
default:
diff --git a/app/bluetooth/common/btmesh_lighting_client/config/sl_btmesh_lighting_client_config.h b/app/bluetooth/common/btmesh_lighting_client/config/sl_btmesh_lighting_client_config.h
index 909b6a75436..6a3b013f8c8 100644
--- a/app/bluetooth/common/btmesh_lighting_client/config/sl_btmesh_lighting_client_config.h
+++ b/app/bluetooth/common/btmesh_lighting_client/config/sl_btmesh_lighting_client_config.h
@@ -34,63 +34,63 @@
// Light Lightness Client configuration
-// Lighting model restransmission count
+// Lighting model restransmission count
// Default: 3
// Lighting model restransmission count (How many times Lighting model messages are to be sent out for reliability).
-#define LIGHT_RETRANSMISSION_COUNT (3)
+#define SL_BTMESH_LIGHT_RETRANSMISSION_COUNT_CFG_VAL (3)
-// Lighting model restransmission timeout
+// Lighting model restransmission timeout
// Default: 50
// Lighting model restransmission timeout.
-#define LIGHT_RETRANSMISSION_TIMEOUT (50)
+#define SL_BTMESH_LIGHT_RETRANSMISSION_TIMEOUT_CFG_VAL (50)
-// ONOFF model restransmission count
+// ONOFF model restransmission count
// Default: 3
// ONOFF model restransmission count (How many times ONOFF model messages are to be sent out for reliability).
-#define ONOFF_RETRANSMISSION_COUNT (3)
+#define SL_BTMESH_ONOFF_RETRANSMISSION_COUNT_CFG_VAL (3)
-// ONOFF model restransmission timeout
+// ONOFF model restransmission timeout
// Default: 50
// ONOFF model restransmission timeout.
-#define ONOFF_RETRANSMISSION_TIMEOUT (50)
+#define SL_BTMESH_ONOFF_RETRANSMISSION_TIMEOUT_CFG_VAL (50)
-// Enable lightness value wraparound
+// Enable lightness value wraparound
// Default: 0
// If the lightness reaches the max or min value then it wraps around.
-#define LIGHT_LIGHTNESS_WRAP_ENABLED (0)
+#define SL_BTMESH_LIGHT_LIGHTNESS_WRAP_ENABLED_CFG_VAL (0)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Lighting Client model specific messages for this component.
-#define LIGHTING_CLIENT_LOGGING (1)
+#define SL_BTMESH_LIGHTING_CLIENT_LOGGING_CFG_VAL (1)
-// Light should been switched on.
+// Light should been switched on.
// Set Log text when Light should been switched on
-#define ONOFF_LIGHTING_LOGGING_ON "Turn light(s) on\r\n"
+#define SL_BTMESH_ONOFF_LIGHTING_LOGGING_ON_CFG_VAL "Turn light(s) on\r\n"
-// Light should been switched off.
+// Light should been switched off.
// Set Log text when Light should been switched off
-#define ONOFF_LIGHTING_LOGGING_OFF "Turn light(s) off\r\n"
+#define SL_BTMESH_ONOFF_LIGHTING_LOGGING_OFF_CFG_VAL "Turn light(s) off\r\n"
-// Log text when new lightness has been set.
+// Log text when new lightness has been set.
// Set Log text when new lightness has been set
-#define LIGHTING_LOGGING_NEW_LIGHTNESS_SET "Set lightness to %u %% / level %u K\r\n"
+#define SL_BTMESH_LIGHTING_LOGGING_NEW_LIGHTNESS_SET_CFG_VAL "Set lightness to %u %% / level %u K\r\n"
-// Log text when sending a lightness message fails.
+// Log text when sending a lightness message fails.
// Set Log text in case sending a lightness message fails
-#define LIGHTING_LOGGING_CLIENT_PUBLISH_FAIL "Lightness Client Publish failed\r\n"
+#define SL_BTMESH_LIGHTING_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL "Lightness Client Publish failed\r\n"
-// Log text when sending a Lightness Model Message is successful.
+// Log text when sending a Lightness Model Message is successful.
// Set Log text for sending a Lightness Model Message successfuly.
-#define LIGHTING_LOGGING_CLIENT_PUBLISH_SUCCESS "Lightness request sent, trid = %u, delay = %u\r\n"
+#define SL_BTMESH_LIGHTING_LOGGING_CLIENT_PUBLISH_SUCCESS_CFG_VAL "Lightness request sent, trid = %u, delay = %u\r\n"
-// Log text when sending a On/Off Model message fails.
+// Log text when sending a On/Off Model message fails.
// Set Log text in case sending a On/Off Model message fails
-#define LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_FAIL "On/Off Client Publish failed\r\n"
+#define SL_BTMESH_LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL "On/Off Client Publish failed\r\n"
-// Log text when sending a On/Off Model Message is successful.
+// Log text when sending a On/Off Model Message is successful.
// Set Log text for successfully sending an On/Off Model Message.
-#define LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_SUCCESS "CTL On/off request sent, trid = %u, delay = %u\r\n"
+#define SL_BTMESH_LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_SUCCESS_CFG_VAL "CTL On/off request sent, trid = %u, delay = %u\r\n"
//
diff --git a/app/bluetooth/common/btmesh_lighting_client/sl_btmesh_lighting_client.c b/app/bluetooth/common/btmesh_lighting_client/sl_btmesh_lighting_client.c
index 73aedf4c18a..de779645d17 100644
--- a/app/bluetooth/common/btmesh_lighting_client/sl_btmesh_lighting_client.c
+++ b/app/bluetooth/common/btmesh_lighting_client/sl_btmesh_lighting_client.c
@@ -152,9 +152,9 @@ static void send_onoff_request(uint8_t retrans)
);
if (sc == SL_STATUS_OK) {
- log_info(LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_SUCCESS, onoff_trid, delay);
+ log_info(SL_BTMESH_LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_SUCCESS_CFG_VAL, onoff_trid, delay);
} else {
- log_btmesh_status_f(sc, LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_FAIL);
+ log_btmesh_status_f(sc, SL_BTMESH_LIGHTING_ONOFF_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL);
}
// Keep track of how many requests has been sent
@@ -204,11 +204,11 @@ static void send_lightness_request(uint8_t retrans)
);
if (sc == SL_STATUS_OK) {
- log_info(LIGHTING_LOGGING_CLIENT_PUBLISH_SUCCESS,
+ log_info(SL_BTMESH_LIGHTING_LOGGING_CLIENT_PUBLISH_SUCCESS_CFG_VAL,
lightness_trid,
delay);
} else {
- log_btmesh_status_f(sc, LIGHTING_LOGGING_CLIENT_PUBLISH_FAIL);
+ log_btmesh_status_f(sc, SL_BTMESH_LIGHTING_LOGGING_CLIENT_PUBLISH_FAIL_CFG_VAL);
}
// Keep track of how many requests has been sent
@@ -230,7 +230,7 @@ void sl_btmesh_change_lightness(int8_t change_percentage)
if (change_percentage > 0) {
lightness_percent += change_percentage;
if (lightness_percent > LIGHTNESS_PCT_MAX) {
-#if (LIGHT_LIGHTNESS_WRAP_ENABLED != 0)
+#if (SL_BTMESH_LIGHT_LIGHTNESS_WRAP_ENABLED_CFG_VAL != 0)
lightness_percent = 0;
#else
lightness_percent = LIGHTNESS_PCT_MAX;
@@ -238,7 +238,7 @@ void sl_btmesh_change_lightness(int8_t change_percentage)
}
} else {
if (lightness_percent < (-change_percentage)) {
-#if (LIGHT_LIGHTNESS_WRAP_ENABLED != 0)
+#if (SL_BTMESH_LIGHT_LIGHTNESS_WRAP_ENABLED_CFG_VAL != 0)
lightness_percent = LIGHTNESS_PCT_MAX;
#else
lightness_percent = 0;
@@ -269,9 +269,9 @@ void sl_btmesh_set_lightness(uint8_t new_lightness_percentage)
}
lightness_level = lightness_percent * 0xFFFF / LIGHTNESS_PCT_MAX;
- log(LIGHTING_LOGGING_NEW_LIGHTNESS_SET, lightness_percent, lightness_level);
+ log(SL_BTMESH_LIGHTING_LOGGING_NEW_LIGHTNESS_SET_CFG_VAL, lightness_percent, lightness_level);
// Request is sent multiple times to improve reliability
- lightness_request_count = LIGHT_RETRANSMISSION_COUNT;
+ lightness_request_count = SL_BTMESH_LIGHT_RETRANSMISSION_COUNT_CFG_VAL;
send_lightness_request(0); // Send the first request
@@ -279,7 +279,7 @@ void sl_btmesh_set_lightness(uint8_t new_lightness_percentage)
// to trigger retransmission of the request after 50 ms delay
if (lightness_request_count > 0) {
sl_status_t sc = sl_simple_timer_start(&light_retransmission_timer,
- LIGHT_RETRANSMISSION_TIMEOUT,
+ SL_BTMESH_LIGHT_RETRANSMISSION_TIMEOUT_CFG_VAL,
light_retransmission_timer_cb,
NO_CALLBACK_DATA,
true);
@@ -306,14 +306,14 @@ void sl_btmesh_change_switch_position(uint8_t position)
// Turns light ON or OFF, using Generic OnOff model
if (switch_pos) {
- log(ONOFF_LIGHTING_LOGGING_ON);
+ log(SL_BTMESH_ONOFF_LIGHTING_LOGGING_ON_CFG_VAL);
lightness_percent = LIGHTNESS_PCT_MAX;
} else {
- log(ONOFF_LIGHTING_LOGGING_OFF);
+ log(SL_BTMESH_ONOFF_LIGHTING_LOGGING_OFF_CFG_VAL);
lightness_percent = 0;
}
// Request is sent 3 times to improve reliability
- onoff_request_count = ONOFF_RETRANSMISSION_COUNT;
+ onoff_request_count = SL_BTMESH_ONOFF_RETRANSMISSION_COUNT_CFG_VAL;
send_onoff_request(0); // Send the first request
@@ -321,7 +321,7 @@ void sl_btmesh_change_switch_position(uint8_t position)
// to trigger retransmission of the request after 50 ms delay
if (onoff_request_count > 0) {
sl_status_t sc = sl_simple_timer_start(&onoff_retransmission_timer,
- ONOFF_RETRANSMISSION_TIMEOUT,
+ SL_BTMESH_ONOFF_RETRANSMISSION_TIMEOUT_CFG_VAL,
onoff_retransmission_timer_cb,
NO_CALLBACK_DATA,
true);
diff --git a/app/bluetooth/common/btmesh_lighting_server/config/sl_btmesh_lighting_server_config.h b/app/bluetooth/common/btmesh_lighting_server/config/sl_btmesh_lighting_server_config.h
index 772a61c70b3..4b99db69cef 100644
--- a/app/bluetooth/common/btmesh_lighting_server/config/sl_btmesh_lighting_server_config.h
+++ b/app/bluetooth/common/btmesh_lighting_server/config/sl_btmesh_lighting_server_config.h
@@ -34,61 +34,61 @@
// Light Lightness Server configuration
-// Timeout [ms] for saving States of the model to NVM.
+// Timeout [ms] for saving States of the model to NVM.
// Default: 5000
// Timeout [ms] for saving States of the model to NVM.
-#define LIGHTING_SERVER_NVM_SAVE_TIME (5000)
+#define SL_BTMESH_LIGHTING_SERVER_NVM_SAVE_TIME_CFG_VAL (5000)
-// PS Key for NVM Page where the States of the Lighting Model are saved.
+// PS Key for NVM Page where the States of the Lighting Model are saved.
// Default: 0x4004
// PS Key for NVM Page where the States of the Lighting Model are saved.
-#define LIGHTING_SERVER_PS_KEY (0x4004)
+#define SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL (0x4004)
-// Periodicity [ms] for updating the PWM duty cycle during a transition.
+// Periodicity [ms] for updating the PWM duty cycle during a transition.
// Default: 1
// Periodicity [ms] for updating the PWM duty cycle during a transition.
-#define LIGHTING_SERVER_PWM_UPDATE_PERIOD (1)
+#define SL_BTMESH_LIGHTING_SERVER_PWM_UPDATE_PERIOD_CFG_VAL (1)
-// for updating the UI with lightness level during a transition.
+// for updating the UI with lightness level during a transition.
// Default: 100
// Periodicity [ms] for updating the UI with lightness level during a transition.
-#define LIGHTING_SERVER_UI_UPDATE_PERIOD (100)
+#define SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL (100)
-// Timer value for minimum PWM duty cycle.
+// Timer value for minimum PWM duty cycle.
// Default: 1
// Timer value for minimum PWM duty cycle.
-#define LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS (1)
+#define SL_BTMESH_LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS_CFG_VAL (1)
-// Timer value for maximum PWM duty cycle.
+// Timer value for maximum PWM duty cycle.
// Default: 0xFFFE
// Timer value for minimum PWM duty cycle.
-#define LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS (0xFFFE)
+#define SL_BTMESH_LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS_CFG_VAL (0xFFFE)
// Lightness Range
-// Minimum lightness value <0x0001-0xFFFF>
+// Minimum lightness value <0x0001-0xFFFF>
// Determines the minimum non-zero lightness an element is configured to emit.
// Default: 0x0001
-#define LIGHTING_SERVER_LIGHTNESS_MIN 0x0001
+#define SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MIN_CFG_VAL 0x0001
-// Maximum lightness value <0x0001-0xFFFF>
+// Maximum lightness value <0x0001-0xFFFF>
// Determines the maximum lightness an element is configured to emit.
// The value of the Light Lightness Range Max state shall be greater than
// or equal to the value of the Light Lightness Range Min state.
// Default: 0xFFFF
-#define LIGHTING_SERVER_LIGHTNESS_MAX 0xFFFF
+#define SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MAX_CFG_VAL 0xFFFF
//
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Lighting Server model specific messages for this component.
-#define LIGHTING_SERVER_LOGGING (1)
+#define SL_BTMESH_LIGHTING_SERVER_LOGGING_CFG_VAL (1)
-// Enable debug prints for each server state changed event.
+// Enable debug prints for each server state changed event.
// Default: 0
// Enable debug prints for each server state changed event.
-#define LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS (0)
+#define SL_BTMESH_LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS_CFG_VAL (0)
//
@@ -97,14 +97,14 @@
// <<< end of configuration section >>>
// The PWM update period shall not be greater than the UI update period
-#if (LIGHTING_SERVER_UI_UPDATE_PERIOD) < (LIGHTING_SERVER_PWM_UPDATE_PERIOD)
-#error "The LIGHTING_SERVER_PWM_UPDATE_PERIOD shall be less than LIGHTING_SERVER_UI_UPDATE_PERIOD."
+#if (SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL) < (SL_BTMESH_LIGHTING_SERVER_PWM_UPDATE_PERIOD_CFG_VAL)
+#error "The SL_BTMESH_LIGHTING_SERVER_PWM_UPDATE_PERIOD_CFG_VAL shall be less than SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL."
#endif
// Lightness maximum value cannot be less than minimum value
-#if (LIGHTING_SERVER_LIGHTNESS_MAX) < (LIGHTING_SERVER_LIGHTNESS_MIN)
+#if (SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MAX_CFG_VAL) < (SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MIN_CFG_VAL)
#error The value of the Lightness Range Max shall be greater than or equal to \
the value of the Lightness Range Min state.
-#endif // (LIGHTING_SERVER_LIGHTNESS_MAX) < (LIGHTING_SERVER_LIGHTNESS_MIN)
+#endif // (SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MAX_CFG_VAL) < (SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MIN_CFG_VAL)
#endif // SL_BTMESH_LIGHTING_SERVER_CONFIG_H
diff --git a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.c b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.c
index 72e0f225ae7..fe252535841 100644
--- a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.c
+++ b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.c
@@ -101,7 +101,7 @@ static void transition_timer_cb(sl_simple_timer_t *handle,
// Initialize the variable to UI update period in order to trigger a UI update
// at the beginning of the transition.
static uint16_t time_elapsed_since_ui_update =
- LIGHTING_SERVER_UI_UPDATE_PERIOD;
+ SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
if (!level_transitioning) {
sl_status_t sc = sl_simple_timer_stop(&transition_timer);
@@ -117,7 +117,7 @@ static void transition_timer_cb(sl_simple_timer_t *handle,
// Set the variable to UI update period in order to trigger a UI update
// at the beginning of the next transition.
- time_elapsed_since_ui_update = LIGHTING_SERVER_UI_UPDATE_PERIOD;
+ time_elapsed_since_ui_update = SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
// Trigger a UI update in order to provide the target values at the end
// of the current transition
@@ -137,12 +137,12 @@ static void transition_timer_cb(sl_simple_timer_t *handle,
}
// When transition is ongoing generate an event to application once every
- // CTL_SERVER_UI_UPDATE_PERIOD ms because the event is used to update display
+ // SL_BTMESH_CTL_SERVER_UI_UPDATE_PERIOD_CFG_VAL ms because the event is used to update display
// status and therefore the rate should not be too high
- time_elapsed_since_ui_update += LIGHTING_SERVER_PWM_UPDATE_PERIOD;
+ time_elapsed_since_ui_update += SL_BTMESH_LIGHTING_SERVER_PWM_UPDATE_PERIOD_CFG_VAL;
- if (LIGHTING_SERVER_UI_UPDATE_PERIOD <= time_elapsed_since_ui_update) {
- time_elapsed_since_ui_update -= LIGHTING_SERVER_UI_UPDATE_PERIOD;
+ if (SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL <= time_elapsed_since_ui_update) {
+ time_elapsed_since_ui_update -= SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL;
sl_btmesh_lighting_server_on_ui_update(current_level);
}
}
@@ -185,7 +185,7 @@ void sl_btmesh_lighting_set_level(uint16_t level, uint32_t transition_ms)
// enabling timer IRQ -> the PWM level is adjusted in timer interrupt
// gradually until target level is reached.
sl_status_t sc = sl_simple_timer_start(&transition_timer,
- LIGHTING_SERVER_PWM_UPDATE_PERIOD,
+ SL_BTMESH_LIGHTING_SERVER_PWM_UPDATE_PERIOD_CFG_VAL,
transition_timer_cb,
NO_CALLBACK_DATA,
true);
@@ -205,16 +205,16 @@ void sl_btmesh_set_state(int state)
switch (state) {
case LED_STATE_OFF:
- sl_btmesh_lighting_set_level(LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS, 0);
+ sl_btmesh_lighting_set_level(SL_BTMESH_LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS_CFG_VAL, 0);
break;
case LED_STATE_ON:
- sl_btmesh_lighting_set_level(LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS, 0);
+ sl_btmesh_lighting_set_level(SL_BTMESH_LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS_CFG_VAL, 0);
break;
case LED_STATE_PROV:
if (++toggle % 2) {
- sl_btmesh_lighting_set_level(LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS, 0);
+ sl_btmesh_lighting_set_level(SL_BTMESH_LIGHTING_SERVER_PWM_MINIMUM_BRIGHTNESS_CFG_VAL, 0);
} else {
- sl_btmesh_lighting_set_level(LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS, 0);
+ sl_btmesh_lighting_set_level(SL_BTMESH_LIGHTING_SERVER_PWM_MAXIMUM_BRIGHTNESS_CFG_VAL, 0);
}
break;
diff --git a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.h b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.h
index aa74e44dde8..9ce6758b18d 100644
--- a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.h
+++ b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_level_transition_handler.h
@@ -67,7 +67,7 @@ void sl_btmesh_lighting_level_pwm_cb(uint16_t level);
/***************************************************************************//**
* Called when the UI shall be updated with the changed state of
* lightning server during a transition. The rate of this callback can be
- * controlled by changing the LIGHTING_SERVER_UI_UPDATE_PERIOD macro.
+ * controlled by changing the SL_BTMESH_LIGHTING_SERVER_UI_UPDATE_PERIOD_CFG_VAL macro.
*
* This is a callback which can be implemented in the application.
* @note If no implementation is provided in the application then a default weak
diff --git a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_server.c b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_server.c
index 623925a4ffb..853b3bfc397 100644
--- a/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_server.c
+++ b/app/bluetooth/common/btmesh_lighting_server/sl_btmesh_lighting_server.c
@@ -278,8 +278,8 @@ uint16_t sl_btmesh_get_lightness_onpowerup(void)
return lightbulb_state.onpowerup;
}
-#if defined(LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS) \
- && LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS
+#if defined(SL_BTMESH_LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS_CFG_VAL) \
+ && SL_BTMESH_LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS_CFG_VAL
/***************************************************************************//**
* This function prints debug information for mesh server state change event.
*
@@ -318,11 +318,11 @@ void sl_btmesh_lighting_server_on_event(sl_btmesh_msg_t *evt)
}
break;
case sl_btmesh_evt_node_reset_id:
- sl_bt_nvm_erase(LIGHTING_SERVER_PS_KEY);
+ sl_bt_nvm_erase(SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL);
break;
case sl_btmesh_evt_generic_server_state_changed_id:
-#if defined(LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS) \
- && LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS
+#if defined(SL_BTMESH_LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS_CFG_VAL) \
+ && SL_BTMESH_LIGHTING_SERVER_DEBUG_PRINTS_FOR_STATE_CHANGE_EVENTS_CFG_VAL
server_state_changed(&(evt->data.evt_generic_server_state_changed));
#endif // LOG_ENABLE
break;
@@ -2267,7 +2267,7 @@ static void init_models(void)
/***************************************************************************//**
* This function loads the saved light state from Persistent Storage and
* copies the data in the global variable lightbulb_state.
- * If PS key with ID LIGHTING_SERVER_PS_KEY does not exist or loading failed,
+ * If PS key with ID SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL does not exist or loading failed,
* lightbulb_state is set to zero and some default values are written to it.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
@@ -2278,7 +2278,7 @@ static sl_status_t lightbulb_state_load(void)
size_t ps_len = 0;
struct lightbulb_state ps_data;
- sc = sl_bt_nvm_load(LIGHTING_SERVER_PS_KEY,
+ sc = sl_bt_nvm_load(SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL,
sizeof(ps_data),
&ps_len,
(uint8_t *)&ps_data);
@@ -2288,8 +2288,8 @@ static sl_status_t lightbulb_state_load(void)
memset(&lightbulb_state, 0, sizeof(struct lightbulb_state));
lightbulb_state.lightness_last = LIGHTNESS_LAST_DEFAULT;
lightbulb_state.lightness_default = LIGHTNESS_DEFAULT_DEFAULT;
- lightbulb_state.lightness_min = LIGHTING_SERVER_LIGHTNESS_MIN;
- lightbulb_state.lightness_max = LIGHTING_SERVER_LIGHTNESS_MAX;
+ lightbulb_state.lightness_min = SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MIN_CFG_VAL;
+ lightbulb_state.lightness_max = SL_BTMESH_LIGHTING_SERVER_LIGHTNESS_MAX_CFG_VAL;
// Check if default values are valid and correct them if needed
lightbulb_state_validate_and_correct();
@@ -2349,7 +2349,7 @@ static void lightbulb_state_validate_and_correct(void)
* This function saves the current light state in Persistent Storage so that
* the data is preserved over reboots and power cycles.
* The light state is hold in a global variable lightbulb_state.
- * A PS key with ID LIGHTING_SERVER_PS_KEY is used to store the whole struct.
+ * A PS key with ID SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL is used to store the whole struct.
*
* @return Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
******************************************************************************/
@@ -2357,7 +2357,7 @@ static sl_status_t lightbulb_state_store(void)
{
sl_status_t sc;
- sc = sl_bt_nvm_save(LIGHTING_SERVER_PS_KEY,
+ sc = sl_bt_nvm_save(SL_BTMESH_LIGHTING_SERVER_PS_KEY_CFG_VAL,
sizeof(struct lightbulb_state),
(const uint8_t*)&lightbulb_state);
@@ -2376,7 +2376,7 @@ static sl_status_t lightbulb_state_store(void)
static void lightbulb_state_changed(void)
{
sl_status_t sc = sl_simple_timer_start(&lighting_state_store_timer,
- LIGHTING_SERVER_NVM_SAVE_TIME,
+ SL_BTMESH_LIGHTING_SERVER_NVM_SAVE_TIME_CFG_VAL,
lighting_state_store_timer_cb,
NO_CALLBACK_DATA,
false);
diff --git a/app/bluetooth/common/btmesh_lpn/config/sl_btmesh_lpn_config.h b/app/bluetooth/common/btmesh_lpn/config/sl_btmesh_lpn_config.h
index dc6e4713fd1..97fb2c0fbbc 100644
--- a/app/bluetooth/common/btmesh_lpn/config/sl_btmesh_lpn_config.h
+++ b/app/bluetooth/common/btmesh_lpn/config/sl_btmesh_lpn_config.h
@@ -34,86 +34,86 @@
// LPN configuration
-// Minimum queue length the friend must support <2-128>
+// Minimum queue length the friend must support <2-128>
// Default: 2
// Minimum queue length the friend must support. Choose an appropriate based on the expected message
// frequency and LPN sleep period, because messages that do not fit into the friend queue are dropped.
// Note that the given value is rounded up to the nearest power of 2
-#define LPN_MIN_QUEUE_LENGTH (2)
+#define SL_BTMESH_LPN_MIN_QUEUE_LENGTH_CFG_VAL (2)
-// Poll timeout in milliseconds <1000-345599900:100>
+// Poll timeout in milliseconds <1000-345599900:100>
// Default: 5000
// Poll timeout in milliseconds, which is the longest time that LPN sleeps in between querying its friend
// for queued messages. Long poll timeout allows the LPN to sleep for longer periods, at the expense of increased
// latency for receiving messages. Note that the given value is rounded up to the nearest 100 ms
-#define LPN_POLL_TIMEOUT (5000)
+#define SL_BTMESH_LPN_POLL_TIMEOUT_CFG_VAL (5000)
-// Receive delay in milliseconds <10-255>
+// Receive delay in milliseconds <10-255>
// Default: 50
// Receive delay in milliseconds. Receive delay is the time between the LPN sending a request and listening
// for a response. Receive delay allows the friend node time to prepare the message and LPN to sleep
-#define LPN_RECEIVE_DELAY (50)
+#define SL_BTMESH_LPN_RECEIVE_DELAY_CFG_VAL (50)
-// The number of retry attempts to repeat <0-10>
+// The number of retry attempts to repeat <0-10>
// Default: 3
// Request retry is the number of retry attempts to repeat e.g., the friend poll message
// if the friend update was not received by the LPN
-#define LPN_REQUEST_RETRIES (3)
+#define SL_BTMESH_LPN_REQUEST_RETRIES_CFG_VAL (3)
-// Time interval between retry attempts in milliseconds <0-100>
+// Time interval between retry attempts in milliseconds <0-100>
// Default: 100
// Time interval between retry attempts in milliseconds
-#define LPN_RETRY_INTERVAL (100)
+#define SL_BTMESH_LPN_RETRY_INTERVAL_CFG_VAL (100)
// Initialization timeouts
-// Timeout for initializing LPN after an already provisioned Node is initialized
+// Timeout for initializing LPN after an already provisioned Node is initialized
// Default: 30000
// Timeout for initializing LPN after an already provisioned Node is initialized. It can delay friend
// establishment to wait for possible Configuration Messages
-#define LPN_TIMEOUT_AFTER_PROVISIONED (30000)
+#define SL_BTMESH_LPN_TIMEOUT_AFTER_PROVISIONED_CFG_VAL (30000)
-// Timeout for initializing LPN after Security Key was added
+// Timeout for initializing LPN after Security Key was added
// Default: 5000
// Timeout for initializing LPN after Security Key was added. It can delay friend establishment
// to wait for possible other Configuration Messages
-#define LPN_TIMEOUT_AFTER_KEY (5000)
+#define SL_BTMESH_LPN_TIMEOUT_AFTER_KEY_CFG_VAL (5000)
-// Timeout for initializing LPN after the Configuration Model changed
+// Timeout for initializing LPN after the Configuration Model changed
// Default: 5000
// Timeout for initializing LPN after the Configuration Model changed. It can delay friend establishment
// to wait for possible other Configuration Messages
-#define LPN_TIMEOUT_AFTER_CONFIG_MODEL_CHANGED (5000)
+#define SL_BTMESH_LPN_TIMEOUT_AFTER_CONFIG_MODEL_CHANGED_CFG_VAL (5000)
-// Timeout for initializing LPN after the Configuration Model Set Message
+// Timeout for initializing LPN after the Configuration Model Set Message
// Default: 5000
// Timeout for initializing LPN after the Configuration Model Set Message. It can delay friend establishment
// to wait for possible other Configuration Messages
-#define LPN_TIMEOUT_AFTER_CONFIG_SET (5000)
+#define SL_BTMESH_LPN_TIMEOUT_AFTER_CONFIG_SET_CFG_VAL (5000)
//
-// Timeout between retries to find a friend
+// Timeout between retries to find a friend
// Default: 2000
// Timeout between retries to find a friend
-#define LPN_FRIEND_FIND_TIMEOUT (2000)
+#define SL_BTMESH_LPN_FRIEND_FIND_TIMEOUT_CFG_VAL (2000)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable or disable Logging for LPN specific messages for this component.
-#define LPN_LOGGING (1)
+#define SL_BTMESH_LPN_LOGGING_CFG_VAL (1)
-// Log text when no friend was found.
+// Log text when no friend was found.
// Log text when no friend was found
-#define LPN_FRIEND_NOT_FOUND_LOG_TEXT "Friend not found - Ret.code 0x%lx\r\n"
+#define SL_BTMESH_LPN_FRIEND_NOT_FOUND_LOG_TEXT_CFG_VAL "Friend not found - Ret.code 0x%lx\r\n"
-// Log text when LPN initialization starts.
+// Log text when LPN initialization starts.
// Log text when LPN initialization starts
-#define LPN_START_INIT_LOG_TEXT "Trying to initialize lpn...\r\n"
+#define SL_BTMESH_LPN_START_INIT_LOG_TEXT_CFG_VAL "Trying to initialize lpn...\r\n"
-// Log text when friend establishment is attempted.
+// Log text when friend establishment is attempted.
// Log text when friend establishment is attempted
-#define LPN_START_FRIEND_SEARCH_LOG_TEXT "Trying to find a friend...\r\n"
+#define SL_BTMESH_LPN_START_FRIEND_SEARCH_LOG_TEXT_CFG_VAL "Trying to find a friend...\r\n"
//
diff --git a/app/bluetooth/common/btmesh_lpn/sl_btmesh_lpn.c b/app/bluetooth/common/btmesh_lpn/sl_btmesh_lpn.c
index dd01e3dd5c6..1abec800c5e 100644
--- a/app/bluetooth/common/btmesh_lpn/sl_btmesh_lpn.c
+++ b/app/bluetooth/common/btmesh_lpn/sl_btmesh_lpn.c
@@ -120,35 +120,35 @@ void sl_btmesh_lpn_feature_init(void)
// Configure LPN minimum friend queue length
result = sl_btmesh_lpn_config(sl_btmesh_lpn_queue_length,
- LPN_MIN_QUEUE_LENGTH);
+ SL_BTMESH_LPN_MIN_QUEUE_LENGTH_CFG_VAL);
if (result) {
log("LPN queue configuration failed (0x%lx)\r\n", result);
return;
}
// Configure LPN poll timeout
result = sl_btmesh_lpn_config(sl_btmesh_lpn_poll_timeout,
- LPN_POLL_TIMEOUT);
+ SL_BTMESH_LPN_POLL_TIMEOUT_CFG_VAL);
if (result) {
log("LPN poll timeout configuration failed (0x%lx)\r\n", result);
return;
}
// Configure LPN receive delay
result = sl_btmesh_lpn_config(sl_btmesh_lpn_receive_delay,
- LPN_RECEIVE_DELAY);
+ SL_BTMESH_LPN_RECEIVE_DELAY_CFG_VAL);
if (result) {
log("LPN receive delay configuration failed (0x%lx)\r\n", result);
return;
}
// Configure LPN request retries
result = sl_btmesh_lpn_config(sl_btmesh_lpn_request_retries,
- LPN_REQUEST_RETRIES);
+ SL_BTMESH_LPN_REQUEST_RETRIES_CFG_VAL);
if (result) {
log("LPN request retries configuration failed (0x%lx)\r\n", result);
return;
}
// Configure LPN retry interval
result = sl_btmesh_lpn_config(sl_btmesh_lpn_retry_interval,
- LPN_RETRY_INTERVAL);
+ SL_BTMESH_LPN_RETRY_INTERVAL_CFG_VAL);
if (result) {
log("LPN retry interval configuration failed (0x%lx)\r\n", result);
return;
@@ -236,19 +236,19 @@ void sl_btmesh_lpn_on_event(sl_btmesh_msg_t* evt)
break;
case sl_btmesh_evt_node_provisioned_id:
- set_configuration_timer(LPN_TIMEOUT_AFTER_PROVISIONED);
+ set_configuration_timer(SL_BTMESH_LPN_TIMEOUT_AFTER_PROVISIONED_CFG_VAL);
break;
case sl_btmesh_evt_node_model_config_changed_id:
- set_configuration_timer(LPN_TIMEOUT_AFTER_CONFIG_MODEL_CHANGED);
+ set_configuration_timer(SL_BTMESH_LPN_TIMEOUT_AFTER_CONFIG_MODEL_CHANGED_CFG_VAL);
break;
case sl_btmesh_evt_node_config_set_id:
- set_configuration_timer(LPN_TIMEOUT_AFTER_CONFIG_SET);
+ set_configuration_timer(SL_BTMESH_LPN_TIMEOUT_AFTER_CONFIG_SET_CFG_VAL);
break;
case sl_btmesh_evt_node_key_added_id:
- set_configuration_timer(LPN_TIMEOUT_AFTER_KEY);
+ set_configuration_timer(SL_BTMESH_LPN_TIMEOUT_AFTER_KEY_CFG_VAL);
break;
case sl_btmesh_evt_lpn_friendship_established_id:
@@ -262,7 +262,7 @@ void sl_btmesh_lpn_on_event(sl_btmesh_msg_t* evt)
// try again after timer expires
sl_status_t sc = sl_simple_timer_start(&lpn_friend_find_timer,
- LPN_FRIEND_FIND_TIMEOUT,
+ SL_BTMESH_LPN_FRIEND_FIND_TIMEOUT_CFG_VAL,
lpn_friend_find_timer_cb,
NO_CALLBACK_DATA,
false);
@@ -278,7 +278,7 @@ void sl_btmesh_lpn_on_event(sl_btmesh_msg_t* evt)
if (num_mesh_proxy_conn == 0) {
// try again after timer expires
sl_status_t sc = sl_simple_timer_start(&lpn_friend_find_timer,
- LPN_FRIEND_FIND_TIMEOUT,
+ SL_BTMESH_LPN_FRIEND_FIND_TIMEOUT_CFG_VAL,
lpn_friend_find_timer_cb,
NO_CALLBACK_DATA,
false);
@@ -314,11 +314,11 @@ static void lpn_establish_friendship(void)
{
sl_status_t result;
- log(LPN_START_FRIEND_SEARCH_LOG_TEXT);
+ log(SL_BTMESH_LPN_START_FRIEND_SEARCH_LOG_TEXT_CFG_VAL);
result = sl_btmesh_lpn_establish_friendship(lpn_friend_netkey_idx);
if (result != SL_STATUS_OK) {
- log(LPN_FRIEND_NOT_FOUND_LOG_TEXT, result);
+ log(SL_BTMESH_LPN_FRIEND_NOT_FOUND_LOG_TEXT_CFG_VAL, result);
}
}
@@ -356,7 +356,7 @@ static void lpn_node_configured_timer_cb(sl_simple_timer_t *handle, void *data)
(void)handle;
if (!lpn_active) {
- log(LPN_START_INIT_LOG_TEXT);
+ log(SL_BTMESH_LPN_START_INIT_LOG_TEXT_CFG_VAL);
sl_btmesh_lpn_feature_init();
}
}
diff --git a/app/bluetooth/common/btmesh_provisioning_decorator/config/sl_btmesh_provisioning_decorator_config.h b/app/bluetooth/common/btmesh_provisioning_decorator/config/sl_btmesh_provisioning_decorator_config.h
index de95ef6cfcc..1778262a8cd 100644
--- a/app/bluetooth/common/btmesh_provisioning_decorator/config/sl_btmesh_provisioning_decorator_config.h
+++ b/app/bluetooth/common/btmesh_provisioning_decorator/config/sl_btmesh_provisioning_decorator_config.h
@@ -34,15 +34,15 @@
// Provisioning decorator configuration
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable or disable Logging for Provisioning Decorator specific messages for this component.
-#define PROVISIONING_DECORATOR_LOGGING (1)
+#define SL_BTMESH_PROVISIONING_DECORATOR_LOGGING_CFG_VAL (1)
//
-// Timeout for system restart after provisioning fails
-#define PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT (2000)
+// Timeout for system restart after provisioning fails
+#define SL_BTMESH_PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT_CFG_VAL (2000)
//
diff --git a/app/bluetooth/common/btmesh_provisioning_decorator/sl_btmesh_provisioning_decorator.c b/app/bluetooth/common/btmesh_provisioning_decorator/sl_btmesh_provisioning_decorator.c
index a89b5901237..7212777379c 100644
--- a/app/bluetooth/common/btmesh_provisioning_decorator/sl_btmesh_provisioning_decorator.c
+++ b/app/bluetooth/common/btmesh_provisioning_decorator/sl_btmesh_provisioning_decorator.c
@@ -176,11 +176,11 @@ void sl_btmesh_handle_provisioning_decorator_event(sl_btmesh_msg_t *evt)
sl_btmesh_on_node_provisioning_failed(evt->data.evt_node_provisioning_failed.result);
log("BT mesh system reset timer is started with %d ms timeout.\r\n",
- PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT);
+ SL_BTMESH_PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT_CFG_VAL);
sl_status_t sc =
sl_simple_timer_start(&restart_timer,
- PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT,
+ SL_BTMESH_PROVISIONING_DECORATOR_RESTART_TIMER_TIMEOUT_CFG_VAL,
prov_decor_restart_timer_cb,
NO_CALLBACK_DATA,
false);
diff --git a/app/bluetooth/common/btmesh_scene_client/config/sl_btmesh_scene_client_config.h b/app/bluetooth/common/btmesh_scene_client/config/sl_btmesh_scene_client_config.h
index 98029f2dc2a..414889be3d5 100644
--- a/app/bluetooth/common/btmesh_scene_client/config/sl_btmesh_scene_client_config.h
+++ b/app/bluetooth/common/btmesh_scene_client/config/sl_btmesh_scene_client_config.h
@@ -34,32 +34,32 @@
// Scene Client configuration
-// Scene model restransmission count
+// Scene model restransmission count
// Default: 3
// Scene model restransmission count (How many times Scene model messages are to be sent out for reliability).
-#define SCENE_CLIENT_RETRANSMISSION_COUNT (3)
+#define SL_BTMESH_SCENE_CLIENT_RETRANSMISSION_COUNT_CFG_VAL (3)
-// Scene model restransmission timeout
+// Scene model restransmission timeout
// Default: 50
// Scene model restransmission timeout.
-#define SCENE_CLIENT_RETRANSMISSION_TIMEOUT (50)
+#define SL_BTMESH_SCENE_CLIENT_RETRANSMISSION_TIMEOUT_CFG_VAL (50)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Scene Client model specific messages for this component.
-#define SCENE_CLIENT_LOGGING (1)
+#define SL_BTMESH_SCENE_CLIENT_LOGGING_CFG_VAL (1)
-// Log text when recalling a new scene.
+// Log text when recalling a new scene.
// Set Log text in case the a new scene is recalled
-#define SCENE_CLIENT_LOGGING_RECALL "Recall scene number %u\r\n"
+#define SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_CFG_VAL "Recall scene number %u\r\n"
-// Log text when recalling a new scene fails.
+// Log text when recalling a new scene fails.
// Set Log text in case the a scene recall fails
-#define SCENE_CLIENT_LOGGING_RECALL_FAIL "Scene recall failed\r\n"
+#define SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_FAIL_CFG_VAL "Scene recall failed\r\n"
-// Log text when recalling a scene recall is successful.
+// Log text when recalling a scene recall is successful.
// Set Log text a scene recall is successful.
-#define SCENE_CLIENT_LOGGING_RECALL_SUCCESS "Scene request sent, trid = %u, delay = %u\r\n"
+#define SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_SUCCESS_CFG_VAL "Scene request sent, trid = %u, delay = %u\r\n"
//
diff --git a/app/bluetooth/common/btmesh_scene_client/sl_btmesh_scene_client.c b/app/bluetooth/common/btmesh_scene_client/sl_btmesh_scene_client.c
index aaea6ccfe70..d67a154c437 100644
--- a/app/bluetooth/common/btmesh_scene_client/sl_btmesh_scene_client.c
+++ b/app/bluetooth/common/btmesh_scene_client/sl_btmesh_scene_client.c
@@ -123,9 +123,9 @@ static void send_scene_recall_request(uint8_t retrans)
delay);
if (SL_STATUS_OK == sc) {
- log_info(SCENE_CLIENT_LOGGING_RECALL_SUCCESS, scene_trid, delay);
+ log_info(SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_SUCCESS_CFG_VAL, scene_trid, delay);
} else {
- log_btmesh_status_f(sc, SCENE_CLIENT_LOGGING_RECALL_FAIL);
+ log_btmesh_status_f(sc, SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_FAIL_CFG_VAL);
}
// Keep track of how many requests has been sent
@@ -150,9 +150,9 @@ void sl_btmesh_select_scene(uint8_t scene_to_recall)
scene_number = scene_to_recall;
// Recall scene using Scene Client model
- log(SCENE_CLIENT_LOGGING_RECALL, scene_number);
+ log(SL_BTMESH_SCENE_CLIENT_LOGGING_RECALL_CFG_VAL, scene_number);
// Request is sent multiple times to improve reliability
- scene_request_count = SCENE_CLIENT_RETRANSMISSION_COUNT;
+ scene_request_count = SL_BTMESH_SCENE_CLIENT_RETRANSMISSION_COUNT_CFG_VAL;
send_scene_recall_request(0); // Send the first request
@@ -160,7 +160,7 @@ void sl_btmesh_select_scene(uint8_t scene_to_recall)
// to trigger retransmission of the request after 50 ms delay
if (scene_request_count > 0) {
sl_status_t sc = sl_simple_timer_start(&app_scene_retransmission_timer,
- SCENE_CLIENT_RETRANSMISSION_TIMEOUT,
+ SL_BTMESH_SCENE_CLIENT_RETRANSMISSION_TIMEOUT_CFG_VAL,
scene_retransmission_timer_cb,
NO_CALLBACK_DATA,
true);
diff --git a/app/bluetooth/common/btmesh_scheduler_server/config/sl_btmesh_scheduler_server_config.h b/app/bluetooth/common/btmesh_scheduler_server/config/sl_btmesh_scheduler_server_config.h
index 094203d217d..28e6853aff7 100644
--- a/app/bluetooth/common/btmesh_scheduler_server/config/sl_btmesh_scheduler_server_config.h
+++ b/app/bluetooth/common/btmesh_scheduler_server/config/sl_btmesh_scheduler_server_config.h
@@ -34,10 +34,10 @@
// Scheduler Server configuration
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Scheduler Server model specific messages for this component.
-#define SCHEDULER_SERVER_LOGGING (1)
+#define SL_BTMESH_SCHEDULER_SERVER_LOGGING_CFG_VAL (1)
//
diff --git a/app/bluetooth/common/btmesh_sensor_client/config/sl_btmesh_sensor_client_config.h b/app/bluetooth/common/btmesh_sensor_client/config/sl_btmesh_sensor_client_config.h
index 64cd9da1f8f..821e1a57b09 100644
--- a/app/bluetooth/common/btmesh_sensor_client/config/sl_btmesh_sensor_client_config.h
+++ b/app/bluetooth/common/btmesh_sensor_client/config/sl_btmesh_sensor_client_config.h
@@ -34,35 +34,35 @@
// Sensor Client configuration
-// How many sensors can fit on screen
+// How many sensors can fit on screen
// Default: 5
// Defines the number of sensors which can fit on the LCD screen.
-#define SENSOR_CLIENT_DISPLAYED_SENSORS (5)
+#define SL_BTMESH_SENSOR_CLIENT_DISPLAYED_SENSORS_CFG_VAL (5)
-// Enable Logging
+// Enable Logging
// Default: 1
// Enable / disable Logging for Sensor Client model specific messages for this component.
-#define SENSOR_CLIENT_LOGGING (1)
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_CFG_VAL (1)
-// Log text when registering devices starts
+// Log text when registering devices starts
// Set Log text in case the registration of devices with a specific sensor property ID is started
-#define SENSOR_CLIENT_LOGGING_START_REGISTERING_DEVICES "Registration of devices for property ID %4.4x started\r\n"
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_START_REGISTERING_DEVICES_CFG_VAL "Registration of devices for property ID %4.4x started\r\n"
-// Log text when registering devices fails
+// Log text when registering devices fails
// Set Log text in case the registration of devices with a specific sensor property ID is failed
-#define SENSOR_CLIENT_LOGGING_REGISTERING_DEVICES_FAILED "Registration of devices for property ID %4.4x failed\r\n"
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_REGISTERING_DEVICES_FAILED_CFG_VAL "Registration of devices for property ID %4.4x failed\r\n"
-// Log text when unsupported sensor property ID
+// Log text when unsupported sensor property ID
// Set Log text in case the specific sensor property ID is not available on the remote device (e.g. no sensor)
-#define SENSOR_CLIENT_LOGGING_UNSUPPORTED_PROPERTY "Unsupported property id %4.4x\r\n"
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_UNSUPPORTED_PROPERTY_CFG_VAL "Unsupported property id %4.4x\r\n"
-// Log text when sensor data with property ID is requested
+// Log text when sensor data with property ID is requested
// Set Log text in case property ID specific sensor data is requested from the remote device(s)
-#define SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY "Get Sensor Data from property ID %4.4x started\r\n"
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_CFG_VAL "Get Sensor Data from property ID %4.4x started\r\n"
-// Log text when sensor data request with property ID fails
+// Log text when sensor data request with property ID fails
// Set Log text in case property ID specific sensor data request is failed
-#define SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_FAIL "Get Sensor Data from property ID %4.4x failed\r\n"
+#define SL_BTMESH_SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_FAIL_CFG_VAL "Get Sensor Data from property ID %4.4x failed\r\n"
//
diff --git a/app/bluetooth/common/btmesh_sensor_client/sl_btmesh_sensor_client.c b/app/bluetooth/common/btmesh_sensor_client/sl_btmesh_sensor_client.c
index fdcc2f699d8..1694ccd340f 100644
--- a/app/bluetooth/common/btmesh_sensor_client/sl_btmesh_sensor_client.c
+++ b/app/bluetooth/common/btmesh_sensor_client/sl_btmesh_sensor_client.c
@@ -81,7 +81,7 @@
static const uint16_t PUBLISH_ADDRESS = 0x0000;
typedef struct {
- uint16_t address_table[SENSOR_CLIENT_DISPLAYED_SENSORS];
+ uint16_t address_table[SL_BTMESH_SENSOR_CLIENT_DISPLAYED_SENSORS_CFG_VAL];
uint8_t count;
} mesh_registered_device_properties_address_t;
@@ -166,10 +166,10 @@ sl_status_t sl_btmesh_sensor_client_update_registered_devices(mesh_device_proper
NO_FLAGS,
property);
if (SL_STATUS_OK == sc) {
- log_info(SENSOR_CLIENT_LOGGING_START_REGISTERING_DEVICES, property);
+ log_info(SL_BTMESH_SENSOR_CLIENT_LOGGING_START_REGISTERING_DEVICES_CFG_VAL, property);
} else {
log_btmesh_status_f(sc,
- SENSOR_CLIENT_LOGGING_REGISTERING_DEVICES_FAILED,
+ SL_BTMESH_SENSOR_CLIENT_LOGGING_REGISTERING_DEVICES_FAILED_CFG_VAL,
property);
}
return sc;
@@ -190,7 +190,7 @@ static void handle_sensor_client_descriptor_status(
SIZE_OF_DESCRIPTOR);
uint8_t number_of_devices = registered_devices.count;
if (descriptor.property_id == registering_property
- && number_of_devices < SENSOR_CLIENT_DISPLAYED_SENSORS
+ && number_of_devices < SL_BTMESH_SENSOR_CLIENT_DISPLAYED_SENSORS_CFG_VAL
&& !mesh_address_already_exists(®istered_devices,
evt->server_address)) {
registered_devices.address_table[number_of_devices] = evt->server_address;
@@ -215,10 +215,10 @@ sl_status_t sl_btmesh_sensor_client_get_sensor_data(mesh_device_properties_t pro
property);
if (SL_STATUS_OK == sc) {
- log_info(SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY, property);
+ log_info(SL_BTMESH_SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_CFG_VAL, property);
} else {
log_btmesh_status_f(sc,
- SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_FAIL,
+ SL_BTMESH_SENSOR_CLIENT_LOGGING_GET_DATA_FROM_PROPERTY_FAIL_CFG_VAL,
property);
}
return sc;
@@ -331,7 +331,7 @@ static void handle_sensor_client_status(sl_btmesh_evt_sensor_client_status_t *ev
}
default:
- log(SENSOR_CLIENT_LOGGING_UNSUPPORTED_PROPERTY, property_id);
+ log(SL_BTMESH_SENSOR_CLIENT_LOGGING_UNSUPPORTED_PROPERTY_CFG_VAL, property_id);
break;
}
}
@@ -413,7 +413,7 @@ static bool mesh_address_already_exists(mesh_registered_device_properties_addres
{
bool address_exists = false;
if (property != NULL) {
- for (int i = 0; i < SENSOR_CLIENT_DISPLAYED_SENSORS; i++) {
+ for (int i = 0; i < SL_BTMESH_SENSOR_CLIENT_DISPLAYED_SENSORS_CFG_VAL; i++) {
if (address == property->address_table[i]) {
address_exists = true;
break;
@@ -436,7 +436,7 @@ static uint8_t mesh_get_sensor_index(mesh_registered_device_properties_address_t
{
uint8_t sensor_index = SENSOR_INDEX_NOT_FOUND;
if (property != NULL) {
- for (int i = 0; i < SENSOR_CLIENT_DISPLAYED_SENSORS; i++) {
+ for (int i = 0; i < SL_BTMESH_SENSOR_CLIENT_DISPLAYED_SENSORS_CFG_VAL; i++) {
if (address == property->address_table[i]) {
sensor_index = i;
break;
diff --git a/app/bluetooth/common/btmesh_sensor_people_count/config/sl_btmesh_sensor_people_count_config.h b/app/bluetooth/common/btmesh_sensor_people_count/config/sl_btmesh_sensor_people_count_config.h
index 86852dac070..5480313f646 100644
--- a/app/bluetooth/common/btmesh_sensor_people_count/config/sl_btmesh_sensor_people_count_config.h
+++ b/app/bluetooth/common/btmesh_sensor_people_count/config/sl_btmesh_sensor_people_count_config.h
@@ -32,26 +32,26 @@
// <<< Use Configuration Wizard in Context Menu >>>
-#define SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE 0
-#define SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_PERCENTAGE 1
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE_CFG_VAL 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_PERCENTAGE_CFG_VAL 1
// Bluetooth Mesh - People Count
// Sensor attributes
-// Positive tolerance of sensor.
+// Positive tolerance of sensor.
// <0-4095:1>
// Default: 0 (Unspecified)
// 12-bit Positive Tolerance value (1 - 4095) or Unspecified (0). The value is derived as ERR_P [%] = 100 [%] * x / 4095
-#define SENSOR_PEOPLE_COUNT_POSITIVE_TOLERANCE 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_POSITIVE_TOLERANCE_CFG_VAL 0
-// Negative tolerance of sensor.
+// Negative tolerance of sensor.
// <0-4095:1>
// Default: 0 (Unspecified)
// 12-bit Negative Tolerance value (1 - 4095) or Unspecified (0). The value is derived as ERR_N [%] = 100 [%] * x / 4095
-#define SENSOR_PEOPLE_COUNT_NEGATIVE_TOLERANCE 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_NEGATIVE_TOLERANCE_CFG_VAL 0
-// Sampling function
+// Sampling function
// Unspecified
// Instantaneous sampling
// Arithmetic mean
@@ -63,42 +63,42 @@
// Number of "events" over the period of time defined by the Measurement Period
// Reserved for Future Use
// Default: Unspecified
-#define SENSOR_PEOPLE_COUNT_SAMPLING_FUNCTION SAMPLING_UNSPECIFIED
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_SAMPLING_FUNCTION_CFG_VAL SAMPLING_UNSPECIFIED
-// Measurement Period of sensor.
+// Measurement Period of sensor.
// <0-255:1>
// Default: 0 (Not Applicable)
// 8 bit value (1 - 255) or Not Applicable (0). Time period in seconds is derived as T [s] = 1.1 ^ (x - 64)
-#define SENSOR_PEOPLE_COUNT_MEASUREMENT_PERIOD 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_MEASUREMENT_PERIOD_CFG_VAL 0
-// Update Interval of sensor.
+// Update Interval of sensor.
// <0-255:1>
// Default: 0 (Not Applicable)
// 8 bit value (1 - 255) or Not Applicable (0). Time period in seconds is derived as T [s] = 1.1 ^ (x - 64)
-#define SENSOR_PEOPLE_COUNT_UPDATE_INTERVAL 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_UPDATE_INTERVAL_CFG_VAL 0
//
-// Sensor cadence
+// Sensor cadence
// Enables Cadence.
// Default: 0
-#define SENSOR_PEOPLE_COUNT_CADENCE_ENABLE 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_CADENCE_ENABLE_CFG_VAL 0
-// Fast Cadence Period Divisor
+// Fast Cadence Period Divisor
// <0-15:1>
// Default: 0 (Divisor of 1)
// 7 bit value (0-15), other values are Prohibited. The value is represented as a 2 ^ n divisor of the Publish Period.
// For example value 0x00 would have a divisor of 1, the Publish Period would not change.
-#define SENSOR_PEOPLE_COUNT_FAST_CADENCE_PERIOD_DIVISOR 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_FAST_CADENCE_PERIOD_DIVISOR_CFG_VAL 0
-// Status Trigger Type
-// Discrete Value
-// Percentage
-// Default: SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE
+// Status Trigger Type
+// Discrete Value
+// Percentage
+// Default: SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE_CFG_VAL
// Defines the unit and format of the Status Trigger Delta fields
-#define SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_CFG_VAL SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_TYPE_DISCRETE_VALUE_CFG_VAL
-// Status Trigger Delta Down
+// Status Trigger Delta Down
// <0-65535:1>
// Default: 0
// The Status Trigger Delta Down field shall control the negative change of a measured quantity that
@@ -106,9 +106,9 @@
// In case of percentage Status Trigger Type the value is represented unitless with a resolution of 0.01 percent,
// e.g. value 1534 represents 15.34%. In case of discrete Status Trigger Type the format represents
// the people count value.
-#define SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_DELTA_DOWN 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_DELTA_DOWN_CFG_VAL 0
-// Status Trigger Delta Up
+// Status Trigger Delta Up
// <0-65535:1>
// Default: 0
// The Status Trigger Delta Up field shall control the positive change of a measured quantity that
@@ -116,29 +116,29 @@
// In case of percentage Status Trigger Type the value is represented unitless with a resolution of 0.01 percent,
// e.g. value 1534 represents 15.34%. In case of discrete Status Trigger Type the format represents
// the people count value.
-#define SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_DELTA_UP 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_TRIGGER_DELTA_UP_CFG_VAL 0
-// Status Min Interval
+// Status Min Interval
// <0-26:1>
// Default: 0
// 8 bit value (0-26), other values are Prohibited. The value is represented as a 2 ^ n milliseconds.
// For example, the value 10 would represent an interval of 1024ms.
// The Status Min Interval field shall control the minimum interval between publishing two consecutive Sensor Status messages.
-#define SENSOR_PEOPLE_COUNT_STATUS_MIN_INTERVAL 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_STATUS_MIN_INTERVAL_CFG_VAL 0
-// Fast Cadence Low
+// Fast Cadence Low
// <0-65535:1>
// Default: 0
// The Fast Cadence Low field shall define the lower boundary of a range of measured quantities when
// the publishing cadence is increased as defined by the Fast Cadence Period Divisor field.
-#define SENSOR_PEOPLE_COUNT_FAST_CADENCE_LOW 0
+#define SL_BTMESH_SENSOR_PEOPLE_COUNT_FAST_CADENCE_LOW_CFG_VAL 0
-// Fast Cadence High
+//