Live data from Hacker News

Show HN: OpenBLE, Swagger for Bluetooth

demo.openble.org

41–45 of 45 posts

Re: Show HN: OpenBLE, Swagger for Bluetooth

#41

Is there a HID over GATT YAML? From 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...

Not yet but cool idea. Lot of profiles are reused, so it makes sense to write a yaml repository for common profiles.

Re: Show HN: OpenBLE, Swagger for Bluetooth

#42
post #5

> Features > 1. Define your GATT services in YAML. Uh, nope, thank you.

I started with TOML but switched to YAML because people are familiar with OpenAPI. Ultimately everything is parsed to a Javascript object so you can have adapters in your favourite spec language.

Re: Show HN: OpenBLE, Swagger for Bluetooth

#43

> 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…

> But once you have defined and tested your GATTs, it hasn’t been my experience to come back to it a ton of times.

> It was my experience to care more about distance, speed, interval, and MTU on actual hardware than protocol confirmation to a PC.

That's exactly my concern, coupled with a (perceived) small pool of Bluetooth developers. Do you think there's a market for a Postman style commercial cloud product for team collaboration?

Re: Show HN: OpenBLE, Swagger for Bluetooth

#44
Great stuff - and it seems you and I are a kindred spirit. For the past few years I've been building iOS and Android BLE apps/SDKs using my own GATT YML spec, and using that to generate working apps+SDKs from custom GATT profiles.

It's like magic when using an LLM to convert the spec to YML to runnable apps.

There absolutely needs to be a general consensus around defining a GATT profile. The challenge is that each company has their own way of using GATT and documenting how it works.

Re: Show HN: OpenBLE, Swagger for Bluetooth

#45

As another commenter mentioned, it's common practice to shove all your device's functionality into one characteristic to reduce service discovery time (and, in some cases, memory footprint in firmware). With that in mind, can OpenBLE be used to describe the structure of the bytes being read, written, and indicated by the characteristics? OpenAPI is useful because it not only generates a frontend for testing an API, i…

Hey, thanks for checking out my project. So the spec is independent of Web Bluetooth; like Swagger is to Swagger UI. I considered electron but it needs installation and wouldn't run on mobiles. Perhaps Web Bluetooth is not ready for devices, but is perfect for dev tools like this one. As of today it can generate an Arduino GATT server; I'm working to support more platforms, Zephyr, iOS etc.

Great! That's exciting.
Post reply on HN