This implements CreateNetwork() method on org.bluez.mesh.Network1 interface. Invoking this method generates a self-provisioned local node associated with a brand new mesh network. This new network is bare bones: only one network key is defined. The new node assumes the role of mesh network manager and will be able to use soon to be implemented methods of org.bluez.mesh.Management1 interface to provision remote nodes into its network and to add/update/remove network and application keys.
97b8bbc47 mesh: Add CreateNetwork method() implementation
mesh/mesh.c | 70 ++++++++++++++++++-
mesh/node.c | 218 ++++++++++++++++++++++++++++++++++++++++--------------------
mesh/node.h | 8 ++-
3 files changed, 218 insertions(+), 78 deletions(-)