File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
libraries/Bluefruit52Lib/src Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ BLECharacteristic::BLECharacteristic(BLEUuid bleuuid)
8383 _init ();
8484}
8585
86+ BLECharacteristic::BLECharacteristic (BLEUuid bleuuid, uint8_t properties)
87+ : uuid(bleuuid)
88+ {
89+ _init ();
90+ setProperties (properties);
91+ }
92+
8693void BLECharacteristic::setUuid (BLEUuid bleuuid)
8794{
8895 uuid = bleuuid;
Original file line number Diff line number Diff line change @@ -53,6 +53,17 @@ enum CharsProperties
5353 CHR_PROPS_INDICATE = bit (5 )
5454};
5555
56+ // same as CharsProperties, but make it easier to migrate from ArduinoBLE
57+ enum BLECharsProperties
58+ {
59+ BLEBroadcast = 0x01 ,
60+ BLERead = 0x02 ,
61+ BLEWriteWithoutResponse = 0x04 ,
62+ BLEWrite = 0x08 ,
63+ BLENotify = 0x10 ,
64+ BLEIndicate = 0x20
65+ };
66+
5667class BLECharacteristic
5768{
5869 public:
@@ -67,6 +78,7 @@ class BLECharacteristic
6778 // Constructors
6879 BLECharacteristic (void );
6980 BLECharacteristic (BLEUuid bleuuid);
81+ BLECharacteristic (BLEUuid bleuuid, uint8_t properties);
7082
7183 // Destructor
7284 virtual ~BLECharacteristic ();
You can’t perform that action at this time.
0 commit comments