zephyr/include/mgmt/smp_bt.h
Mariusz Skamra 9a69cfbf19 mgmt: Add function to unregister GATT service
This adds a possibility to unregister GATT SMP service.
Using this function, device can disable Firmware Update
functionality, if not needed.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
2018-11-07 14:35:22 +02:00

40 lines
661 B
C

/*
* Copyright Runtime.io 2018. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
* @brief Bluetooth transport for the mcumgr SMP protocol.
*/
#ifndef ZEPHYR_INCLUDE_MGMT_SMP_BT_H_
#define ZEPHYR_INCLUDE_MGMT_SMP_BT_H_
#include <zephyr/types.h>
struct bt_conn;
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Registers the SMP Bluetooth service.
*
* @return 0 on success; negative error code on failure.
*/
int smp_bt_register(void);
/**
* @brief Unregisters the SMP Bluetooth service.
*
* @return 0 on success; negative error code on failure.
*/
int smp_bt_unregister(void);
#ifdef __cplusplus
}
#endif
#endif