Microchip® Advanced Software Framework

thirdparty/wireless/ble_sdk/ble_services/cscs/cscs.h File Reference

Custom Serial Chat Service Declarations.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  csc_serv
 Custom serial chat service info. More...
 

Macros

#define CSC_UUID_128_LEN   (16)
 Custom serial chat UUID length. More...
 

Typedefs

typedef struct csc_serv csc_serv_t
 Custom serial chat service info. More...
 

Functions

at_ble_status_t csc_serv_init (uint8_t *buf, uint16_t len)
 Initialize the csc service initialization function. More...
 
at_ble_status_t csc_serv_send_data (uint16_t connhandle, uint8_t *databuf, uint16_t datalen)
 Function used for sending data to remote device. More...
 

#define CSC_UUID_128_LEN   (16)

Custom serial chat UUID length.

typedef struct csc_serv csc_serv_t

Custom serial chat service info.

at_ble_status_t csc_serv_send_data ( uint16_t  connhandle,
uint8_t *  databuf,
uint16_t  datalen 
)

Function used for sending data to remote device.

Parameters
[in]bufBuffer pointer for data to be send
[in]lensize of buffer

Function used for sending data to remote device.

References at_ble_characteristic_value_get(), at_ble_characteristic_value_set(), at_ble_notification_send(), AT_BLE_SUCCESS, at_ble_characteristic_t::char_val_handle, at_ble_characteristic_t::client_config_handle, DBG_LOG, csc_serv::endpoint_chars, length, and status.

Referenced by csc_prf_send_data().