|
SmartSnippets DA1459x SDK
|
Go to the documentation of this file.
50 typedef void (* wss_indication_changed_cb_t) (uint16_t conn_idx,
bool enabled);
51 typedef void (* wss_indication_sent_cb_t) (uint16_t conn_idx,
bool status);
60 wss_indication_changed_cb_t indication_changed;
62 wss_indication_sent_cb_t indication_sent;
Characteristics common types.
ble_service_t * wss_init(const ble_service_config_t *config, wss_feature_t features, const wss_callbacks_t *cb)
Register Weight Scale Service instance.
WSS weight measurement data.
Definition: wss.h:80
uint16_t height
Definition: wss.h:88
wss_unit_t
WSS unit types.
Definition: wss.h:70
wss_unit_t unit
Definition: wss.h:81
WSS application callbacks.
Definition: wss.h:58
ble_error_t wss_indicate_weight(ble_service_t *svc, uint16_t conn_idx, const wss_weight_measurement_t *measurement)
Send weight indication to client.
Definition: svc_types.h:62
Services handling routines API.
bool wss_is_indication_enabled(ble_service_t *svc, uint16_t conn_idx)
Check if indication is enabled.
uint16_t bmi
Definition: wss.h:87
uint8_t user_id
Definition: wss.h:86
svc_date_time_t time_stamp
Definition: wss.h:85
wss_feature_t
Weight Feature characteristic bit values.
Definition: wss.h:98
ble_error_t
Definition: ble_common.h:53
uint16_t weight
Definition: wss.h:83
Definition: ble_service.h:150
void wss_indicate_weight_all(ble_service_t *svc, const wss_weight_measurement_t *measurement)
Send weight indication to all interested clients.
bool time_stamp_present
Definition: wss.h:84
Definition: ble_service.h:132