WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Bluetooth Serial JSON Control and WiFi Deferment

Open ChuckMash opened this issue 3 years ago • 4 comments

Due to a very similar PR (#2925) also today, I will open this a draft to encourage discussion between the 2 similar implementations.

  • Allows access to JSON API over Bluetooth Serial Connection.
  • Normal WiFi functionality is disabled while Bluetooth is in use. OTA disabled due to size constraints
  • Bluetooth device shows up as whatever is set in "Server description", "WLED" by default.
  • Normal WiFi functionality can be accessed for general WLED setup under the following conditions
    • Normal WiFi functionality until "Apply preset at boot" is set.
    • If active preset changes by any means during first 5 seconds, normal WiFi functionality will resume. (simple button press would suffice)
    • If 'e' is sent over the bluetooth serial connection, normal WiFi functionality will resume.
  • Serial Bluetooth Terminal Android app for testing
  • Reference: Python to ESP32 bluetooth serial
  • Example Python Script for WLED control over Bluetooth Serial

ChuckMash avatar Dec 05 '22 20:12 ChuckMash

I am wondering how do you pair? If it is needed.

For example if you would want to use this to access the JSON API from an Android device you would find the device under available devices with the WLED server description name, the pairing is automatic from there.

ChuckMash avatar Dec 05 '22 21:12 ChuckMash

For example if you would want to use this to access the JSON API from an Android device you would find the device under available devices with the WLED server description name, the pairing is automatic from there.

So something like mouse or keyboard? I would still like to see some pairing option with PIN if possible.

blazoncek avatar Dec 05 '22 21:12 blazoncek

I would still like to see some pairing option with PIN if possible.

Agreed, I've been looking into it

ChuckMash avatar Dec 05 '22 21:12 ChuckMash

That should deal with the bulk of the talking points so far, with exception of the pairing process which I am still looking into.

ChuckMash avatar Dec 06 '22 02:12 ChuckMash

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!

stale[bot] avatar Jun 18 '23 07:06 stale[bot]

Stalebot reminded me, I don't have the time at the moment to finish this up. Back when I was working on it there was upstream issues with bluetooth serial and being able to set a pairing pin. Some time later I may re-open this draft and continue.

ChuckMash avatar Jun 22 '23 16:06 ChuckMash