-
Notifications
You must be signed in to change notification settings - Fork 217
Add a UUID generator function #1
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
Hmm, I'm not sure if this is a good idea, https://www.uuidgenerator.net/ mentions:
We won't have easy access to the timestamp unless we connect via WiFi and use NTP. Then we'd also need to know the devices MAC (or BT address).
Unless we use the crypto chip (which needs to be configured and locked), the Arduino random number API's are pseudo random. What do you think? |
Hmmm... I like the idea of making it easy to generate UUIDs. At the very least, mentioning the uuidgenerator site in the docs is good, perhaps along with these two descriptions. It's not possible to use the WiFi and the BLE at the same time, is it? I suppose it'd be possible to use the RTC and the MAC address to generate the version 1 UUID. But that'd be better as its own example or library. Other than that, maybe you are right, better to use an easily accessible external source. t. |
Agreed, when the docs are updated, I'll make sure it gets added
Currently no, the SPI pins connected to the NINA are converted to another UART to use for HCI communications. |
Hm. Then best to go with a link in the documentation. |
would this fit the need of generating UUIDs ? |
I was wondering: how do you see a compile-time directive to generate a random UUID? |
Initial - encrypted read
Every BLE sketch needs a handful of them. We all end up going to https://www.uuidgenerator.net/ to get them. Why not just build in the function?
const char[] createUUID(), for example.
The text was updated successfully, but these errors were encountered: