5#ifndef esp32dumbdisplay_h 
    6#define esp32dumbdisplay_h 
   16  #error DDBluetoothSerialIO is for ESP32 
   22#include "BluetoothSerial.h" 
   23#include "dumbdisplay.h" 
   34                        unsigned long serialBaud = DD_SERIAL_BAUD):
 
   36      this->btLocalName = btLocalName;
 
   41    const char* getWhat() {
 
   45      return serialBT.available();
 
   48      return serialBT.read();
 
   50    void print(
const String &s) {
 
   53    void print(
const char *p) {
 
   56    void write(uint8_t b) {
 
   59    void write(
const uint8_t *buf, 
size_t size) {
 
   60      serialBT.write(buf, size); 
 
   62    bool preConnect(
bool firstCall) {
 
   63      DDInputOutput::preConnect(firstCall);
 
   64      serialBT.begin(btLocalName);
 
   65      if (!willUseSerial()) {  
 
   67          if (!Serial) Serial.begin(DD_SERIAL_BAUD);
 
   69        String address = serialBT.getBtAddressString();
 
   70        address.toUpperCase();
 
   71        Serial.println(
"bluetooth address: " + address);
 
   80    bool canConnectPassive() {
 
   88    BluetoothSerial serialBT;  
 
Subclass of DDInputOutput.
Definition: esp32dumbdisplay.h:27