/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_models/server/ |
D | state_transition.c | 120 void generic_onoff_tt_values(struct bt_mesh_gen_onoff_srv *srv, in generic_onoff_tt_values() argument 123 return transition_time_values(&srv->transition, trans_time, delay); in generic_onoff_tt_values() 126 void generic_level_tt_values(struct bt_mesh_gen_level_srv *srv, in generic_level_tt_values() argument 129 transition_time_values(&srv->transition, trans_time, delay); in generic_level_tt_values() 130 srv->tt_delta_level = in generic_level_tt_values() 131 ((float) (srv->state.level - srv->state.target_level) / srv->transition.counter); in generic_level_tt_values() 134 void generic_power_level_tt_values(struct bt_mesh_gen_power_level_srv *srv, in generic_power_level_tt_values() argument 137 transition_time_values(&srv->transition, trans_time, delay); in generic_power_level_tt_values() 138 srv->tt_delta_level = in generic_power_level_tt_values() 139 … ((float) (srv->state->power_actual - srv->state->target_power_actual) / srv->transition.counter); in generic_power_level_tt_values() [all …]
|
D | lighting_server.c | 80 struct bt_mesh_light_lightness_srv *srv = model->user_data; in send_light_lightness_status() local 81 net_buf_simple_add_le16(msg, srv->state->lightness_actual); in send_light_lightness_status() 82 if (srv->actual_transition.counter) { in send_light_lightness_status() 83 bt_mesh_server_calc_remain_time(&srv->actual_transition); in send_light_lightness_status() 84 net_buf_simple_add_le16(msg, srv->state->target_lightness_actual); in send_light_lightness_status() 85 net_buf_simple_add_u8(msg, srv->actual_transition.remain_time); in send_light_lightness_status() 90 struct bt_mesh_light_lightness_srv *srv = model->user_data; in send_light_lightness_status() local 91 net_buf_simple_add_le16(msg, srv->state->lightness_linear); in send_light_lightness_status() 92 if (srv->linear_transition.counter) { in send_light_lightness_status() 93 bt_mesh_server_calc_remain_time(&srv->linear_transition); in send_light_lightness_status() [all …]
|
D | generic_server.c | 55 struct bt_mesh_gen_onoff_srv *srv = model->user_data; in send_gen_onoff_status() local 78 net_buf_simple_add_u8(msg, srv->state.onoff); in send_gen_onoff_status() 79 if (srv->transition.counter) { in send_gen_onoff_status() 80 bt_mesh_server_calc_remain_time(&srv->transition); in send_gen_onoff_status() 81 net_buf_simple_add_u8(msg, srv->state.target_onoff); in send_gen_onoff_status() 82 net_buf_simple_add_u8(msg, srv->transition.remain_time); in send_gen_onoff_status() 98 struct bt_mesh_gen_onoff_srv *srv = model->user_data; in gen_onoff_get() local 100 if (srv == NULL) { in gen_onoff_get() 106 if (srv->rsp_ctrl.get_auto_rsp == BLE_MESH_SERVER_RSP_BY_APP) { in gen_onoff_get() 131 struct bt_mesh_gen_onoff_srv *srv = model->user_data; in gen_onoff_set() local [all …]
|
D | time_scene_server.c | 78 struct bt_mesh_time_srv *srv = model->user_data; in send_time_status() local 79 net_buf_simple_add_mem(msg, srv->state->time.tai_seconds, TAI_SECONDS_LEN); in send_time_status() 80 if (memcmp(srv->state->time.tai_seconds, zero, TAI_SECONDS_LEN)) { in send_time_status() 81 net_buf_simple_add_u8(msg, srv->state->time.subsecond); in send_time_status() 89 net_buf_simple_add_u8(msg, srv->state->time.uncertainty); in send_time_status() 91 … (srv->state->time.tai_utc_delta_curr << 1) | srv->state->time.time_authority); in send_time_status() 92 net_buf_simple_add_u8(msg, srv->state->time.time_zone_offset_curr); in send_time_status() 95 struct bt_mesh_time_setup_srv *srv = model->user_data; in send_time_status() local 96 net_buf_simple_add_mem(msg, srv->state->time.tai_seconds, TAI_SECONDS_LEN); in send_time_status() 97 if (memcmp(srv->state->time.tai_seconds, zero, TAI_SECONDS_LEN)) { in send_time_status() [all …]
|
D | state_binding.c | 115 struct bt_mesh_gen_onoff_srv *srv = model->user_data; in bt_mesh_update_binding_state() local 116 bt_mesh_server_stop_transition(&srv->transition); in bt_mesh_update_binding_state() 117 srv->state.onoff = value->gen_onoff.onoff; in bt_mesh_update_binding_state() 127 struct bt_mesh_gen_level_srv *srv = model->user_data; in bt_mesh_update_binding_state() local 128 bt_mesh_server_stop_transition(&srv->transition); in bt_mesh_update_binding_state() 129 srv->state.level = value->gen_level.level; in bt_mesh_update_binding_state() 139 struct bt_mesh_gen_power_onoff_srv *srv = model->user_data; in bt_mesh_update_binding_state() local 140 if (srv->state == NULL) { in bt_mesh_update_binding_state() 145 srv->state->onpowerup = value->gen_onpowerup.onpowerup; in bt_mesh_update_binding_state() 155 struct bt_mesh_gen_power_level_srv *srv = model->user_data; in bt_mesh_update_binding_state() local [all …]
|
D | sensor_server.c | 29 struct bt_mesh_sensor_srv *srv = model->user_data; in send_sensor_descriptor_status() local 44 for (i = 0; i < srv->state_count; i++) { in send_sensor_descriptor_status() 45 state = &srv->states[i]; in send_sensor_descriptor_status() 62 for (i = 0; i < srv->state_count; i++) { in send_sensor_descriptor_status() 63 state = &srv->states[i]; in send_sensor_descriptor_status() 81 if (i == srv->state_count) { in send_sensor_descriptor_status() 96 struct bt_mesh_sensor_srv *srv = model->user_data; in send_sensor_data_status() local 111 for (i = 0; i < srv->state_count; i++) { in send_sensor_data_status() 112 state = &srv->states[i]; in send_sensor_data_status() 139 for (i = 0; i < srv->state_count; i++) { in send_sensor_data_status() [all …]
|
D | server_common.c | 42 struct bt_mesh_model *srv = NULL; in bt_mesh_get_default_trans_time() local 47 srv = bt_mesh_model_find(element, BLE_MESH_MODEL_ID_GEN_DEF_TRANS_TIME_SRV); in bt_mesh_get_default_trans_time() 48 if (srv) { in bt_mesh_get_default_trans_time() 49 state = (struct bt_mesh_gen_def_trans_time_srv *)srv->user_data; in bt_mesh_get_default_trans_time() 62 struct bt_mesh_light_lc_srv *srv = NULL; in bt_mesh_get_light_lc_trans_time() local 75 srv = (struct bt_mesh_light_lc_srv *)model->user_data; in bt_mesh_get_light_lc_trans_time() 76 if (srv == NULL) { in bt_mesh_get_light_lc_trans_time() 93 value = srv->lc->prop_state.time_run_on & 0xFFFFFF; in bt_mesh_get_light_lc_trans_time()
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/ |
D | ble_mesh_fast_prov_server_model.c | 77 example_fast_prov_server_t *srv = NULL; in disable_fast_prov_cb() local 79 srv = CONTAINER_OF(work, example_fast_prov_server_t, disable_fast_prov_timer.work); in disable_fast_prov_cb() 80 if (!srv) { in disable_fast_prov_cb() 94 example_fast_prov_server_t *srv = NULL; in enable_gatt_proxy_cb() local 96 srv = CONTAINER_OF(work, example_fast_prov_server_t, gatt_proxy_enable_timer.work); in enable_gatt_proxy_cb() 97 if (!srv) { in enable_gatt_proxy_cb() 102 if (bt_mesh_atomic_test_and_clear_bit(srv->srv_flags, RELAY_PROXY_DISABLED)) { in enable_gatt_proxy_cb() 112 static void example_free_set_info(example_fast_prov_server_t *srv) in example_free_set_info() argument 114 if (srv && srv->set_info) { in example_free_set_info() 115 bt_mesh_free(srv->set_info); in example_free_set_info() [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/ |
D | health_srv.c | 41 struct bt_mesh_health_srv *srv = model->user_data; in health_get_curr_fault_count() local 45 for (i = 0U; i < ARRAY_SIZE(srv->test.curr_faults); i++) { in health_get_curr_fault_count() 46 if (srv->test.curr_faults[i] != HEALTH_NO_FAULT) { in health_get_curr_fault_count() 58 struct bt_mesh_health_srv *srv = model->user_data; in health_get_fault_value() local 62 array_size = current ? ARRAY_SIZE(srv->test.curr_faults) : ARRAY_SIZE(srv->test.reg_faults); in health_get_fault_value() 69 uint8_t fault = current ? srv->test.curr_faults[i] : srv->test.reg_faults[i]; in health_get_fault_value() 78 struct bt_mesh_health_srv *srv = model->user_data; in health_is_test_id_exist() local 81 for (i = 0; i < srv->test.id_count; i++) { in health_is_test_id_exist() 82 if (srv->test.test_ids[i] == test_id) { in health_is_test_id_exist() 93 struct bt_mesh_health_srv *srv = model->user_data; in health_send_fault_status() local [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_models/server/include/ |
D | state_transition.h | 26 void generic_onoff_tt_values(struct bt_mesh_gen_onoff_srv *srv, 29 void generic_level_tt_values(struct bt_mesh_gen_level_srv *srv, 32 void generic_power_level_tt_values(struct bt_mesh_gen_power_level_srv *srv, 35 void light_lightness_actual_tt_values(struct bt_mesh_light_lightness_srv *srv, 38 void light_lightness_linear_tt_values(struct bt_mesh_light_lightness_srv *srv, 41 void light_ctl_tt_values(struct bt_mesh_light_ctl_srv *srv, 44 void light_ctl_temp_tt_values(struct bt_mesh_light_ctl_temp_srv *srv, 47 void light_hsl_tt_values(struct bt_mesh_light_hsl_srv *srv, 50 void light_hsl_hue_tt_values(struct bt_mesh_light_hsl_hue_srv *srv, 53 void light_hsl_sat_tt_values(struct bt_mesh_light_hsl_sat_srv *srv, [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/ |
D | main.c | 148 esp_ble_mesh_gen_onoff_srv_t *srv = model->user_data; in example_handle_gen_onoff_msg() local 153 ESP_BLE_MESH_MODEL_OP_GEN_ONOFF_STATUS, sizeof(srv->state.onoff), &srv->state.onoff); in example_handle_gen_onoff_msg() 158 srv->state.onoff = set->onoff; in example_handle_gen_onoff_msg() 161 srv->state.onoff = set->onoff; in example_handle_gen_onoff_msg() 165 … ESP_BLE_MESH_MODEL_OP_GEN_ONOFF_STATUS, sizeof(srv->state.onoff), &srv->state.onoff); in example_handle_gen_onoff_msg() 168 sizeof(srv->state.onoff), &srv->state.onoff, ROLE_NODE); in example_handle_gen_onoff_msg() 169 example_change_led_state(model, ctx, srv->state.onoff); in example_handle_gen_onoff_msg() 213 esp_ble_mesh_gen_onoff_srv_t *srv; in example_ble_mesh_generic_server_cb() local 229 srv = param->model->user_data; in example_ble_mesh_generic_server_cb() 230 ESP_LOGI(TAG, "onoff 0x%02x", srv->state.onoff); in example_ble_mesh_generic_server_cb()
|
/hal_espressif-3.4.0/components/esptool_py/esptool/ |
D | esp_rfc2217_server.py | 255 srv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) variable 256 srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 257 srv.bind(("", args.localport)) 258 srv.listen(1) 262 client_socket, addr = srv.accept()
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/include/ |
D | health_srv.h | 92 #define BLE_MESH_MODEL_HEALTH_SRV(srv, pub) \ argument 94 bt_mesh_health_srv_op, pub, srv, &bt_mesh_health_srv_cb)
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/ |
D | aligenie_demo.c | 1043 esp_ble_mesh_gen_onoff_srv_t *srv = param->model->user_data; in example_ble_mesh_generic_server_cb() local 1044 ESP_LOGI(TAG, "onoff: 0x%02x", srv->state.onoff); in example_ble_mesh_generic_server_cb() 1046 … ESP_BLE_MESH_MODEL_OP_GEN_ONOFF_STATUS, sizeof(srv->state.onoff), &srv->state.onoff); in example_ble_mesh_generic_server_cb() 1059 esp_ble_mesh_gen_onoff_srv_t *srv = param->model->user_data; in example_ble_mesh_generic_server_cb() local 1061 srv->state.onoff = param->value.set.onoff.onoff; in example_ble_mesh_generic_server_cb() 1064 srv->state.onoff = param->value.set.onoff.onoff; in example_ble_mesh_generic_server_cb() 1069 … ESP_BLE_MESH_MODEL_OP_GEN_ONOFF_STATUS, sizeof(srv->state.onoff), &srv->state.onoff); in example_ble_mesh_generic_server_cb() 1072 light_onoff_set(param->model, ¶m->ctx, srv->state.onoff); in example_ble_mesh_generic_server_cb()
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/api/models/include/ |
D | esp_ble_mesh_health_model_api.h | 27 #define ESP_BLE_MESH_MODEL_HEALTH_SRV(srv, pub) \ argument 29 NULL, pub, srv)
|
/hal_espressif-3.4.0/examples/protocols/asio/ssl_client_server/main/ |
D | component.mk | 12 COMPONENT_EMBED_TXTFILES += srv.crt
|
D | CMakeLists.txt | 3 EMBED_TXTFILES ca.crt server.key srv.crt)
|
/hal_espressif-3.4.0/components/mdns/ |
D | mdns.c | 149 static bool _mdns_service_match(const mdns_service_t * srv, const char * service, const char * prot… in _mdns_service_match() argument 152 return !strcasecmp(srv->service, service) && !strcasecmp(srv->proto, proto) && in _mdns_service_match() 153 (_str_null_or_empty(hostname) || !strcasecmp(srv->hostname, hostname)); in _mdns_service_match() 262 static bool _mdns_service_match_instance(const mdns_service_t *srv, const char *instance, const cha… in _mdns_service_match_instance() argument 265 … return !strcasecmp(srv->service, service) && _mdns_instance_name_match(srv->instance, instance) && in _mdns_service_match_instance() 266 …!strcasecmp(srv->proto, proto) && (_str_null_or_empty(hostname) || !strcasecmp(srv->hostname, host… in _mdns_service_match_instance() 2634 mdns_srv_item_t * srv = _mdns_server->services; in _mdns_delegate_hostname_remove() local 2636 while (srv) { in _mdns_delegate_hostname_remove() 2637 if (strcasecmp(srv->service->hostname, hostname) == 0) { in _mdns_delegate_hostname_remove() 2638 mdns_srv_item_t * to_free = srv; in _mdns_delegate_hostname_remove() [all …]
|
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_prov.c | 1263 struct bt_mesh_cfg_srv *srv = (struct bt_mesh_cfg_srv *)model->user_data; in btc_ble_mesh_model_op_set() local 1264 if (srv) { in btc_ble_mesh_model_op_set() 1265 srv->hb_sub.func = btc_ble_mesh_node_recv_heartbeat_cb; in btc_ble_mesh_model_op_set() 1284 struct bt_mesh_health_srv *srv = (struct bt_mesh_health_srv *)model->user_data; in btc_ble_mesh_model_op_set() local 1285 if (srv) { in btc_ble_mesh_model_op_set() 1286 srv->cb.fault_clear = btc_ble_mesh_health_server_fault_clear; in btc_ble_mesh_model_op_set() 1287 srv->cb.fault_test = btc_ble_mesh_health_server_fault_test; in btc_ble_mesh_model_op_set() 1288 srv->cb.attn_on = btc_ble_mesh_health_server_attention_on; in btc_ble_mesh_model_op_set() 1289 srv->cb.attn_off = btc_ble_mesh_health_server_attention_off; in btc_ble_mesh_model_op_set()
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_register_cmd.c | 205 esp_ble_mesh_gen_onoff_srv_t *srv = param->model->user_data; in ble_mesh_generic_server_model_cb() local 207 srv->state.onoff = param->value.set.onoff.onoff; in ble_mesh_generic_server_model_cb() 210 srv->state.onoff = param->value.set.onoff.onoff; in ble_mesh_generic_server_model_cb()
|