Bluetooth: Shell: Implement support for gatt-metrics off
With introduction of bt_gatt_service_unregister it is now possible to unregister service at runtime. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
42c2b2ea81
commit
17b340cc13
1 changed files with 2 additions and 2 deletions
|
@ -713,8 +713,8 @@ int cmd_gatt_write_cmd_metrics(int argc, char *argv[])
|
|||
registered = true;
|
||||
}
|
||||
} else if (!strcmp(argv[1], "off")) {
|
||||
printk("Not supported.\n");
|
||||
err = -EINVAL;
|
||||
printk("Unregistering GATT metrics test Service.\n");
|
||||
err = bt_gatt_service_unregister(&met_svc);
|
||||
} else {
|
||||
printk("Incorrect value: %s\n", argv[1]);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue