Nordic Thingy:52
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ble_tes.h File Reference

Go to the source code of this file.

Data Structures

struct  ble_tes_init_t
 Thingy Envronment Service initialization structure. More...
 
struct  ble_tes_s
 Thingy Envronment Service structure. More...
 

Macros

#define BLE_TES_MAX_DATA_LEN   (GATT_MTU_SIZE_DEFAULT - 3)
 
#define BLE_UUID_TES_SERVICE   0x0200
 

Typedefs

typedef void(* ble_tes_evt_handler_t )(ble_tes_t *p_tes, ble_tes_evt_type_t evt_type, uint8_t *p_data, uint16_t length)
 Thingy Envronment Service event handler type.
 

Functions

uint32_t ble_tes_color_set (ble_tes_t *p_tes, ble_tes_color_t *p_data)
 Function for setting the color data. More...
 
uint32_t ble_tes_gas_set (ble_tes_t *p_tes, ble_tes_gas_t *p_data)
 Function for setting the gas data. More...
 
uint32_t ble_tes_humidity_set (ble_tes_t *p_tes, ble_tes_humidity_t *p_data)
 Function for setting the humidity. More...
 
uint32_t ble_tes_init (ble_tes_t *p_tes, const ble_tes_init_t *p_tes_init)
 Function for initializing the Thingy Envronment Service. More...
 
void ble_tes_on_ble_evt (ble_tes_t *p_tes, ble_evt_t *p_ble_evt)
 Function for handling the Thingy Envronment Service's BLE events. More...
 
uint32_t ble_tes_pressure_set (ble_tes_t *p_tes, ble_tes_pressure_t *p_data)
 Function for setting the pressure. More...
 
uint32_t ble_tes_temperature_set (ble_tes_t *p_tes, ble_tes_temperature_t *p_data)
 Function for setting the temperature. More...