@autorunify/capacitor-nrfmesh 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -103,6 +103,7 @@ class FormatManager {
|
|
|
103
103
|
@SuppressLint("RestrictedApi")
|
|
104
104
|
fun toJSON(node: ProvisionedMeshNode): JSObject {
|
|
105
105
|
return JSObject().apply {
|
|
106
|
+
put("uuid", node.uuid)
|
|
106
107
|
put("name", node.nodeName)
|
|
107
108
|
put("deviceKey", MeshParserUtils.bytesToHex(node.deviceKey, false))
|
|
108
109
|
put("unicastAddress", node.unicastAddress)
|
|
@@ -230,14 +230,17 @@ class MeshManager {
|
|
|
230
230
|
}
|
|
231
231
|
if (unode != null) mesh.unodes.remove(unode)
|
|
232
232
|
|
|
233
|
-
|
|
234
233
|
CoroutineScope(Dispatchers.IO).launch {
|
|
235
234
|
try {
|
|
236
235
|
mesh.disconnect()
|
|
237
236
|
} catch (ex: Exception) {
|
|
238
237
|
}
|
|
239
238
|
}
|
|
240
|
-
|
|
239
|
+
|
|
240
|
+
meshNode!!.nodeName=meshNode
|
|
241
|
+
.uuid
|
|
242
|
+
.replace("-","")
|
|
243
|
+
.substring(8,20)
|
|
241
244
|
|
|
242
245
|
mesh.async.emit(JSObject().apply {
|
|
243
246
|
put("completed", true)
|