Microchip® Advanced Software Framework

next_dst.c File Reference

Next DST Change Service.

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

#include <string.h>
#include "at_ble_api.h"
#include "ble_manager.h"
#include "ble_utils.h"
#include "next_dst.h"

Functions

at_ble_status_t tis_dst_change_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle)
 Send the Read request to the DST change characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event. More...
 
int8_t tis_dst_change_read_response (at_ble_characteristic_read_response_t *read_resp, gatt_dst_handler_t *dst_handler)
 Read response handler for read response for dst change characteristic. More...
 

at_ble_status_t tis_dst_change_read ( at_ble_handle_t  conn_handle,
at_ble_handle_t  char_handle 
)

Send the Read request to the DST change characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.

Send the Read request to the current time characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.

References at_ble_characteristic_read(), AT_BLE_INVALID_STATE, DST_INVALID_CHAR_HANDLE, DST_READ_LENGTH, and DST_READ_OFFSET.

Referenced by app_read_response_cb().

int8_t tis_dst_change_read_response ( at_ble_characteristic_read_response_t read_resp,
gatt_dst_handler_t dst_handler 
)