Hi, I need to realize a communication via Rfcomm protocol of Bluetooth classic to replace a serial wire communication between an ESP32-DevKit board and a program made in visual studio 2019 with c# on windows forms application and I have loaded the InTheHand Feet32 DLLs library to do it. The project involve sending commands in byte format from the pc to the board and its response to the command. I tested the operation between esp32 and the bluetooth serial terminal tool and it works. I also tried with DockLight opening the virtual serial ports and it works. When I try with the program I created, the command that I send arrives on the ESP32 board, while the response if I put the breakpoint, I see the data in the buffer, when I remove the breakpoint the data arrives partially and incorrectly. I have used both read and readbyte functions but the thing doesn’t change. Does anyone have any suggestion about this. I also have to say that I put in TRY the reception of data is often arrives the following exception: I/O operation terminated due to thread exit or application request. Thank you for a possible answer.
I’m sorry, but I’m not familiar with Rfcomm Bluetooth.
It seems that the problem is not related to the ESP32 but to the program you created.
I would suggest that you post your issue on the library issues page: https://github.com/inthehand/32feet/issues, but I noticed that you already did that. I think that place is more suitable to ask for help about this subject.
I’m sorry that I can’t help much.