Files
bobbycar-boardcomputer-firm…/main/actions/bluetoothbeginaction.h
T

24 lines
421 B
C++

#pragma once
#include "actioninterface.h"
#include "globals.h"
using namespace espgui;
namespace {
#ifdef FEATURE_BLUETOOTH
class BluetoothBeginAction : public virtual ActionInterface
{
public:
void triggered() override
{
if (!bluetoothSerial.begin(deviceName))
{
//Serial.println("Could not begin bluetooth");
// TODO: better error handling
}
}
};
#endif
}