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
14namespace stk {
15
16/***************************************************/
25/***************************************************/
26
27class ArdBtSource : public Stk
28{
29 public:
32
35
37 void start(char* name, Voicer &voicer);
38
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
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(void)
Default constructor.
STK voice manager class.
Definition Voicer.h:35
The STK namespace.
Definition ADSR.h:8