aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rinkel <[email protected]>2023-11-07 20:48:46 +0100
committerLeon Rinkel <[email protected]>2023-11-07 20:48:46 +0100
commit8fdb039cfdcd4c600230e57f2d7905a1a5e33fcc (patch)
tree93d2346e4ded233f0e6c88e875baabb06926f478
parent88076229aca498496aecb5ed5f90d9198ddb25a3 (diff)
Encrypted RGB reads & writes
-rw-r--r--app/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main.c b/app/src/main.c
index 628f87e..3924b96 100644
--- a/app/src/main.c
+++ b/app/src/main.c
@@ -118,7 +118,7 @@ BT_GATT_SERVICE_DEFINE(lumen_svc,
BT_GATT_CHARACTERISTIC(&lumen_rgb_uuid.uuid,
BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE |
BT_GATT_CHRC_WRITE_WITHOUT_RESP | BT_GATT_CHRC_INDICATE,
- BT_GATT_PERM_READ | BT_GATT_PERM_WRITE,
+ BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT,
read_rgb, write_rgb, rgb_value
),
);