File tree 4 files changed +14
-6
lines changed
libraries/BluetoothSerial/src
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 19
19
*
20
20
* Every %BT device has a unique address which can be used to identify it and form connections.
21
21
*/
22
- class BTAddress {
22
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BTAddress {
23
23
public:
24
24
BTAddress ();
25
25
BTAddress (esp_bd_addr_t address);
Original file line number Diff line number Diff line change 8
8
#ifndef __BTADVERTISEDDEVICE_H__
9
9
#define __BTADVERTISEDDEVICE_H__
10
10
11
+ #include " sdkconfig.h"
12
+ #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
13
+
11
14
#include " BTAddress.h"
12
15
#include < string>
13
16
14
- class BTAdvertisedDevice {
17
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BTAdvertisedDevice {
15
18
public:
16
19
virtual ~BTAdvertisedDevice () = default ;
17
20
@@ -27,7 +30,7 @@ class BTAdvertisedDevice {
27
30
virtual std::string toString () = 0 ;
28
31
};
29
32
30
- class BTAdvertisedDeviceSet : public virtual BTAdvertisedDevice {
33
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BTAdvertisedDeviceSet : public virtual BTAdvertisedDevice {
31
34
public:
32
35
BTAdvertisedDeviceSet ();
33
36
// ~BTAdvertisedDeviceSet() = default;
@@ -59,3 +62,4 @@ class BTAdvertisedDeviceSet : public virtual BTAdvertisedDevice {
59
62
};
60
63
61
64
#endif
65
+ #endif
Original file line number Diff line number Diff line change 8
8
#ifndef __BTSCAN_H__
9
9
#define __BTSCAN_H__
10
10
11
+ #include " sdkconfig.h"
12
+ #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
13
+
11
14
#include < map>
12
15
#include < string>
13
16
#include < Print.h>
17
20
class BTAdvertisedDevice ;
18
21
class BTAdvertisedDeviceSet ;
19
22
20
- class BTScanResults {
23
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BTScanResults {
21
24
public:
22
25
virtual ~BTScanResults () = default ;
23
26
@@ -26,7 +29,7 @@ class BTScanResults {
26
29
virtual BTAdvertisedDevice *getDevice (int i) = 0 ;
27
30
};
28
31
29
- class BTScanResultsSet : public BTScanResults {
32
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BTScanResultsSet : public BTScanResults {
30
33
public:
31
34
void dump (Print *print = nullptr );
32
35
int getCount ();
@@ -39,3 +42,4 @@ class BTScanResultsSet : public BTScanResults {
39
42
};
40
43
41
44
#endif
45
+ #endif
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ typedef std::function<void()> KeyRequestCb;
34
34
typedef std::function<void (boolean success)> AuthCompleteCb;
35
35
typedef std::function<void (BTAdvertisedDevice *pAdvertisedDevice)> BTAdvertisedDeviceCb;
36
36
37
- class BluetoothSerial : public Stream {
37
+ class [[deprecated( " BluetoothSerial/Bluedroid support will be removed in 4.0.0 " )]] BluetoothSerial : public Stream {
38
38
public:
39
39
BluetoothSerial (void );
40
40
~BluetoothSerial (void );
You can’t perform that action at this time.
0 commit comments