mesh: Change API to deliver tokens via JoinComplete 13/234213/1
authorPrzemysław Fierek <przemyslaw.fierek@silvair.com>
Tue, 14 Apr 2020 08:55:55 +0000 (10:55 +0200)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 22 May 2020 04:23:43 +0000 (09:53 +0530)
commite9efb37aff2fbc6f5807cd97d3fdeb671fa3d83b
tree3cf0c9248b333c4078c341b77f2417bd6b309025
parente27224eeebc184616dd99beef7fcb8125a95ddaf
mesh: Change API to deliver tokens via JoinComplete

This patch changes Import and CreateNetwork API to deliver tokens via
the JoinComplete method call.  When application doesn't raise any error
during handling JoinComplete then it is assumed that the token has been
saved, otherwise when application replies with an error message then the
node is removed.

Change-Id: I76b7e61ede93aac732bb24ff6948ff75108d939e
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/mesh.c