mbox series

[BlueZ,0/6] tools/mesh-gatt meshctl tool improvements

Message ID 20211207225604.35156-1-daniele.biagetti@cblelectronics.com
Headers show
Series tools/mesh-gatt meshctl tool improvements | expand

Message

Daniele Biagetti Dec. 7, 2021, 10:55 p.m. UTC
Hi all,

The present patch series adds some functionalities and improvements to the meshctl tool.
More precisely:
- Add onoff set unacknowledge message to onoff client model

- Fix status messages processing
   The status messages was processed and displayed even if they do
   not belong to the present model. This fix ensure that the status
   messages are processed only if they have the correct opcode.

- Fix unwanted return in onoff client model
   Replaced the return statement with a warning message in case of
   transmission or reception of messages coming from unknown addresses
   (such as group addresses)

- Add subscription delete message to config client model

- Generic level model
   Limited to the following messages:
   * Generic Level Get
   * Generic Level Set
   * Generic LevelSet Unacknowledge
   * Generic Level Status

- Generic OnPowerUp model

Best regards

Daniele Biagetti (6):
  tools/mesh-gatt: Add onoff set unack message to onoff client model
  tools/mesh-gatt: Fix status messages processing
  tools/mesh-gatt: Fix unwanted return in onoff client model
  tools/mesh-gatt: Add subscription delete message to config client
    model
  tools/mesh-gatt: Add generic level model support
  tools/mesh-gatt: Add generic power onoff client model

 Makefile.tools                    |   6 +-
 tools/mesh-gatt/config-client.c   |  40 +++++
 tools/mesh-gatt/level-model.c     | 288 ++++++++++++++++++++++++++++++
 tools/mesh-gatt/level-model.h     |  21 +++
 tools/mesh-gatt/local_node.json   |  10 +-
 tools/mesh-gatt/node.c            |  11 ++
 tools/mesh-gatt/onoff-model.c     |  56 +++---
 tools/mesh-gatt/onpowerup-model.c | 250 ++++++++++++++++++++++++++
 tools/mesh-gatt/onpowerup-model.h |  21 +++
 tools/meshctl.c                   |   8 +
 10 files changed, 688 insertions(+), 23 deletions(-)
 create mode 100644 tools/mesh-gatt/level-model.c
 create mode 100644 tools/mesh-gatt/level-model.h
 create mode 100644 tools/mesh-gatt/onpowerup-model.c
 create mode 100644 tools/mesh-gatt/onpowerup-model.h