Files
bobbycar-boardcomputer-firm…/main/actions/bluetoothbeginmasteraction.h
2021-12-29 00:40:05 +01:00

25 lines
490 B
C++

#pragma once
#include "actioninterface.h"
#include "globals.h"
#include "newsettings.h"
using namespace espgui;
namespace {
#ifdef FEATURE_BLUETOOTH
class BluetoothBeginMasterAction : public virtual ActionInterface
{
public:
void triggered() override
{
if (!bluetoothSerial.begin(configs.bluetoothName.value.c_str(), true))
{
//Serial.println("Could not begin bluetooth master");
// TODO: better error handling
}
}
};
#endif
}