mgmt: Bluetooth transport for SMP (mcumgr).
Add a Bluetooth service dedicated to transporting mcumgr SMP requests and responses. Signed-off-by: Christopher Collins <ccollins@apache.org>
This commit is contained in:
parent
14735116d1
commit
d14b1aca62
2 changed files with 192 additions and 0 deletions
32
include/mgmt/smp_bt.h
Normal file
32
include/mgmt/smp_bt.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright Runtime.io 2018. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/** @file
|
||||
* @brief Bluetooth transport for the mcumgr SMP protocol.
|
||||
*/
|
||||
|
||||
#ifndef H_SMP_BT_
|
||||
#define H_SMP_BT_
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue