LoRa Access Point 1.5.2018

Dependencies:   mbed ds3231 SX1276Lib_LoRa_Access_Point

HC05.h

Committer:
lukas_formanek
Date:
2021-05-08
Revision:
11:376bfcdda0d4
Parent:
5:19b34c4d27a1

File content as of revision 11:376bfcdda0d4:

#ifndef HC05_H
#define HC05_H

#include "mbed.h"
#include "Board.h"
#include "ESP8266.h"

#define BUFFERSIZE 512

class HC05
{
private:
    Serial btUart;
    char buffer[BUFFERSIZE];
    volatile int16_t pt;

    void ClearBuffer();
    void RxBtInterrupt();
public:
    HC05(PinName tx, PinName rx);
    void Init();
    void Send(char* message);
};

extern HC05 bt;

#endif