> Even though shunned by Apple and Mozilla, Web Bluetooth enjoys wide support and just works. That’s an interesting way to say Chrome Only feature but you shouldn’t care because Mozilla ran Firefox into 3%/ground and Safari doesn’t matter. IDK… to the point of the project… I guess that’s cool. But once you have defined and tested your GATTs, it hasn’t been my experience to come back to it a ton of times. I just wrote…
What justification is there for not implementing this across all browsers?
Show HN: OpenBLE, Swagger for Bluetooth
11–20 of 45 posts
Re: Show HN: OpenBLE, Swagger for Bluetooth
#12I use Nordic's app nRF Connect for this - last I used it it was fantastic. Nice to have alternative options though. I agree WebBluetooth is easily the sanest way to access BLE devices. The iOS API is not too bad either but then you have to deal with Apple. The Android API is terrible, and the Android Bluetooth stack is unreliable and buggy.
nrfconnect exposes the services, but if they arent registered with the bluetooth SIG then you won't have much more detail than the ids of characteristics and services and their data types. You won't know what the purpose of each service and characteristic is.
Re: Show HN: OpenBLE, Swagger for Bluetooth
#13Re: Show HN: OpenBLE, Swagger for Bluetooth
#14Re: Show HN: OpenBLE, Swagger for Bluetooth
#15One thing I’ve wanted to do for end to end testing purposes is to be able to make pretend Bluetooth devices from my Mac. I’ve not seen much to suggest a simple way to do this, does anyone know of anything that I can use to make my Mac Bluetooth look like a heart rate monitor, for example?
It's technically straightforward on linux, or using a BBC microbit (there is example code in the Nordic SDK).
Re: Show HN: OpenBLE, Swagger for Bluetooth
#16I use Nordic's app nRF Connect for this - last I used it it was fantastic. Nice to have alternative options though. I agree WebBluetooth is easily the sanest way to access BLE devices. The iOS API is not too bad either but then you have to deal with Apple. The Android API is terrible, and the Android Bluetooth stack is unreliable and buggy.
Re: Show HN: OpenBLE, Swagger for Bluetooth
#17One thing I’ve wanted to do for end to end testing purposes is to be able to make pretend Bluetooth devices from my Mac. I’ve not seen much to suggest a simple way to do this, does anyone know of anything that I can use to make my Mac Bluetooth look like a heart rate monitor, for example?
Re: Show HN: OpenBLE, Swagger for Bluetooth
#18One thing I’ve wanted to do for end to end testing purposes is to be able to make pretend Bluetooth devices from my Mac. I’ve not seen much to suggest a simple way to do this, does anyone know of anything that I can use to make my Mac Bluetooth look like a heart rate monitor, for example?
I've also dabbled with bleno and noble for emulating and/or communicating with peripheral and central devices, respectively. (https://www.npmjs.com/package/@abandonware/bleno)
Re: Show HN: OpenBLE, Swagger for Bluetooth
#19From https://news.ycombinator.com/item?id=37522059 :
> https://github.com/DJm00n/ControllersInfo: HID profiles for Xbox 360, Xbox One, PS4, PS5, Stadia, and Switch
> "HID over GATT Profile (HOGP) 1.0" https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?d...
Re: Show HN: OpenBLE, Swagger for Bluetooth
#20I really wish WebBluetooth (and WebUSB, etc) was more widely supported. It really opens the door for so many cool applications.
A lot of hardware has very minimal protection against attacks, because the general idea is that anyone able to run software on a machine could also just trivially physically attack the device itself. The result is that you can often update device firmware over Bluetooth or USB.
Allowing random websites to suddenly have unlimited access to poorly-secured devices is a terrible idea. Google's opinion seems to be that a permission popup is enough, but you get basically identical popups for a website wanting to send you notifications, get your current location, or completely own your physical hardware.