9783 Commits

Author SHA1 Message Date
Milanka Ringwald
4d81908018 mesh: call mesh_access_state_changed on change 2019-07-20 08:50:32 +02:00
Matthias Ringwald
6aeeab2de1 mesh: restart publication on config server messages 2019-07-20 08:50:32 +02:00
Matthias Ringwald
3c33c940a7 mesh: add mesh_model_publication_stop 2019-07-20 08:50:31 +02:00
Matthias Ringwald
947da55084 mesh: implement model publication mechanism in mesh_model_publication_run 2019-07-20 08:50:31 +02:00
Matthias Ringwald
4b77c15480 mesh: add mesh_model_publication_run 2019-07-20 08:50:31 +02:00
Matthias Ringwald
0563d7ddc8 mesh: add publish_now to model_publication_t 2019-07-20 08:50:31 +02:00
Matthias Ringwald
7c8ffd3dee mesh: use next_timeout_ms in mesh_secure_network_beacon_run 2019-07-20 08:50:31 +02:00
Milanka Ringwald
b0702c812b mesh: fix range in add_and_clip_int16 2019-07-20 08:50:31 +02:00
Milanka Ringwald
0d9cf833a3 mesh: define mesh_generic_on_off_client_publish_value 2019-07-20 08:50:31 +02:00
Milanka Ringwald
87b3ac30c4 mesh: defined MESH_SUBEVENT_GENERIC_LEVEL_STATUS 2019-07-20 08:50:31 +02:00
Milanka Ringwald
718bf0fc6a mesh: move struct definition to mesh_generic_model.h 2019-07-20 08:50:31 +02:00
Milanka Ringwald
353f45a0f9 mesh: store values into state 2019-07-20 08:50:31 +02:00
Milanka Ringwald
bc77818c2e mesh: move state def to mesh_generic_model.h 2019-07-20 08:50:31 +02:00
Milanka Ringwald
c2a5dc789b mesh: move state def to mesh_generic_model.h 2019-07-20 08:50:31 +02:00
Matthias Ringwald
24678bce17 mesh: add basic support for model publication (mesh_publish_state_t function define) 2019-07-20 08:50:31 +02:00
Matthias Ringwald
e2b16cca7d mesh: move proxy config message handling to mesh_proxy 2019-07-20 08:50:31 +02:00
Matthias Ringwald
f276878605 mesh: let network handle proxy configuration messages from gatt bearer 2019-07-20 08:50:31 +02:00
Matthias Ringwald
d00dae02bc mesh: pre-sort proxy configuration handling code in mesh.c 2019-07-20 08:50:31 +02:00
Matthias Ringwald
becd79c1a0 mesh: on delete appkey, remove from Model to AppKey list and stop publication if AppKey is used for that 2019-07-20 08:50:31 +02:00
Matthias Ringwald
b2f65f9f1b mesh: extract mesh_configuration_server_delete_appkey 2019-07-20 08:50:31 +02:00
Matthias Ringwald
31a6a8527c mesh: don't send netework pdu over gatt bearer if received from there 2019-07-20 08:50:31 +02:00
Matthias Ringwald
8b0d5c7c2a mesh: relay adv message if relay or proxy active, relay gatt message if proxy active 2019-07-20 08:50:31 +02:00
Matthias Ringwald
ec22fe6707 mesh: extract set flag MESH_NETWORK_PDU_FLAGS_RELAY when queue received message for transmission 2019-07-20 08:50:31 +02:00
Matthias Ringwald
90f8142e51 mesh: extract mesh_network_relay_message 2019-07-20 08:50:31 +02:00
Matthias Ringwald
f727526daf mesh: track if network pdu was received from gatt bearer 2019-07-20 08:50:31 +02:00
Matthias Ringwald
fd7ffe0047 mesh: use proxy_configuration_message instead of proxy_message 2019-07-20 08:50:31 +02:00
Matthias Ringwald
bd9002edc0 mesh: define MESH_NETWORK_PDU_FLAGS_PROXY_MESSAGE 2019-07-20 08:50:31 +02:00
Matthias Ringwald
83f51e585b mesh: simulate gatt connected in mesh_message_test 2019-07-20 08:50:31 +02:00
Matthias Ringwald
f18b16f406 mesh: relay message on network layer only if relay feature is enabled 2019-07-20 08:50:31 +02:00
Matthias Ringwald
917dc5c7e7 mesh: track gatt bearer connection state, only use if proxy is enabled 2019-07-20 08:50:31 +02:00
Matthias Ringwald
4662af4a88 mesh: streamline adv + gatt baerer api: network pdu, provisioning pdu, beacon 2019-07-20 08:50:31 +02:00
Matthias Ringwald
a59b27450e mesh: avoid redirect of mesh network messages via mesh.c 2019-07-20 08:50:31 +02:00
Matthias Ringwald
452750bf56 mesh: disable adv bearer again 2019-07-20 08:50:31 +02:00
Matthias Ringwald
48e5459ca0 mesh: support gatt-only config in mesh_message_test 2019-07-20 08:50:31 +02:00
Matthias Ringwald
eead582d3e mesh: notify upper layer on pdu sent if gatt bearer only 2019-07-20 08:50:31 +02:00
Matthias Ringwald
51ae8f0aee mesh: register for mesh beacons to avoid crash, temp enable adv bearer 2019-07-20 08:50:31 +02:00
Matthias Ringwald
c7dcf8185f mesh: sort adv vs. gatt bearer code 2019-07-20 08:50:31 +02:00
Matthias Ringwald
cad631fe75 mesh: fix compile 2019-07-20 08:50:31 +02:00
Matthias Ringwald
8b0144a2f7 mesh: skip sending secure beacon via gatt bearer if gatt proxy not enabled 2019-07-20 08:50:31 +02:00
Matthias Ringwald
21ed246f1c mesh: skip sending secure beacon via gatt bearer on proxy disconnect 2019-07-20 08:50:31 +02:00
Matthias Ringwald
2931ab39ed mesh: skip sending via GATT bearer if not connected 2019-07-20 08:50:31 +02:00
Matthias Ringwald
b3a527ece4 mesh: track proxy connection handle in beacon 2019-07-20 08:50:31 +02:00
Matthias Ringwald
77ba3d3f9f mesh: move src/ble/mesh to src/mesh 2019-07-20 08:50:31 +02:00
Matthias Ringwald
ad28fd3478 mesh: removed left overs from mesh_upper_transport.h 2019-07-20 08:50:31 +02:00
Matthias Ringwald
d1cd978cd1 mesh: mesh_transport -> mesh_upper_transport 2019-07-20 08:50:31 +02:00
Matthias Ringwald
cbb391cd7c mesh: move mesh_transport to ble/mesh 2019-07-20 08:50:31 +02:00
Matthias Ringwald
52d6e800ce mesh: start sending Secure Network Beacon after provisioning and on start 2019-07-20 08:50:31 +02:00
Matthias Ringwald
491c14d193 mesh: send secure network beacon over gatt, too 2019-07-20 08:50:30 +02:00
Matthias Ringwald
22c60b06d6 mesh: update beacon interval based on number of observed beacons 2019-07-20 08:50:30 +02:00
Matthias Ringwald
caad5b3981 mesh: count secure network beacons, validate auth validate if new flags are set and forward to higher layer if correct 2019-07-20 08:50:30 +02:00