-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Open
Labels
Status: Awaiting ResponseAwaiting a response from the authorAwaiting a response from the author
Description
Board
XIAO-ESP32C3
Device Description
Bare XIAO-ESP32C3 board
Hardware Configuration
None
Version
v3.3.2
Type
Question
IDE Name
Arduino 2.0
Operating System
Windows 10
Flash frequency
160 Mhz
PSRAM enabled
yes
Upload speed
921600
Description
I hava a thermal printer with fsc-bt986 module, which is tested that is workable with Android.
And I am trying to connect to the thermal printer by ESP32, but get error response.
Sketch
pClient = BLEDevice::createClient();
String mac_addr = String(szMacAddress);
pClient->connect(*Server_BLE_Address);
if (!pClient->isConnected())
{
Serial.println("Connect failed");
return false;
}Debug Message
- Created client, connecting to dc:0d:30:73:95:59
[ 50524][D][BLEClient.cpp:944] handleGAPEvent(): BLEClient
[ 50524][I][BLEClient.cpp:983] handleGAPEvent(): BLEClient
[ 50524][I][BLEDevice.cpp:683] removePeerDevice(): remove: 0, GATT role client
[ 50525][D][BLESecurity.cpp:192] resetSecurity(): resetSecurity: Resetting security state
[ 50525][D][BLEClient.cpp:406] onDisconnect(): BLEClientCallbacks
[ 80522][D][BLEClient.cpp:944] handleGAPEvent(): BLEClient
[ 80523][D][BLEUtils.cpp:2190] gapEventToString(): gapEventToString: Unknown event type 38 0x26
[ 80523][D][BLEClient.cpp:944] handleGAPEvent(): BLEClient
[ 80523][E][BLEClient.cpp:854] connect(): Connection failed; status=13 Operation timed out.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Status: Awaiting ResponseAwaiting a response from the authorAwaiting a response from the author