- Notifications
You must be signed in to change notification settings - Fork229
Definition for known format types.#230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
CLAassistant commentedApr 6, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
rmlearney-digicatapult commentedJun 24, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
IMHO would it look better if these were snake_case rather than CamelCase, and made to resemble the C99 standard: BleUint8 -> ble_uint8_t etc. But probably irrelevant for this. |
mklemarczyk commentedJun 24, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It is a constant for a value, you can not declare those types in the code. Will it not create a confusion with the value types form C99 ? The current naming follows the other constants like BLEEncryption, BLERead. I would like to ask if there is a concern for merge that PR that I can address? It is waiting quite a long time. |
mklemarczyk commentedSep 14, 2022
@facchinm You do not want this change? There are several PRs waiting, and no comment or merged. |
mklemarczyk commentedJun 11, 2023
Bump, any answer on the integration ? I wonder why it takes so long... |
Uh oh!
There was an error while loading.Please reload this page.
To simplify usage of the ArduinoBLE, I added the definitions for format types.
In the future I would like to add also known services and characteristics uuid codes.
I check with the Arduino compiler that the definitions are included in result binary only if they are used by the code. So no extra space will be taken, Please review and tell what do you think about the idea. I find it more useful than searching the internet for proper values.
I has been forced to use char type, as Description constructor does not accept the
uint8_ttype as input for value.BLEDescriptor::BLEDescriptor(const char* uuid, const uint8_t value[], int valueSize)BLEDescriptor::BLEDescriptor(const char* uuid, const char* value)