From d5bc5b850636be9da59a6c6e147e9d2585433ee4 Mon Sep 17 00:00:00 2001 From: giulcioffi Date: Tue, 31 May 2022 11:37:52 +0200 Subject: [PATCH] Prepend 'BLE_GATT_' to READ and WRITE enums to avoid clashes with ArduinoIoTCloud lib --- src/BLEProperty.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BLEProperty.h b/src/BLEProperty.h index 434bd2aa..b9238ba9 100644 --- a/src/BLEProperty.h +++ b/src/BLEProperty.h @@ -63,10 +63,10 @@ enum BLEPermission { #define ESP_GATT_PERM_WRITE_AUTHORIZATION (1 << 10) /* bit 10 - 0x0400 */ enum BLE_GATT_PERM_ { - READ = 1 << 0, + BLE_GATT_READ = 1 << 0, READ_ENCRYPTED = 1 << 1, READ_ENC_MITM = 1 << 2, - WRITE = 1 << 4, + BLE_GATT_WRITE = 1 << 4, WRITE_ENCRYPTED = 1 << 5, WRITE_ENC_MITM = 1 << 6, WRITE_SIGNED = 1 << 7,