Bluetooth Mesh Daemon
Subsystems (2)
PATCH v5 13/14 mesh: Sample device composition in JSON format
In reply to Brian GixFrom: Inga Stotland <[email protected]>
This is a sample unprovisioned device composition described in JSON format.
--- mesh/config/composition.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 mesh/config/composition.json
mesh/config/composition.json new file +44 -0
@@ -0,0 +1,44 @@ +{ + "$schema":"file:\/\/\/BlueZ\/MeshD\/local_schema\/mesh.jsonschema", + "meshName":"BT Mesh sample node", + "UUID":"E0ED0F0200000000203C100200000000", + "cid":"0002", + "pid":"0010", + "vid":"0001", + "crpl":"000a", + "proxy":"unsupported", + "friend":"disabled", + "lowPower":"disabled", + "relay":{ + "mode":"enabled" + }, + "elements":[ + { + "elementIndex":0, + "location":"0001", + "models":[ + { + "modelId":"0000" + }, + { + "modelId":"1001" + } + ] + } + ], + "provision": { + "privateKey": "729aa0670d72cd6497502ed473502b037e8803b5c60829a5a3caa219505530ba", + "algorithms": [ 0 ], + "inputOOB": { + "size": 8, + "actions": [ 2, 3] + }, + "outputOOB": { + "size": 8, + "actions": [ 3, 4] + }, + "publicType": false, + "staticType": false + }, + } +}
Signature · 1 line
2.14.4
PATCH v5 14/14 Makefile for meshd
In reply to Brian GixFrom: Inga Stotland <[email protected]>
--- Makefile.am | 1 + Makefile.mesh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 Makefile.mesh
Makefile.am +1 -0
@@ -235,6 +235,7 @@ unit_tests = include Makefile.tools include Makefile.obexd include android/Makefile.am +include Makefile.mesh if HID2HCI rulesdir = @UDEV_DIR@/rules.d
Makefile.mesh new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.14.4
Marcel Holtmann
maintainerRe: [PATCH BlueZ v5 14/14] Makefile for meshd
Hi Brian,
Quoted 24 lines
---
Makefile.am | 1 +
Makefile.mesh | 44 ++++++++++++++++++++++++++++++++++++++++++++2 files changed, 45 insertions(+)create mode 100644 Makefile.mesh
Makefile.am +0
-0@@ -235,6 +235,7 @@ unit_tests =include Makefile.tools
include Makefile.obexd
include android/Makefile.am
+include Makefile.meshif HID2HCI
rulesdir = @UDEV_DIR@/rules.dMakefile.mesh new file +0
-0
Makefile.mesh line 2
Quoted 2 lines
Makefile.mesh new file +2
-0@@ -0,0 +1,44 @@ +if MESH +mesh_json_sources = mesh/mesh-db.h mesh/mesh-db.c
why are these split? Do you plan a version that doesn't require JSON?
Quoted 16 lines
Makefile.mesh new file +16
-0+mesh_common_sources = mesh/mesh-defs.h \ + mesh/util.h mesh/util.c + +mesh_sources = $(mesh_common_sources) $(mesh_json_sources) \ + mesh/mesh.h mesh/mesh.c \ + mesh/mesh-io.h mesh/mesh-io.c \ + mesh/mesh-io-api.h mesh/bt.h \ + mesh/mesh-io-generic.h \ + mesh/mesh-io-generic.c \ + mesh/hci.h mesh/hci.c \ + mesh/storage.h mesh/storage.c \ + mesh/net.h mesh/net.c \ + mesh/display.h mesh/display.c \ + mesh/crypto.h mesh/crypto.c \ + mesh/friend.h mesh/friend.c \ + mesh/appkeys.h mesh/appkey.c \
Makefile.mesh line 28
Quoted 10 lines
Makefile.mesh new file +10
-0+ mesh/node.h mesh/node.c \ + mesh/prov.h mesh/prov.c \ + mesh/provision.h mesh/provision.c \ + mesh/model.h mesh/model.c \ + mesh/cfgmod.h mesh/cfgmod-server.c + +libexec_PROGRAMS += mesh/meshd + +mesh_meshd_SOURCES = $(mesh_sources) \ + mesh/main.c
Move it on the same line here.
Makefile.mesh line 31
Quoted 3 lines
Makefile.mesh new file +3
-0+ +mesh_meshd_LDADD = /usr/lib64/libell.la src/shared/ecc.lo \ + @DBUS_LIBS@ -lell -ljson-c -ldl
The /usr/lib64/libell.la is wrong. It is not portable. @ELL_LIBS@ is needed here. Also what is the -ldl for?
Makefile.mesh line 44
Quoted 13 lines
Makefile.mesh new file +13
-0+ +noinst_PROGRAMS += mesh/btmesh + +mesh_btmesh_SOURCES = $(mesh_sources) \ + mesh/agent.h \ + mesh/agent.c \ + mesh/btmesh.c + +mesh_btmesh_LDADD = /usr/lib64/libell.la src/shared/ecc.lo \ + src/libshared-mainloop.la \ + -lreadline -lell -ljson-c -ldl + +endif
Regards
Marcel