starting with capability service
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
18
components/remote_control/capability_service.c
Normal file
18
components/remote_control/capability_service.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "capability_service.h"
|
||||
|
||||
static const char *capa_json = "{"
|
||||
"}";
|
||||
|
||||
int capa_read(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg)
|
||||
{
|
||||
char *content = "JSON";
|
||||
os_mbuf_append(ctxt->om, content, strlen(content));
|
||||
return 0;
|
||||
}
|
||||
|
||||
int capa_char_1979_user_desc(uint16_t con_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg)
|
||||
{
|
||||
const char *desc = "Capabilities of the device";
|
||||
os_mbuf_append(ctxt->om, desc, strlen(desc));
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user