schoolpost / BlueMagic32

Arduino ESP32 Library for connecting to Blackmagic Cameras using Bluetooth Low Energy.
GNU Lesser General Public License v2.1
95 stars 17 forks source link

Serial don't work in loop #19

Open noxmyn opened 7 months ago

noxmyn commented 7 months ago

Output to the serial port does not work, after setup

#include <BlueMagic32.h>

void setup()
{

    Serial.begin(115200);
    while(!Serial);
    //Serial.println("Test");

    BMDConnection.begin("BlueMagic32");
    BMDControl = BMDConnection.connect();

}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello world!");
}

if you comment out the line, then “Hello world!” works

//BMDControl = BMDConnection.connect();

what am I doing wrong?