How does libcacard implement automatic allocation of node ID?

I currently use canardSetLocalNodeID to assign an ID, but I want to use dynamic allocation, as if I don’t have this feature in libcanard

Libcanard does not contain any application-layer logic, so you’ll have to implement that yourself. Start from this demo app: