sys/bluetil: add bluetil_addr_from_str()#11640
Conversation
miri64
left a comment
There was a problem hiding this comment.
ACK, though it basically identical in function to size_t gnrc_netif_addr_from_str(), I can understand that there you don't want to depend on that. Maybe we can consolodate somewhere outside at a later point.
sys/include/net/bluetil/addr.h
Outdated
| /** | ||
| * @brief Parse a BLE address from the given string | ||
| * | ||
| * @param[in] add_str address string, must be at least of length |
There was a problem hiding this comment.
Travis reports: addr parameter missing. Also (nit-picky) why not addr_str?
There was a problem hiding this comment.
fixed. The add_str was simply a typo, in the c file I already used addr_str :-)
e2e72b2 to
665b1d6
Compare
|
addressed doc fix issues and squashed. |
Would probably make sense. Maybe move this somehow to the |
Yeah, but that would require C-files for those modules... |
Contribution description
This PR adds a function to the
bluetil/addrhelper module for parsing BLE link layer addresses from a string (xx:xx:xx:xx:xx:xx).Should be simple and straight forward.
Testing procedure
#11578 is reabsed on this PR. So to test this function, flash the
examples/nimble_gnrcapplication to any supported board and run theble connect BLE_ADDRshell command.Issues/PRs references
needed for #11578