dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
540 stars 199 forks source link

Fix capitalization style for UUID and constant names #437

Closed lukerayman closed 4 years ago

lukerayman commented 4 years ago

In some places there was a different capitalization for the UUID part of names. This PR capitalizes all UUIDs like regular words - Uuid, except strings and comments. Reference: DO capitalize acronyms and abbreviations longer than two letters like words.

I also found SCREAMING_CAPSand UpperCamelCase styles in constant names in ble_error.dart, so I also fixed it by applying the style preferred by Dart. Reference: PREFER using lowerCamelCase for constant names.

There was a naming inconsistency for a parameter holding the value of a characteristic. In some places it was named bytes. I renamed it to value wherever I found it.