-
-
Notifications
You must be signed in to change notification settings - Fork 172
Porting code with 2901 descriptors #411
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jackjansen, sorry for the lack of documentation regarding this. Unfortunately what you're trying to port "should" work but I missed adding the default parameters to the descriptor constructor. There are 2 options to resolve this:
I like the second option best 😄 |
Hmm. So if I understand you correctly statically allocating a NimBLEDescriptor should work? I didn't go down this path because the examples suggested I should use |
Yes, the code has changed since the examples were made. You can create and add descriptors/characteristics outside and add them later now. |
I actually like the Nimble-Arduino code structure for creating the descriptors much better than my old static allocation code. So I've converted my code, and I won't be submitting a PR. |
Cool, sounds good. I'll update the code later then. |
I'm porting code where I've created 2901 descriptors for almost everything with
and then later add
pChar->addDescriptor(levelVBat2901)
.I'm under the impression that this code will have to be restructured, but really posting this issue to ask if I've overlooked something...
The text was updated successfully, but these errors were encountered: