ble-mqtt-bridge icon indicating copy to clipboard operation
ble-mqtt-bridge copied to clipboard

Enhanced config file

Open rikroe opened this issue 6 years ago • 5 comments

Enhancement of #7.

For my setup is nice not only to communicate with the bridge via MAC addresses/handles/UUIDs but also with human-readable names/tags.

Through a couple of iterations this leads to a config file where you are able to add names to devices and define handles, UUIDs or alias characteristics for a handle. If a handle is defined but called via UUID or characteristic, the handle will be used for BLE communication because it is much faster than UUIDs.

However, if you don't want to use these options it's completly possible to ignore the additional configs and leave them out.

Hope you can include it in your base branch :)

rikroe avatar Nov 22 '18 21:11 rikroe

Thanks a lot for this. I'll look at it in more depth soon. One thing I've noticed is that the configuration file is json - I think YAML is more readable and familiar. What do you think?

seidler2547 avatar Nov 22 '18 23:11 seidler2547

Sure, YAML is fine as well. I'm more used to JSON configs as I'm mostly developing in environments that support JSON configs natively, but feel free to update!

rikroe avatar Nov 23 '18 14:11 rikroe

Whats the status of this implementation?

If you want to use a YAML config, then I can implement that to bring this PR through. I have would have some more local changes to send only one MQTT message so I would squash all these changes together.

rikroe avatar Jul 18 '19 18:07 rikroe

Sorry, I actually have the working version here, I just need to push it. I'll do it when I'm back from my vacation next week.

seidler2547 avatar Jul 18 '19 19:07 seidler2547

Hey, hope you had a wonderful christmas time! Any update this? :)

rikroe avatar Jan 08 '20 20:01 rikroe