Skip to content

Commit 0b83596

Browse files
committed
Updated readme
1 parent c1ef219 commit 0b83596

File tree

1 file changed

+56
-21
lines changed

1 file changed

+56
-21
lines changed

README.md

Lines changed: 56 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -833,42 +833,77 @@ Set the target node to configure, 0100 is the unicast address of the
833833
primary element.
834834
835835
appkey-add 1
836-
AppKey index 1 which points the key stored in prov_db.json
836+
add AppKey from prov_db.json
837+
AppKey index: 1
837838
838839
bind 0 1 1000
839-
element index 0
840-
AppKey index 1 which points the key stored in prov_db.json
841-
model id 1000
840+
bind appkey to element in model
841+
element index: 0
842+
AppKey index: 1
843+
model id 1000: Generic On/Off Server (BT_MESH_MODEL_ID_GEN_ONOFF_SRV)
844+
https://github.com/apache/mynewt-nimble/blob/master/nimble/host/mesh/include/mesh/access.h
842845
843846
bind 0 1 1001
847+
bind appkey to element in model
848+
element index: 0
849+
AppKey index: 1
850+
model id 1001: Generic On/Off Client (BT_MESH_MODEL_ID_GEN_ONOFF_CLI)
851+
844852
bind 0 1 1002
853+
bind appkey to element in model
854+
element index: 0
855+
AppKey index: 1
856+
model id 1002: Generic Level Server (BT_MESH_MODEL_ID_GEN_LEVEL_SRV)
857+
845858
bind 0 1 1003
859+
bind appkey to element in model
860+
element index: 0
861+
AppKey index: 1
862+
model id 1003: Generic Level Client (BT_MESH_MODEL_ID_GEN_LEVEL_CLI)
846863
847864
sub-add 0100 c000 1000
848-
element address a.k.a unicast address 0100
849-
group address c000 to subscribe, range: 0xc000 ~ 0xffff
850-
model id 1000
865+
subscribe to element in group address
866+
element address a.k.a unicast address: 0100
867+
group address: c000, range: 0xc000 ~ 0xffff
868+
model id 1000: Generic On/Off Server (BT_MESH_MODEL_ID_GEN_ONOFF_SRV)
851869
852870
sub-add 0100 c000 1002
853-
element address a.k.a unicast address 0100
854-
group address c000 to subscribe, range: 0xc000 ~ 0xffff
855-
model id 1002
871+
subscribe to element in group address
872+
element address a.k.a unicast address: 0100
873+
group address: c000, range: 0xc000 ~ 0xffff
874+
model id 1002: Generic Level Server (BT_MESH_MODEL_ID_GEN_LEVEL_SRV)
875+
876+
pub-set
877+
<ele_addr>
878+
<pub_addr>
879+
<app_idx>
880+
<per (step|res)> <re-xmt (cnt|per)>
881+
<mod id> [cid]
856882
857883
pub-set 0100 c000 1 0 5 1001
858-
element address a.k.a unicast address 0100
859-
group address c000 to subscribe, range: 0xc000 ~ 0xffff
860-
1
861-
0
862-
5
863-
model id 1001
884+
publish element to group address
885+
element address a.k.a unicast address: 0100
886+
group address: c000, range: 0xc000 ~ 0xffff
887+
AppKey index: 1
888+
Publish period: 0
889+
Publish retransmit count: 5
890+
model id 1001: Generic On/Off Client (BT_MESH_MODEL_ID_GEN_ONOFF_CLI)
891+
892+
Mesh Profile Bluetooth® Specification
893+
894+
3.7.6.1.3 Periodic publishing
895+
A model may be configured to send status messages periodically regardless of whether the state has changed or not. This is done by using a Publish Period (see Section 4.2.2.2). When the Publish Period is set to a non-zero value, unless specified otherwise by a higher layer specification, a status message shall be published at least once every Publish Period. When the Publish Period is set to 0, the status messages shall only be published on a state change when enabled.
896+
897+
3.7.6.1.4 Publish retransmissions
898+
When a new message is being published by a model instance, all pending retransmissions of the previous message published by the model instance shall be canceled, and the model instance shall retransmit the new message as specified by the Publish Retransmit Count and Publish Retransmit Interval Steps states.
864899
865900
pub-set 0100 c000 1 0 5 1003
866901
element address a.k.a unicast address 0100
867-
group address c000 to subscribe, range: 0xc000 ~ 0xffff
868-
1
869-
0
870-
5
871-
model id 1003
902+
group address: c000, range: 0xc000 ~ 0xffff
903+
AppKey index: 1
904+
Publish period: 0
905+
Publish retransmit count: 5
906+
model id 1003: Generic Level Client (BT_MESH_MODEL_ID_GEN_LEVEL_CLI)
872907
873908
<<
874909
power-> 0, color-> 0

0 commit comments

Comments
 (0)