WiFi and BLE simultaneous compatibility

Zandolo
Posts: 1
Joined: Tue Jul 08, 2025 12:07 pm

WiFi and BLE simultaneous compatibility

Postby Zandolo » Tue Jul 08, 2025 12:19 pm

Hello everyone,

Recently, I bought a barcode scanner that supports SSP, BLE, and HID modes.

My goal was to automatically increase or decrease the product quantity on a Firebase server whenever a barcode is scanned.

Yesterday, I created a simple script using an ESP32 as a BLE client to connect to the Bluetooth Low Energy (BLE) barcode scanner. Everything worked fine, so I started writing another script to update the quantity on Firebase using a placeholder code — that part also worked well.

However, after merging the two scripts, I encountered an issue: after scanning a barcode, the Firebase connection fails (I get an HTTP -1 error), and I don’t understand why.

Is there a problem using WiFi and BLE simultaneously? I even tried disconnecting from WiFi before sending, but that didn’t help.
Attachments
codefire.txt
Code
(7.76 KiB) Downloaded 5 times

Who is online

Users browsing this forum: Applebot, Barkrowler, Bing [Bot], meta-externalagent, PerplexityBot and 7 guests