Skip to content

Can't send single byte over BluetoothSerial using serialBT.write #3180

@tabroughton

Description

@tabroughton

I'm trying to send a single character over bluetooth using SerialBluetooth from Featherboard ESP32.

The Character isn't sending it is getting queued, how do i make it send.

Example below shows a char being written to Serial and SerialBT - the char is printed in the Serial but not the SerialBT. Is this a bug or am I doing something wrong?

#include "BluetoothSerial.h"
BluetoothSerial SerialBT;

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); 
  Serial.println("Sending single char every 3 seconds:");
}

void loop() {
  Serial.write(45);
  SerialBT.write(45);
  delay(3000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions