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;
|
registered = true;
|
||||||
}
|
}
|
||||||
} else if (!strcmp(argv[1], "off")) {
|
} else if (!strcmp(argv[1], "off")) {
|
||||||
printk("Not supported.\n");
|
printk("Unregistering GATT metrics test Service.\n");
|
||||||
err = -EINVAL;
|
err = bt_gatt_service_unregister(&met_svc);
|
||||||
} else {
|
} else {
|
||||||
printk("Incorrect value: %s\n", argv[1]);
|
printk("Incorrect value: %s\n", argv[1]);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue