text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
*/ #define AGG_STATUS_SUCCESS 0x00 #define AGG_STATUS_INVALID_ADDRESS 0x01 #define AGG_STATUS_WRONG_ACCESS_KEY 0x02 #define AGG_STATUS_WRONG_OPCODE 0x03 #define AGG_STATUS_MSG_NOT_UNDERSTOOD 0x04 #define AGG_STATUS_RESPONSE_OVE...
3,180
/* Bluetooth Mesh */ /* */ #ifndef _PROXY_SERVER_H_ #define _PROXY_SERVER_H_ #include "net.h" #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_BLE_MESH_PROXY /** */ #define DEVICE_NAME_SIZE MIN((BLE_MESH_GATT_DEF_MTU_SIZE - 4), (BLE_MESH_GAP_ADV_MAX_LEN - 2)) #else /* For Scan Resp...
3,181
/* Bluetooth Mesh */ /* */ #ifndef _BLE_MESH_TEST_H_ #define _BLE_MESH_TEST_H_ #include "net.h" #include "proxy_client.h" #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif struct bt_mesh_device_network_info { uint8_t net_key[16]; uint16_t net_idx; uint8_t flags; uint32_t iv_index...
3,182
/* Bluetooth Mesh */ /* */ #ifndef _RPL_H_ #define _RPL_H_ #include "net.h" #ifdef __cplusplus extern "C" { #endif void bt_mesh_update_rpl(struct bt_mesh_rpl *rpl, struct bt_mesh_net_rx *rx); bool bt_mesh_rpl_check(struct bt_mesh_net_rx *rx, struct bt_mesh_rpl **match); void bt_mesh_rpl_update(void); void bt_...
3,183
/* Bluetooth Mesh */ /* */ #ifndef _MESH_H_ #define _MESH_H_ #include "net.h" #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_KEY_PRIMARY 0x0000 #define BLE_MESH_KEY_ANY 0xFFFF #define BLE_MESH_ADDR_IS_UNICAST(addr) ((addr) && (addr) = 0x8000 && (addr) = 0xC000 && ...
3,184
/* Bluetooth Mesh */ /* */ #ifndef _ADV_H_ #define _ADV_H_ #include "mesh/access.h" #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif /* Maximum advertising data payload for a single data type */ #define BLE_MESH_ADV_DATA_SIZE 29 /* The user data is a pointer (4 bytes) to struct bt_mesh_...
3,185
/* Bluetooth Mesh */ /* */ #ifndef _CRYPTO_H_ #define _CRYPTO_H_ #include #include "mesh/buf.h" #ifdef __cplusplus extern "C" { #endif struct bt_mesh_sg { const void *data; size_t len; }; int bt_mesh_aes_cmac(const uint8_t key[16], struct bt_mesh_sg *sg, size_t sg_len, uint8_t mac[...
3,186
err) { memcpy(nonce, tmp + 3, 13); } return err; } static inline int bt_mesh_dev_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t dev_key[16]) { return bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); } static ...
3,186
/* */ #ifndef _FAST_PROV_H_ #define _FAST_PROV_H_ #include "net.h" #ifdef __cplusplus extern "C" { #endif const uint8_t *bt_mesh_fast_prov_dev_key_get(uint16_t dst); struct bt_mesh_subnet *bt_mesh_fast_prov_subnet_get(uint16_t net_idx); struct bt_mesh_app_key *bt_mesh_fast_prov_app_key_find(uint16_t app_idx); u...
3,187
/* Bluetooth Mesh */ /* */ #ifndef _ACCESS_H_ #define _ACCESS_H_ #include "net.h" #ifdef __cplusplus extern "C" { #endif /* bt_mesh_model.flags */ enum { BLE_MESH_MOD_BIND_PENDING = BIT(0), BLE_MESH_MOD_SUB_PENDING = BIT(1), BLE_MESH_MOD_PUB_PENDING = BIT(2), }; void bt_mesh_elem_register(struct bt_...
3,188
/* */ #ifndef _PROXY_CLIENT_H_ #define _PROXY_CLIENT_H_ #include "net.h" #include "mesh/adapter.h" #include "prov_common.h" #include "mesh_v1.1/utils.h" #ifdef __cplusplus extern "C" { #endif typedef union { struct { uint8_t net_id[8]; uint16_t net_idx; } net_id; struct { uint...
3,189
/* Bluetooth Mesh */ /* */ #ifndef _TRANSPORT_H_ #define _TRANSPORT_H_ #include "net.h" #ifdef __cplusplus extern "C" { #endif #define TRANS_SEQ_AUTH_NVAL 0xffffffffffffffff #define BLE_MESH_SDU_UNSEG_MAX 11 #define BLE_MESH_CTL_SEG_SDU_MAX 8 #define BLE_MESH_APP_SEG_SDU_MAX 1...
3,190
/* Bluetooth Mesh */ /* */ #ifndef _LOCAL_H_ #define _LOCAL_H_ #include "mesh/types.h" #ifdef __cplusplus extern "C" { #endif int bt_mesh_model_subscribe_group_addr(uint16_t elem_addr, uint16_t mod_id, uint16_t cid, uint16_t group_addr); int bt_mesh_model_unsubscribe_group...
3,191
/* Bluetooth Mesh */ /* */ #ifndef _SCAN_H_ #define _SCAN_H_ #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_STORE_UNPROV_INFO_MAX_NUM 10 #define BLE_MESH_STORE_UNPROV_INFO_QUERY_TYPE_ADDR 0 #define BLE_MESH_STORE_UNPROV_INFO_QUERY_TYPE_UUID BIT(0) #define...
3,192
/** @file */ /* */ #ifndef _BLE_MESH_MAIN_H_ #define _BLE_MESH_MAIN_H_ #include "mesh/access.h" /** */ #ifdef __cplusplus extern "C" { #endif typedef enum { BLE_MESH_NO_OUTPUT = 0, BLE_MESH_BLINK = BIT(0), BLE_MESH_BEEP = BIT(1), BLE_MESH_VIBRATE = BIT(2), ...
3,193
*/ struct bt_mesh_prov { #if CONFIG_BLE_MESH_NODE /** The UUID that's used when advertising as unprovisioned */ const uint8_t *uuid; /** Optional URI. This will be advertised separately from the */ const char *uri; /** Out of Band information field. */ bt_mesh_prov_oob_info_t oob_info; ...
3,193
*/ int (*output_number)(bt_mesh_output_action_t act, uint32_t num); /** @brief Output of a string is requested. */ int (*output_string)(const char *str); /** @brief Input is requested. */ int (*input)(bt_mesh_input_action_t act, uint8_t size); /** @brie...
3,193
*/ int (*prov_pub_key_oob_cb)(uint8_t link_idx); /* Provisioner static oob value */ uint8_t *prov_static_oob_val; /* Provisioner static oob value length */ uint8_t prov_static_oob_len; /** @brief Provisioner input a number read from device output */ int (*prov_input_num)(uin...
3,193
*/ void (*cert_based_prov_start)(uint16_t link_idx); /** @brief Provisioner receive provisioning records list from device. */ void (*records_list_get)(uint16_t link_idx, struct net_buf_simple *data); /** @brief Provisioner receive complete provisioning record from device. */ void (...
3,193
*/ int bt_mesh_prov_input_string(const char *str); /** @brief Provide provisioning input OOB number. */ int bt_mesh_prov_input_number(uint32_t num); /** @brief Enable specific provisioning bearers */ int bt_mesh_provisioner_enable(bt_mesh_prov_bearer_t bearers); /** @brief Disable specific provisioning bearers ...
3,193
*/ bool bt_mesh_is_initialized(void); /** @brief Initialize Mesh support */ int bt_mesh_init(const struct bt_mesh_prov *prov, const struct bt_mesh_comp *comp); /* BLE Mesh deinit parameters */ struct bt_mesh_deinit_param { bool erase; /* Indicate if erasing flash when deinit mesh stack */ }; ...
3,193
*/ bool bt_mesh_is_provisioned(void); /** @brief Check if the device is a Provisioner. */ bool bt_mesh_is_provisioner(void); /** @brief Check if the Provisioner is enabled */ bool bt_mesh_is_provisioner_en(void); /** @brief Toggle the IV Update test mode */ void bt_mesh_iv_update_test(bool enable); /** @brief ...
3,193
/** @file */ /* */ #ifndef _BLE_MESH_HEALTH_SRV_H_ #define _BLE_MESH_HEALTH_SRV_H_ #include "mesh/access.h" /** */ #ifdef __cplusplus extern "C" { #endif struct bt_mesh_health_srv_cb { /* Clear registered faults */ void (*fault_clear)(struct bt_mesh_model *model, uint16_t company_id); /* Run a spec...
3,194
/** @file */ /* */ #ifndef _BLE_MESH_UUID_H_ #define _BLE_MESH_UUID_H_ /** */ #include "mesh/utils.h" #ifdef __cplusplus extern "C" { #endif /** @brief Bluetooth UUID types */ enum { BLE_MESH_UUID_TYPE_16, BLE_MESH_UUID_TYPE_32, BLE_MESH_UUID_TYPE_128, }; /** @brief This is a 'tentative' type and s...
3,195
/* */ #ifndef _BLE_MESH_HCI_H_ #define _BLE_MESH_HCI_H_ #include "mesh/atomic.h" #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif /* Porting form zephyr/subsys/bluetooth/host/hci_core.h */ #define BLE_MESH_LMP_FEAT_PAGES_COUNT 1 /* bt_mesh_dev flags: the flags defined here represent BT controlle...
3,196
h */ /* HCI version from Assigned Numbers */ #define BLE_MESH_HCI_VERSION_1_0B 0 #define BLE_MESH_HCI_VERSION_1_1 1 #define BLE_MESH_HCI_VERSION_1_2 2 #define BLE_MESH_HCI_VERSION_2_0 3 #define BLE_MESH_HCI_VERSION_2_1 4 #define BLE_MESH_HCI_VERSION_3_0 5 #define BLE_MESH_HCI_VERSION_4_0 6 #define B...
3,196
/* */ #ifndef _BLE_MESH_ADAPTER_H_ #define _BLE_MESH_ADAPTER_H_ #include #include "mesh/config.h" #include "mesh/types.h" #include "mesh/utils.h" #include "mesh/uuid.h" #include "mesh/buf.h" #ifdef __cplusplus extern "C" { #endif /* BLE Mesh Max Connection Count */ #ifdef CONFIG_BT_BLUEDROID_ENABLED #define BLE_M...
3,197
g. for notify-only */ BLE_MESH_GATT_PERM_NONE = 0, /** Attribute read permission. */ BLE_MESH_GATT_PERM_READ = BIT(0), /** Attribute write permission. */ BLE_MESH_GATT_PERM_WRITE = BIT(1), /** Attribute read permission with encryption. */ BLE_MESH_GATT_PERM_READ_ENCRYPT = BIT(2), ...
3,197
*/ BLE_MESH_ADV_OPT_ONE_TIME = BIT(1), }; /* Defined GAP timers */ #define BLE_MESH_GAP_SCAN_FAST_INTERVAL 0x0060 /* 60 ms */ #define BLE_MESH_GAP_SCAN_FAST_WINDOW 0x0030 /* 30 ms */ #define BLE_MESH_GAP_SCAN_SLOW_INTERVAL_1 0x0800 /* 1.28 s */ #define BLE_MESH_GAP_SCAN_SLOW_WINDOW_1 ...
3,197
*/ struct bt_mesh_gatt_char { /** Characteristic UUID. */ const struct bt_mesh_uuid *uuid; /** Characteristic properties. */ uint8_t properties; }; /** @brief GATT Service structure */ struct bt_mesh_gatt_service { /** Service Attributes */ struct bt_mesh_gatt_attr *attrs; ...
3,197
..) \ BLE_MESH_ADV_DATA(_type, ((uint8_t []) { _bytes }), \ sizeof((uint8_t []) { _bytes })) /* BLE Mesh Advertising Parameters */ struct bt_mesh_adv_param { /** Bit-field of advertising options */ uint8_t options; /** Minimum Advertising Interval (N * 0.625) */ uint16_t interval_mi...
3,197
625 ms) */ uint16_t interval; /** Scan window (N * 0.625 ms) */ uint16_t window; /** BLE scan filter policy */ uint8_t scan_fil_policy; }; struct bt_mesh_conn { uint16_t handle; bt_mesh_atomic_t ref; }; /** @typedef bt_mesh_scan_cb_t */ typedef void bt_mesh_scan_cb_t(const bt_mesh_addr...
3,197
*/ void (*disconnected)(struct bt_mesh_conn *conn, uint8_t reason); }; struct bt_mesh_prov_conn_cb { void (*connected)(bt_mesh_addr_t *addr, struct bt_mesh_conn *conn, int id); void (*disconnected)(bt_mesh_addr_t *addr, struct bt_mesh_conn *conn, uint8_t reason); ssize_t (*prov_write_descr)(bt_...
3,197
uuid = BLE_MESH_UUID_GATT_PRIMARY, \ .read = bt_mesh_gatts_attr_read_service, \ .user_data = _service, \ .perm = BLE_MESH_GATT_PERM_READ, \ } /** @def BLE_MESH_GATT_SECONDARY_SERVICE */ #define BLE_MESH_GATT_SECONDARY_SERVICE(_service) \ { ...
3,197
uuid = BLE_MESH_UUID_GATT_CHRC, \ .read = bt_mesh_gatts_attr_read_chrc, \ .user_data = (&(struct bt_mesh_gatt_char) { .uuid = _uuid, \ .properties = _props, }), \ .perm = BLE_MESH_GATT_PERM_READ, ...
3,197
/** @file */ /* */ #ifndef _BLE_MESH_CFG_SRV_H_ #define _BLE_MESH_CFG_SRV_H_ #include "mesh/access.h" /** */ #ifdef __cplusplus extern "C" { #endif /** Mesh Configuration Server Model Context */ struct bt_mesh_cfg_srv { struct bt_mesh_model *model; uint8_t net_transmit; /* Network Transmit state *...
3,198
/** @file */ /* */ #ifndef _BLE_MESH_HEALTH_CLI_H_ #define _BLE_MESH_HEALTH_CLI_H_ #include "mesh/client_common.h" /** */ #ifdef __cplusplus extern "C" { #endif /* Health client model common structure */ typedef bt_mesh_client_user_data_t bt_mesh_health_client_t; typedef bt_mesh_client_internal_data_t hea...
3,199
/** @file */ /* */ #ifndef _BLE_MESH_PROXY_H_ #define _BLE_MESH_PROXY_H_ #include /** */ #ifdef __cplusplus extern "C" { #endif /** */ int bt_mesh_proxy_identity_enable(void); #ifdef __cplusplus } #endif /** */ #endif /* _BLE_MESH_PROXY_H_ */
3,200
/** @file */ /* */ #ifndef _BLE_MESH_ACCESS_H_ #define _BLE_MESH_ACCESS_H_ #include "mesh/config.h" #include "mesh/buf.h" #include "mesh/timer.h" /** */ #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_CID_NVAL 0xFFFF #define BLE_MESH_ADDR_UNASSIGNED 0x0000 #define BLE_MESH_ADDR_IPT_ROUTER...
3,201
vnd_models = (_vnd_mods), \ } /** Abstraction that describes a Mesh Element */ struct bt_mesh_elem { /* Unicast Address. Set at runtime during provisioning. */ uint16_t addr; /* Location Descriptor (GATT Bluetooth Namespace Descriptors) */ const uint16_t loc; const uint8_t model_...
3,201
*/ struct bt_mesh_msg_ctx { /** NetKey Index of the subnet to send the message on. */ uint16_t net_idx; /** AppKey Index to encrypt the message with. */ uint16_t app_idx; /** Remote address. */ uint16_t addr; /** Destination address of a received message. Not used for sending. */ uin...
3,201
*/ uint8_t send_ttl; /** Security credentials used for sending the message */ uint8_t send_cred; /** Tag used for sending the message. */ uint8_t send_tag; /** Change by Espressif, model corresponds to the message */ struct bt_mesh_model *model __attribute__((deprecated)); /** Ch...
3,201
*/ struct bt_mesh_model_pub { /** The model the context belongs to. Initialized by the stack. */ struct bt_mesh_model *mod; uint16_t addr; /**elem_idx == 0); } /** Node Composition */ struct bt_mesh_comp { uint16_t cid; uint16_t pid; uint16_t vid; size_t elem_count; struct b...
3,201
/** @file */ /* */ #ifndef _BLE_MESH_CFG_CLI_H_ #define _BLE_MESH_CFG_CLI_H_ #include "mesh/client_common.h" /** */ #ifdef __cplusplus extern "C" { #endif /* Config client model common structure */ typedef bt_mesh_client_user_data_t bt_mesh_config_client_t; typedef bt_mesh_client_internal_data_t config_in...
3,202
/* */ #ifndef _SETTINGS_H_ #define _SETTINGS_H_ #include "net.h" #include "pvnr_mgmt.h" #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_SETTINGS_ROLE_NONE 0 #define BLE_MESH_SETTINGS_ROLE_NODE (BIT(BLE_MESH_NODE)) #define BLE_MESH_SETTINGS_ROLE_PROV (BIT(BLE_MESH_PROVISIONER)) #define BLE_MESH_...
3,203
/* */ #ifndef _SETTINGS_UID_H_ #define _SETTINGS_UID_H_ #include "mesh/types.h" #include "settings_nvs.h" #ifdef __cplusplus extern "C" { #endif int settings_uid_init(void); int settings_uid_load(void); int settings_uid_deinit(void); int settings_uid_erase(void); int bt_mesh_provisioner_open_settings_with_index(u...
3,204
/* */ #ifndef _BLE_MESH_SETTINGS_NVS_H_ #define _BLE_MESH_SETTINGS_NVS_H_ #include "nvs_flash.h" #include "mesh/buf.h" #ifdef __cplusplus extern "C" { #endif typedef nvs_handle_t bt_mesh_nvs_handle_t; #define SETTINGS_ITEM_SIZE sizeof(uint16_t) #define BLE_MESH_GET_ELEM_IDX(x) ((uint8_t)((...
3,205
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models */ #ifndef _STATE_TRANSITION_H_ #define _STATE_TRANSITION_H_ #include "mesh/server_common.h" #include "mesh/generic_server.h" #include "mesh/sensor_server.h" #include "mesh/lighting_server.h" #include "mesh/time_scene_server.h" #ifdef __cplus...
3,206
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models */ #ifndef _LIGHTING_SERVER_H_ #define _LIGHTING_SERVER_H_ #include "mesh/server_common.h" #ifdef __cplusplus extern "C" { #endif struct bt_mesh_light_lightness_state { uint16_t lightness_linear; uint16_t target_lightness_linear; ...
3,207
0 ~ 1000.0, default 250.0 */ float regulator_kid; /* 0x0032, 0.0 ~ 1000.0, default 25.0 */ float regulator_kpu; /* 0x0035, 0.0 ~ 1000.0, default 80.0 */ float regulator_kpd; /* 0x0034, 0.0 ~ 1000.0, default 80.0 */ int8_t regulator_accuracy; ...
3,207
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models */ #ifndef _GENERIC_SERVER_H_ #define _GENERIC_SERVER_H_ #include "mesh/server_common.h" #ifdef __cplusplus extern "C" { #endif struct bt_mesh_gen_onoff_state { uint8_t onoff; uint8_t target_onoff; }; struct bt_mesh_gen_onoff_srv { ...
3,208
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models */ #ifndef _STATE_BINDING_H_ #define _STATE_BINDING_H_ #include "mesh/access.h" #ifdef __cplusplus extern "C" { #endif typedef enum { GENERIC_ONOFF_STATE, GENERIC_LEVEL_STATE, GENERIC_ONPOWERUP_STATE, GENERIC_POWER_ACTUAL_STA...
3,209
/* */ #ifndef _SERVER_COMMON_H_ #define _SERVER_COMMON_H_ #include #include #include "mesh/access.h" #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_SERVER_RSP_MAX_LEN 384 #define BLE_MESH_SERVER_TRANS_MIC_SIZE 4 #define BLE_MESH_CHECK_SEND_STATUS(_func) do { \ ...
3,210
2 of Mesh Model Specification */ #define BLE_MESH_RANGE_UPDATE_SUCCESS 0x00 #define BLE_MESH_CANNOT_SET_RANGE_MIN 0x01 #define BLE_MESH_CANNOT_SET_RANGE_MAX 0x02 #define BLE_MESH_UNKNOWN_REMAIN_TIME 0x3F #define BLE_MESH_DEVICE_SPECIFIC_RESOLUTION 10 enum { BLE_MESH_TR...
3,210
/* */ #ifndef _SENSOR_SERVER_H_ #define _SENSOR_SERVER_H_ #include "mesh/server_common.h" #ifdef __cplusplus extern "C" { #endif /* Sensor Property ID related */ #define INVALID_SENSOR_PROPERTY_ID 0x0000 #define SENSOR_PROPERTY_ID_LEN 0x02 /* Sensor Descriptor state related */ #define SENSO...
3,211
*/ const uint8_t setting_count; struct sensor_setting *settings; /* The Sensor Cadence state may be not supported by sensors based */ struct sensor_cadence *cadence; struct sensor_data sensor_data; /* Values measured by sensors may be organized as arrays (and */ struct sen...
3,211
/* */ #ifndef _TIME_SCENE_SERVER_H_ #define _TIME_SCENE_SERVER_H_ #include "mesh/server_common.h" #ifdef __cplusplus extern "C" { #endif /** */ #define UNKNOWN_TAI_SECONDS 0x0000000000 #define UNKNOWN_TAI_ZONE_CHANGE 0x0000000000 #define UNKNOWN_TAI_DELTA_CHANGE 0x0000000000 #define TAI_UTC_DELTA_...
3,212
/* */ #ifndef _MODEL_COMMON_H_ #define _MODEL_COMMON_H_ #include "mesh/types.h" #ifdef __cplusplus extern "C" { #endif float bt_mesh_sqrt(float square); int32_t bt_mesh_ceil(float num); float bt_mesh_log2(float num); #ifdef __cplusplus } #endif #endif /* _MODEL_COMMON_H_ */
3,213
01 degrees Celsius. */ typedef int16_t bt_mesh_temperature_t; typedef uint16_t bt_mesh_gap_appearance_t; /* Mesh Characteristics Type Definitions */ /* This characteristic represents an electric current. */ typedef uint16_t bt_mesh_electric_current_t; /* The Time Exponential 8 characteristic is used to represent ...
3,215
*/ typedef uint8_t bt_mesh_boolean_t; /* The Chromatic Distance From Planckian characteristic represents a distance of a */ typedef int16_t bt_mesh_chromatic_distance_from_planckian_t; /* This characteristic represents a chromaticity coordinate in a color diagram such as */ typedef uint16_t bt_mesh_chromaticity_c...
3,215
3-1995 Color Rendering Index characteristic is a color rendition index value */ typedef int8_t bt_mesh_cie_13_3_1995_color_rendering_index_t; /* The Coefficient characteristic is used to represent a general coefficient value. */ typedef float bt_mesh_coefficient_t; /* The Count 16 characteristic is used to represent...
3,215
*/ typedef char bt_mesh_fixed_string_16_t[16]; /* The Fixed String 24 characteristic represents a 24-octet UTF-8 string. */ typedef char bt_mesh_fixed_string_24_t[24]; /* The Fixed String 36 characteristic represents a 36-octet UTF-8 string. */ typedef char bt_mesh_fixed_string_36_t[36]; /* The Fixed String 8 chara...
3,215
*/ typedef uint16_t bt_mesh_mass_flow_t; /* The Mesh Provisioning Data In characteristic can be written to send a Proxy PDU */ struct mesh_provisioning_data_in { }; /* The Mesh Provisioning Data Out characteristic can be notified to send a Proxy PDU */ struct mesh_provisioning_data_out { }; /* The Mesh Proxy D...
3,215
*/ typedef uint8_t bt_mesh_time_hour_24_t[3]; /* The Time Millisecond 24 characteristic is used to represent a period of time with */ typedef uint8_t bt_mesh_time_millisecond_24_t[3]; /* The Time Second 8 characteristic is used to represent a period of time with a unit */ typedef uint8_t bt_mesh_time_second_8_t; ...
3,215
/* */ /** @file */ #ifndef _TIME_SCENE_CLIENT_H_ #define _TIME_SCENE_CLIENT_H_ #include "mesh/client_common.h" #ifdef __cplusplus extern "C" { #endif /* Time scene client model common structure */ typedef bt_mesh_client_user_data_t bt_mesh_time_scene_client_t; typedef bt_mesh_client_internal_data_t time_sc...
3,216
Other values are Prohibited. */ uint16_t tai_utc_delta_new : 15; /* Upcoming difference between TAI and UTC in seconds */ uint16_t padding_2 : 1; /* Always 0b0. Other values are Prohibited. */ uint8_t tai_delta_change[5]; /* TAI Seconds time of the upcoming TAI-UTC Delta change */ }; struc...
3,216
Other values are Prohibited. */ uint8_t tai_delta_change[5]; /* TAI Seconds time of the upcoming TAI-UTC Delta change */ }; struct bt_mesh_time_role_set { uint8_t time_role; /* The Time Role for the element */ }; /* Scene Client Model Context */ extern const struct bt_mesh_model_op bt_mesh_scene_cli_op[]...
3,216
1) */ }; struct bt_mesh_scene_register_status { uint8_t status_code; /* Status code for the previous operation */ uint16_t current_scene; /* Scene Number of a current scene */ struct net_buf_simple *scenes; /* A list of scenes stored within an element */ }; struct...
3,216
/* */ #ifndef _CLIENT_COMMON_H_ #define _CLIENT_COMMON_H_ #include "mesh/access.h" #ifdef __cplusplus extern "C" { #endif /** Client model opcode pair table */ typedef struct { uint32_t cli_op; /* Client message opcode */ uint32_t status_op; /* Corresponding status message opcode */ } bt_mesh_client_op_...
3,217
Only for internal use. */ } bt_mesh_client_node_t; /** Client model sending message parameters */ typedef struct { uint32_t opcode; /* Message opcode */ struct bt_mesh_model *model; /* Pointer to the client model */ struct bt_mesh_msg_ctx ctx; /* Message context */ in...
3,217
/* */ /** @file */ #ifndef _SENSOR_CLIENT_H_ #define _SENSOR_CLIENT_H_ #include "mesh/client_common.h" #ifdef __cplusplus extern "C" { #endif /* Sensor Client Model Callback */ extern const struct bt_mesh_model_cb bt_mesh_sensor_client_cb; /* Sensor Client Model Context */ extern const struct bt_mesh_model_op b...
3,218
1) */ }; /** */ int bt_mesh_sensor_client_get_state(bt_mesh_client_common_param_t *common, void *get); /** */ int bt_mesh_sensor_client_set_state(bt_mesh_client_common_param_t *common, void *set); #ifdef __cplusplus } #endif #endif /* _SENSOR_CLIENT_H_ */
3,218
/* */ /** @file */ #ifndef _GENERIC_CLIENT_H_ #define _GENERIC_CLIENT_H_ #include "mesh/client_common.h" #ifdef __cplusplus extern "C" { #endif /* Generic client model common structure */ typedef bt_mesh_client_user_data_t bt_mesh_generic_client_t; typedef bt_mesh_client_internal_data_t generic_internal_da...
3,219
1) */ }; struct bt_mesh_gen_onoff_set { bool op_en; /* Indicate whether optional parameters included */ uint8_t onoff; /* Target value of Generic OnOff state */ uint8_t tid; /* Transaction Identifier */ uint8_t trans_time; /* Time to complete ...
3,219
1) */ }; struct bt_mesh_gen_level_set { bool op_en; /* Indicate whether optional parameters included */ int16_t level; /* Target value of Generic Level state */ uint8_t tid; /* Transaction Identifier */ uint8_t trans_time; /* Time to compl...
3,219
1) */ }; /* Generic Default Transition Time Client Model Context */ extern const struct bt_mesh_model_op bt_mesh_gen_def_trans_time_cli_op[]; /** @def BLE_MESH_MODEL_GEN_DEF_TRANS_TIME_CLI */ #define BLE_MESH_MODEL_GEN_DEF_TRANS_TIME_CLI(cli_pub, cli_data) \ BLE_MESH_MODEL_CB(BLE...
3,219
1) */ }; struct bt_mesh_gen_power_last_status { uint16_t power; /* The value of the Generic Power Last state */ }; struct bt_mesh_gen_power_default_status { uint16_t power; /* The value of the Generic Default Last state */ }; struct bt_mesh_gen_power_range_status { uint8_t status_code; /* ...
3,219
1) */ }; struct bt_mesh_gen_admin_properties_status { struct net_buf_simple *admin_property_ids; /* Buffer contains a sequence of N Admin Property IDs */ }; struct bt_mesh_gen_admin_property_status { bool op_en; /* Indicate whether optional parameters included */ uint16_t admi...
3,219
1) */ }; struct bt_mesh_gen_client_properties_status { struct net_buf_simple *client_property_ids; /* Buffer contains a sequence of N Client Property IDs */ }; struct bt_mesh_gen_user_property_get { uint16_t user_property_id; /* Property ID identifying a Generic User Property */ }; struct bt_mesh_gen_...
3,219
/* */ /** @file */ #ifndef _LIGHTING_CLIENT_H_ #define _LIGHTING_CLIENT_H_ #include "mesh/client_common.h" #ifdef __cplusplus extern "C" { #endif /* Light client model common structure */ typedef bt_mesh_client_user_data_t bt_mesh_light_client_t; typedef bt_mesh_client_internal_data_t light_internal_data_t...
3,220
1) */ }; struct bt_mesh_light_lightness_linear_status { bool op_en; /* Indicate whether optional parameters included */ uint16_t present_lightness; /* Present value of light lightness linear state */ uint16_t target_lightness; /* Target value of light li...
3,220
1) */ }; struct bt_mesh_light_lightness_linear_set { bool op_en; /* Indicate whether optional parameters included */ uint16_t lightness; /* Target value of light lightness linear state */ uint8_t tid; /* Transaction Identifier */ uint8_t trans_time; /* ...
3,220
1) */ uint8_t remain_time; /* Time to complete state transition (C.1) */ }; struct bt_mesh_light_ctl_temperature_status { bool op_en; /* Indicate whether optional parameters included */ uint16_t present_ctl_temperature; /* Present value of light c...
3,220
1) */ }; struct bt_mesh_light_ctl_temperature_set { bool op_en; /* Indicate whether optional parameters included */ uint16_t ctl_temperature; /* Target value of light ctl temperature state */ int16_t ctl_delta_uv; /* Target value of light ctl delta UV state */ uint8_t t...
3,220
1) */ }; struct bt_mesh_light_hsl_saturation_status { bool op_en; /* Indicate whether optional parameters included */ uint16_t present_saturation; /* Present value of light hsl saturation state */ uint16_t target_saturation; /* Target value of light hsl saturation stat...
3,220
1) */ }; struct bt_mesh_light_hsl_hue_set { bool op_en; /* Indicate whether optional parameters included */ uint16_t hue; /* Target value of light hsl hue state */ uint8_t tid; /* Transaction Identifier */ uint8_t trans_time; /* Time to c...
3,220
1) */ }; struct bt_mesh_light_xyl_default_set { uint16_t lightness; /* The value of the Light Lightness Default state */ uint16_t xyl_x; /* The value of the Light xyL x Default state */ uint16_t xyl_y; /* The value of the Light xyL y Default state */ }; struct bt_mesh_light_xyl_...
3,220
1) */ }; struct bt_mesh_light_lc_property_status { uint16_t light_lc_property_id; /* Property ID identifying a Light LC Property */ struct net_buf_simple *light_lc_property_value; /* Raw value for the Light LC Property */ }; struct bt_mesh_light_lc_mode_set { uint8_t mode; /* The ta...
3,220
/* */ #ifndef _BTC_BLE_MESH_PRB_MODEL_H_ #define _BTC_BLE_MESH_PRB_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_prb_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_PRB_CLIENT_SEND, BTC_BLE_MESH_ACT_PRB_CLIENT_MAX, } btc_ble_mesh_prb_client_act_t; typedef ...
3,221
/* */ #ifndef _BTC_BLE_MESH_MBT_MODEL_H_ #define _BTC_BLE_MESH_MBT_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_mbt_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_MBT_CLIENT_RETRIEVE_CAPABILITIES, BTC_BLE_MESH_ACT_MBT_CLIENT_TRANSFER_BLOB, BTC_BLE_MES...
3,222
/* */ #ifndef _BTC_BLE_MESH_BRC_MODEL_H_ #define _BTC_BLE_MESH_BRC_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_brc_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_BRC_CLIENT_SEND, BTC_BLE_MESH_ACT_BRC_CLIENT_MAX, } btc_ble_mesh_brc_client_act_t; typedef ...
3,223
/* */ #ifndef _BTC_BLE_MESH_ODP_MODEL_H_ #define _BTC_BLE_MESH_ODP_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_odp_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_ODP_CLIENT_SEND, BTC_BLE_MESH_ACT_ODP_CLIENT_MAX, } btc_ble_mesh_odp_client_act_t; typedef ...
3,224
/* */ #ifndef _BTC_BLE_MESH_SAR_MODEL_H_ #define _BTC_BLE_MESH_SAR_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_sar_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_SAR_CLIENT_SEND, BTC_BLE_MESH_ACT_SAR_CLIENT_MAX, } btc_ble_mesh_sar_client_act_t; typedef ...
3,225
/* */ #ifndef _BTC_BLE_MESH_AGG_MODEL_H_ #define _BTC_BLE_MESH_AGG_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_agg_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_AGG_CLIENT_SEND, BTC_BLE_MESH_ACT_AGG_CLIENT_MAX, } btc_ble_mesh_agg_client_act_t; typedef ...
3,226
/* */ #ifndef _BTC_BLE_MESH_DF_MODEL_H_ #define _BTC_BLE_MESH_DF_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_df_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_DF_CLIENT_GET_STATE, BTC_BLE_MESH_ACT_DF_CLIENT_SET_STATE, BTC_BLE_MESH_ACT_DF_CLIENT_MAX, ...
3,227
/* */ #ifndef _BTC_BLE_MESH_SRPL_MODEL_H_ #define _BTC_BLE_MESH_SRPL_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_srpl_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_SRPL_CLIENT_SEND, BTC_BLE_MESH_ACT_SRPL_CLIENT_MAX, } btc_ble_mesh_srpl_client_act_t; ty...
3,228
/* */ #ifndef _BTC_BLE_MESH_RPR_MODEL_H_ #define _BTC_BLE_MESH_RPR_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_rpr_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_RPR_CLIENT_SEND, BTC_BLE_MESH_ACT_RPR_CLIENT_ACT, BTC_BLE_MESH_ACT_RPR_CLIENT_MAX, } btc...
3,229
/* */ #ifndef _BTC_BLE_MESH_LCD_MODEL_H_ #define _BTC_BLE_MESH_LCD_MODEL_H_ #include "btc/btc_manage.h" #include "esp_ble_mesh_lcd_model_api.h" #ifdef __cplusplus extern "C" { #endif typedef enum { BTC_BLE_MESH_ACT_LCD_CLIENT_SEND, BTC_BLE_MESH_ACT_LCD_CLIENT_MAX, } btc_ble_mesh_lcd_client_act_t; typedef ...
3,230
/* */ #ifndef _ESP_BLE_MESH_BRC_MODEL_API_H_ #define _ESP_BLE_MESH_BRC_MODEL_API_H_ #include "esp_ble_mesh_defs.h" #ifdef __cplusplus extern "C" { #endif #define ESP_BLE_MESH_MODEL_OP_SUBNET_BRIDGE_GET ESP_BLE_MESH_MODEL_OP_2(0x80, 0xB1) #define ESP_BLE_MESH_MODEL_OP_SUBNET_BRIDGE_SET ESP_B...
3,231
< Allowed directions for the bridged traffic */ uint8_t bridge_net_idx[3]; /*!< Two NetKey Indexes are packed into three octets */ uint16_t bridge_addr_1; /*!< Address of the node in the first subnet */ uint16_t bridge_addr_2; /*!< Address of the node...
3,231