Closed redFrik closed 4 months ago
This error is still occurring. The workaround is to remove the two slipbluetooth header and source files from the PIO libdeps directory. I thought it was because I was using an esp8266 with no Bluetooth but it's happening with esp32 as well.
I'm using PIO from within vscode on windows.
Any resolution on this? I only started using the library to find this issue.
I am getting this error as well ..
Compiling .pio/build/lolin_s2_mini/libd63/OSC/SLIPEncodedBluetoothSerial.cpp.o
Compiling .pio/build/lolin_s2_mini/libd63/OSC/SLIPEncodedSerial.cpp.o
Compiling .pio/build/lolin_s2_mini/libd63/OSC/SLIPEncodedUSBSerial.cpp.o
In file included from .pio/libdeps/lolin_s2_mini/OSC/SLIPEncodedBluetoothSerial.cpp:1:
.pio/libdeps/lolin_s2_mini/OSC/SLIPEncodedBluetoothSerial.h:20:2: error: 'BluetoothSerial' does not name a type
BluetoothSerial * serial;
^~~~~~~~~~~~~~~
.pio/libdeps/lolin_s2_mini/OSC/SLIPEncodedBluetoothSerial.h:26:44: error: expected ')' before '&' token
SLIPEncodedBluetoothSerial(BluetoothSerial & );
~ ^~
)
.pio/libdeps/lolin_s2_mini/OSC/SLIPEncodedBluetoothSerial.cpp:9:55: error: expected constructor, destructor, or type conversion before '(' token
SLIPEncodedBluetoothSerial::SLIPEncodedBluetoothSerial(BluetoothSerial &s){
^
.pio/libdeps/lolin_s2_mini/OSC/SLIPEncodedBluetoothSerial.cpp: In member function 'bool SLIPEncodedBluetoothSerial::endofPacket()':
Workaround mentioned above works for me too ..
However, when I run the code It connects to Wifi ok, but in loop()
I get an error even before I have sent any OSC data.
The contents of loop() is:
OSCMessage bundleIN;
void loop() {
// OSC Packet handling
int size = Udp.parsePacket();
while (size--) {
bundleIN.fill(Udp.read());
}
if (!bundleIN.hasError()) {
bundleIN.dispatch("/1/slider2", motorControl);
IPAddress ip = Udp.remoteIP();
if (!( ip==outIp )) {
Serial.print("New connection from ");
Serial.println(ip);
outIp = ip;
}
}
else {
error = bundleIN.getError();
Serial.print("error: ");
Serial.println(error);
}
bundleIN.empty();
}
The error is 2
then:
---- Closed serial port /dev/tty.usbmodem01 due to disconnection from the machine ----
EDIT: Never mind, that error was from elsewhere, it works perfectly.
Is this closed because my workaround of deleting the files seems to work or has it been fixed?
I'm facing the same fatal error: BluetoothSerial.h: No such file or directory
issue.
This is indeed still a problem with ESP32, maybe reopen the issue?
Thanks for the new release. Could it be that there's a dependency missing?
This on macOS with platformio installed from homebrew.
Your previous release (3.5.7) works fine.