Arduino STK  4.6.2
ArdBtSource.h
1 
2 #include "Stk.h"
3 #ifdef __BT_A2DP__
4 
5 #ifndef ARDBTSOURCE_H
6 #define ARDBTSOURCE_H
7 
8 #include "WvOut.h"
9 #include "ArdCommonOut.h"
10 #include "BluetoothA2DPSource.h"
11 #include "Voicer.h"
12 #include "esp_log.h"
13 
14 namespace stk {
15 
16 /***************************************************/
25 /***************************************************/
26 
27 class ArdBtSource : public Stk
28 {
29  public:
32 
35 
37  void start(char* name, Voicer &voicer);
38 
40  bool isConnected();
41 
43  void setNVSInit(bool doInit);
44 
46  void setResetBLE(bool doInit);
47 
48 
49  protected:
50  Voicer *pVoicer;
51  BluetoothA2DPSource *a2dp_source;
52 
53 };
54 
55 } // stk namespace
56 
57 #endif
58 #endif
ESP32 Output to Bluetooth.
Definition: ArdBtSource.h:28
void setResetBLE(bool doInit)
Defines if the BLE should be reset on start.
bool isConnected()
Checks if this device is still connnected.
~ArdBtSource()
Destructor.
void start(char *name, Voicer &voicer)
Starts the Bluetooth device.
ArdBtSource()
Default constructor ...
void setNVSInit(bool doInit)
Defines if the Flash NVS should be reset on start.
STK base class.
Definition: Stk.h:144
STK voice manager class.
Definition: Voicer.h:35
The STK namespace.
Definition: ADSR.h:8