hashtagchris / DotNet-BlueZ

A quick and dirty library for BlueZ's D-Bus APIs. Focus is on Bluetooth Low Energy APIs.
Apache License 2.0
103 stars 37 forks source link

Add GetServicesAsync() and GetCharacteristicsAsync() #2

Closed springcard closed 4 years ago

springcard commented 4 years ago

Hi,

This library is very useful to work with BlueZ on Raspberry, thank you 👍

I just added 2 methods: GetServicesAsync() and GetCharacteristicsAsync() to help to discover the GATT.

Otherwise, I commented the line Console.WriteLine("GattCharacteristic disposing."); in the method GattCharacteristic.Dispose() and since all others Console.WriteLine()have already been removed.

You can merge this into your repository if you think it can be useful.

Best regards

Corentin Raoult @ SpringCard

jamesra commented 4 years ago

Any chance of this making it into the NuGet package? I also need these functions. Thanks.

springcard commented 4 years ago

Thank you for your review, I applied your suggestions and resolved the conflict, It shlould be good to merge now.

hashtagchris commented 4 years ago

v1.3.0 published with this change.