27 lines
661 B
C++
27 lines
661 B
C++
#ifndef OMOBI_LED_DISPLAY
|
|
#define OMOBI_LED_DISPLAY
|
|
|
|
#include <Arduino.h>
|
|
#include <ArduinoJson.h>
|
|
#include "BluetoothLeUartServer.h"
|
|
#include "LedDisplayController.h"
|
|
|
|
class OmobiLedDisplay : protected BluetoothLeUartServerCallbacks {
|
|
|
|
public:
|
|
explicit OmobiLedDisplay(String deviceName, const byte ledPin);
|
|
|
|
// befriend for callbacks
|
|
friend class BluetoothLeUartServer;
|
|
|
|
protected:
|
|
// calbacks for BluetoothLeUartServerCallbacks
|
|
void onDeviceConnectedChanged(bool deviceConnected) override;
|
|
void onDataReceived(String data) override;
|
|
|
|
private:
|
|
LedDisplayController* ledDisplayController;
|
|
BluetoothLeUartServer * bleServer;
|
|
};
|
|
|
|
#endif // OMOBI_LED_DISPLAY
|