Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/hal_espressif-3.5.0/components/driver/test/
Dtest_pcnt.c112 static void event_calculate(event_times *event) in event_calculate() argument
121 event->filter_time++; in event_calculate()
126 event->h_threshold++; in event_calculate()
130 event->l_threshold++; in event_calculate()
134 event->l_limit++; in event_calculate()
138 event->h_limit++; in event_calculate()
142 event->zero_times++; in event_calculate()
150 printf("%d, %d, %d, %d, %d, %d\n", event->h_threshold, event->l_threshold, in event_calculate()
151 event->l_limit, event->h_limit, event->zero_times, event->filter_time); in event_calculate()
489 event_times event = { variable
[all …]
/hal_espressif-3.5.0/tools/esp_app_trace/espytrace/
Dsysview.py96 event = parser.read_event(reader, _os_events_map)
97 parser.on_new_event(event)
726 def event_supported(self, event): argument
729 def on_new_event(self, event): argument
740 if event.id == SYSVIEW_EVTID_TRACE_START:
741 event.ts = 0
744 event.ts = self._update_ts(event.ts)
746 if event.id == SYSVIEW_EVTID_INIT:
747 self.sys_info = event
748 event.ts = self._update_ts(event.ts)
[all …]
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/rfcomm/
Drfc_mx_fsm.c46 static void rfc_mx_sm_state_idle (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
47 static void rfc_mx_sm_state_wait_conn_cnf (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
48 static void rfc_mx_sm_state_configure (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
49 static void rfc_mx_sm_sabme_wait_ua (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
50 static void rfc_mx_sm_state_wait_sabme (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
51 static void rfc_mx_sm_state_connected (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
52 static void rfc_mx_sm_state_disc_wait_ua (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
70 void rfc_mx_sm_execute (tRFC_MCB *p_mcb, UINT16 event, void *p_data) in rfc_mx_sm_execute() argument
72 RFCOMM_TRACE_DEBUG("%s st:%d, evt:%d\n", __func__, p_mcb->state, event); in rfc_mx_sm_execute()
76 rfc_mx_sm_state_idle (p_mcb, event, p_data); in rfc_mx_sm_execute()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/bleprph/main/
Dmain.c33 static int bleprph_gap_event(struct ble_gap_event *event, void *arg);
147 bleprph_gap_event(struct ble_gap_event *event, void *arg) in bleprph_gap_event() argument
152 switch (event->type) { in bleprph_gap_event()
156 event->connect.status == 0 ? "established" : "failed", in bleprph_gap_event()
157 event->connect.status); in bleprph_gap_event()
158 if (event->connect.status == 0) { in bleprph_gap_event()
159 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
165 if (event->connect.status != 0) { in bleprph_gap_event()
172 MODLOG_DFLT(INFO, "disconnect; reason=%d ", event->disconnect.reason); in bleprph_gap_event()
173 bleprph_print_conn_desc(&event->disconnect.conn); in bleprph_gap_event()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/classic_bt/a2dp_source/main/
Dmain.c70 static void bt_av_hdl_stack_evt(uint16_t event, void *p_param);
73 static void bt_av_hdl_avrc_ct_evt(uint16_t event, void *p_param);
76 static void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param);
79 static void bt_app_a2d_cb(esp_a2d_cb_event_t event, esp_a2d_cb_param_t *param);
85 static void bt_app_rc_ct_cb(esp_avrc_ct_cb_event_t event, esp_avrc_ct_cb_param_t *param);
91 static void bt_app_av_sm_hdlr(uint16_t event, void *param);
97 static void bt_app_av_state_unconnected_hdlr(uint16_t event, void *param);
98 static void bt_app_av_state_connecting_hdlr(uint16_t event, void *param);
99 static void bt_app_av_state_connected_hdlr(uint16_t event, void *param);
100 static void bt_app_av_state_disconnecting_hdlr(uint16_t event, void *param);
[all …]
/hal_espressif-3.5.0/docs/en/api-reference/system/
Desp_event.rst7 The event loop library allows components to declare events to which other components can register h…
10 by the wifi subsystem directly and act on those events. This also simplifies event processing by se…
16 There are two objects of concern for users of this library: events and event loops.
18 …ences of note. For example, for WiFi, a successful connection to the access point may be an event.
19 Events are referenced using a two part identifier which are discussed more :ref:`here <esp-event-de…
20 Event loops are the vehicle by which events get posted by event sources and handled by event handle…
21 These two appear prominently in the event loop library APIs.
25 …efines a function that should run when an event is posted to a loop. This function is referred to …
26event loop is created using :cpp:func:`esp_event_loop_create`, which outputs a handle to the loop …
27event handlers to the loop using :cpp:func:`esp_event_handler_register_with`. Handlers can be regi…
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/ble_spp/spp_client/main/
Dmain.c21 static int ble_spp_client_gap_event(struct ble_gap_event *event, void *arg);
208 ble_spp_client_gap_event(struct ble_gap_event *event, void *arg) in ble_spp_client_gap_event() argument
214 switch (event->type) { in ble_spp_client_gap_event()
216 rc = ble_hs_adv_parse_fields(&fields, event->disc.data, in ble_spp_client_gap_event()
217 event->disc.length_data); in ble_spp_client_gap_event()
226 ble_spp_client_connect_if_interesting(&event->disc); in ble_spp_client_gap_event()
231 if (event->connect.status == 0) { in ble_spp_client_gap_event()
235 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in ble_spp_client_gap_event()
241 rc = peer_add(event->connect.conn_handle); in ble_spp_client_gap_event()
248 rc = peer_disc_all(event->connect.conn_handle, in ble_spp_client_gap_event()
[all …]
/hal_espressif-3.5.0/docs/en/api-guides/
Devent-handling.rst4 …es, such as connection or disconnection. This document gives an overview of these event mechanisms.
9 …rnet driver, and TCP/IP stack were dispatched using the so-called *legacy event loop*. The followi…
14event loop for the purposes of event handling in ESP-IDF. In the legacy event loop, all possible e…
16 …ary. Wi-Fi, Ethernet, and IP events are sent to the :ref:`default event loop <esp-event-default-lo…
18 .. _legacy-event-loop:
23 This event loop implementation is started using :cpp:func:`esp_event_loop_init` function. Applicati…
25 esp_err_t event_handler(void *ctx, system_event_t *event)
29 Both the pointer to event handler function, and an arbitrary context pointer are passed to :cpp:fun…
31event, this event is sent to a high-priority ``event`` task via a queue. Application-provided even…
33event structure (:cpp:type:`system_event_t`) which describes current event. This structure follows…
[all …]
/hal_espressif-3.5.0/tools/test_apps/protocols/mqtt/publish_connect_test/main/
Dpublish_test.c45 esp_mqtt_event_handle_t event = event_data; in mqtt_event_handler() local
46 esp_mqtt_client_handle_t client = event->client; in mqtt_event_handler()
49 switch (event->event_id) { in mqtt_event_handler()
64 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
67 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
70 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
74 printf("TOPIC=%.*s\r\n", event->topic_len, event->topic); in mqtt_event_handler()
75 printf("DATA=%.*s\r\n", event->data_len, event->data); in mqtt_event_handler()
76 …n=%d, data_len=%d, current_data_offset=%d\n", event->msg_id, event->total_data_len, event->data_le… in mqtt_event_handler()
77 if (event->topic) { in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/examples/protocols/mqtt/ssl/main/
Dapp_main.c65 esp_mqtt_event_handle_t event = event_data; in mqtt_event_handler() local
66 esp_mqtt_client_handle_t client = event->client; in mqtt_event_handler()
85 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
90 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
93 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
97 printf("TOPIC=%.*s\r\n", event->topic_len, event->topic); in mqtt_event_handler()
98 printf("DATA=%.*s\r\n", event->data_len, event->data); in mqtt_event_handler()
99 if (strncmp(event->data, "send binary please", event->data_len) == 0) { in mqtt_event_handler()
106 if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) { in mqtt_event_handler()
107 …ESP_LOGI(TAG, "Last error code reported from esp-tls: 0x%x", event->error_handle->esp_tls_last_esp… in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/
Desp_event_cxx.cpp19 using namespace idf::event;
24 namespace event { namespace
31 : cb(cb), event(ev), api(api) in ESPEventReg()
38 throw ESPEventRegisterException(reg_result, event); in ESPEventReg()
44 api->handler_unregister(event.base, event.id.get_id(), instance); in ~ESPEventReg()
47 void ESPEventReg::dispatch_event_handling(ESPEvent event, void *event_data) in dispatch_event_handling() argument
49 cb(event, event_data); in dispatch_event_handling()
100 void ESPEventRegTimed::dispatch_event_handling(ESPEvent event, void *event_data) in dispatch_event_handling() argument
104 cb(event, event_data); in dispatch_event_handling()
113 object->timeout_cb(object->event); in timer_cb_hook()
[all …]
/hal_espressif-3.5.0/examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/
Desp_mqtt_cxx.cpp137 auto *event = static_cast<esp_mqtt_event_t *>(event_data); in mqtt_event_handler() local
139 switch (event->event_id) { in mqtt_event_handler()
142 client.on_connected(event); in mqtt_event_handler()
146 client.on_disconnected(event); in mqtt_event_handler()
150 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
151 client.on_subscribed(event); in mqtt_event_handler()
154 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
155 client.on_unsubscribed(event); in mqtt_event_handler()
158 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
159 client.on_published(event); in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/l2cap/
Dl2c_csm.c43 static void l2c_csm_closed (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
44 static void l2c_csm_orig_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
45 static void l2c_csm_term_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
46 static void l2c_csm_w4_l2cap_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
47 static void l2c_csm_w4_l2ca_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
48 static void l2c_csm_config (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
49 static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
50 static void l2c_csm_w4_l2cap_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
51 static void l2c_csm_w4_l2ca_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
54 static char *l2c_csm_get_event_name (UINT16 event);
[all …]
/hal_espressif-3.5.0/components/hal/
Di2c_hal_iram.c17 void i2c_hal_master_handle_tx_event(i2c_hal_context_t *hal, i2c_intr_event_t *event) in i2c_hal_master_handle_tx_event() argument
21 i2c_ll_master_get_event(hal->dev, event); in i2c_hal_master_handle_tx_event()
22 if ((*event < I2C_INTR_EVENT_END_DET) || in i2c_hal_master_handle_tx_event()
23 (*event == I2C_INTR_EVENT_TRANS_DONE)) { in i2c_hal_master_handle_tx_event()
26 } else if (*event == I2C_INTR_EVENT_END_DET) { in i2c_hal_master_handle_tx_event()
32 void i2c_hal_master_handle_rx_event(i2c_hal_context_t *hal, i2c_intr_event_t *event) in i2c_hal_master_handle_rx_event() argument
35 i2c_ll_master_get_event(hal->dev, event); in i2c_hal_master_handle_rx_event()
36 if ((*event < I2C_INTR_EVENT_END_DET) || in i2c_hal_master_handle_rx_event()
37 (*event == I2C_INTR_EVENT_TRANS_DONE)) { in i2c_hal_master_handle_rx_event()
40 } else if (*event == I2C_INTR_EVENT_END_DET) { in i2c_hal_master_handle_rx_event()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/
Dbt_app_av.c38 static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param);
40 static void bt_av_hdl_avrc_ct_evt(uint16_t event, void *p_param);
42 static void bt_av_hdl_avrc_tg_evt(uint16_t event, void *p_param);
55 void bt_app_a2d_cb(esp_a2d_cb_event_t event, esp_a2d_cb_param_t *param) in bt_app_a2d_cb() argument
57 switch (event) { in bt_app_a2d_cb()
62 bt_app_work_dispatch(bt_av_hdl_a2d_evt, event, param, sizeof(esp_a2d_cb_param_t), NULL); in bt_app_a2d_cb()
66 ESP_LOGE(BT_AV_TAG, "Invalid A2DP event: %d", event); in bt_app_a2d_cb()
89 void bt_app_rc_ct_cb(esp_avrc_ct_cb_event_t event, esp_avrc_ct_cb_param_t *param) in bt_app_rc_ct_cb() argument
91 switch (event) { in bt_app_rc_ct_cb()
100 … bt_app_work_dispatch(bt_av_hdl_avrc_ct_evt, event, param, sizeof(esp_avrc_ct_cb_param_t), NULL); in bt_app_rc_ct_cb()
[all …]
/hal_espressif-3.5.0/examples/protocols/mqtt/ssl_mutual_auth/main/
Dapp_main.c61 esp_mqtt_event_handle_t event = event_data; in mqtt_event_handler() local
62 esp_mqtt_client_handle_t client = event->client; in mqtt_event_handler()
81 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
86 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
89 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
93 printf("TOPIC=%.*s\r\n", event->topic_len, event->topic); in mqtt_event_handler()
94 printf("DATA=%.*s\r\n", event->data_len, event->data); in mqtt_event_handler()
98 if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) { in mqtt_event_handler()
99 … log_error_if_nonzero("reported from esp-tls", event->error_handle->esp_tls_last_esp_err); in mqtt_event_handler()
100 log_error_if_nonzero("reported from tls stack", event->error_handle->esp_tls_stack_err); in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/examples/protocols/mqtt/ws/main/
Dapp_main.c54 esp_mqtt_event_handle_t event = event_data; in mqtt_event_handler() local
55 esp_mqtt_client_handle_t client = event->client; in mqtt_event_handler()
76 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
81 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
84 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
88 printf("TOPIC=%.*s\r\n", event->topic_len, event->topic); in mqtt_event_handler()
89 printf("DATA=%.*s\r\n", event->data_len, event->data); in mqtt_event_handler()
93 if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) { in mqtt_event_handler()
94 … log_error_if_nonzero("reported from esp-tls", event->error_handle->esp_tls_last_esp_err); in mqtt_event_handler()
95 log_error_if_nonzero("reported from tls stack", event->error_handle->esp_tls_stack_err); in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/examples/system/esp_event/default_event_loop/
DREADME.md5event loops, refer to the **user event loops** [documentation](https://docs.espressif.com/projects…
7event loop**](https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/esp_event…
11event base and event IDs declared in a header file, and having the definitions in a source file. D…
15 This example illustrates the creation of the default event loop using the API function `esp_event_l…
19event to a loop is the act of queueing its handlers for execution. For the default loop, this is d…
23event loop using `esp_event_handler_register` for (1) specific events, (2) **any** event under a c…
25 …`. Unregistering a handler means that it no longer executes even when the event it was previously …
59 I (338) default_event_loop: starting event sources
94 I (3378) default_event_loop: TIMER_EVENTS:TIMER_EVENT_STOPPED: deleted timer event source
97 I (3398) default_event_loop: TASK_EVENTS:TASK_ITERATION_EVENT: deleting task event source
[all …]
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/
Dbt_app_av.c57 static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param);
59 static void bt_av_hdl_avrc_ct_evt(uint16_t event, void *p_param);
61 static void bt_av_hdl_avrc_tg_evt(uint16_t event, void *p_param);
190 static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param) in bt_av_hdl_a2d_evt() argument
192 ESP_LOGD(BT_AV_TAG, "%s event: %d", __func__, event); in bt_av_hdl_a2d_evt()
196 switch (event) { in bt_av_hdl_a2d_evt()
260 ESP_LOGE(BT_AV_TAG, "%s unhandled event: %d", __func__, event); in bt_av_hdl_a2d_evt()
265 static void bt_av_hdl_avrc_ct_evt(uint16_t event, void *p_param) in bt_av_hdl_avrc_ct_evt() argument
267 ESP_LOGD(BT_RC_CT_TAG, "%s event: %d", __func__, event); in bt_av_hdl_avrc_ct_evt()
271 switch (event) { in bt_av_hdl_avrc_ct_evt()
[all …]
/hal_espressif-3.5.0/examples/protocols/mqtt/tcp/main/
Dapp_main.c56 esp_mqtt_event_handle_t event = event_data; in mqtt_event_handler() local
57 esp_mqtt_client_handle_t client = event->client; in mqtt_event_handler()
79 ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
84 ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id); in mqtt_event_handler()
87 ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); in mqtt_event_handler()
91 printf("TOPIC=%.*s\r\n", event->topic_len, event->topic); in mqtt_event_handler()
92 printf("DATA=%.*s\r\n", event->data_len, event->data); in mqtt_event_handler()
96 if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) { in mqtt_event_handler()
97 … log_error_if_nonzero("reported from esp-tls", event->error_handle->esp_tls_last_esp_err); in mqtt_event_handler()
98 log_error_if_nonzero("reported from tls stack", event->error_handle->esp_tls_stack_err); in mqtt_event_handler()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/blecent/main/
Dmain.c33 static int blecent_gap_event(struct ble_gap_event *event, void *arg);
373 blecent_gap_event(struct ble_gap_event *event, void *arg) in blecent_gap_event() argument
379 switch (event->type) { in blecent_gap_event()
381 rc = ble_hs_adv_parse_fields(&fields, event->disc.data, in blecent_gap_event()
382 event->disc.length_data); in blecent_gap_event()
391 blecent_connect_if_interesting(&event->disc); in blecent_gap_event()
396 if (event->connect.status == 0) { in blecent_gap_event()
400 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in blecent_gap_event()
406 rc = peer_add(event->connect.conn_handle); in blecent_gap_event()
413 rc = peer_disc_all(event->connect.conn_handle, in blecent_gap_event()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/
Dmain.c38 static int gatts_gap_event(struct ble_gap_event *event, void *arg);
236 gatts_gap_event(struct ble_gap_event *event, void *arg) in gatts_gap_event() argument
241 switch (event->type) { in gatts_gap_event()
245 event->connect.status == 0 ? "established" : "failed", in gatts_gap_event()
246 event->connect.status); in gatts_gap_event()
252 if (event->connect.status != 0) { in gatts_gap_event()
257 rc = ble_hs_hci_util_set_data_len(event->connect.conn_handle, in gatts_gap_event()
264 conn_handle = event->connect.conn_handle; in gatts_gap_event()
268 ESP_LOGI(tag, "disconnect; reason = %d", event->disconnect.reason); in gatts_gap_event()
277 event->conn_update.status); in gatts_gap_event()
[all …]
/hal_espressif-3.5.0/examples/cxx/experimental/experimental_cpp_component/include/
Desp_event_cxx.hpp41 namespace event { namespace
56 class EventTimeout : public idf::event::EventException {
114 ESPEventRegisterException(esp_err_t err, const ESPEvent& event) in ESPEventRegisterException()
115 : EventException(err), esp_event(event) { } in ESPEventRegisterException()
176 virtual void dispatch_event_handling(ESPEvent event, void *event_data);
181 ESPEvent event; member in idf::event::ESPEventReg
242 void dispatch_event_handling(ESPEvent event, void *event_data) override;
287 std::unique_ptr<ESPEventReg> register_event(const ESPEvent &event,
298 std::unique_ptr<ESPEventRegTimed> register_event_timed(const ESPEvent &event,
312 void post_event_data(const ESPEvent &event,
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/bleprph_wifi_coex/main/
Dmain.c55 static int bleprph_gap_event(struct ble_gap_event *event, void *arg);
86 ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data; in event_handler() local
87 ESP_LOGI(TAG, "got ip:" IPSTR, IP2STR(&event->ip_info.ip)); in event_handler()
387 bleprph_gap_event(struct ble_gap_event *event, void *arg) in bleprph_gap_event() argument
392 switch (event->type) { in bleprph_gap_event()
396 event->connect.status == 0 ? "established" : "failed", in bleprph_gap_event()
397 event->connect.status); in bleprph_gap_event()
398 if (event->connect.status == 0) { in bleprph_gap_event()
399 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
404 if (event->connect.status != 0) { in bleprph_gap_event()
[all …]
/hal_espressif-3.5.0/examples/bluetooth/nimble/ble_spp/spp_server/main/
Dmain.c21 static int ble_spp_server_gap_event(struct ble_gap_event *event, void *arg);
152 ble_spp_server_gap_event(struct ble_gap_event *event, void *arg) in ble_spp_server_gap_event() argument
157 switch (event->type) { in ble_spp_server_gap_event()
161 event->connect.status == 0 ? "established" : "failed", in ble_spp_server_gap_event()
162 event->connect.status); in ble_spp_server_gap_event()
163 if (event->connect.status == 0) { in ble_spp_server_gap_event()
164 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in ble_spp_server_gap_event()
168 connection_handle = event->connect.conn_handle; in ble_spp_server_gap_event()
171 if (event->connect.status != 0) { in ble_spp_server_gap_event()
178 MODLOG_DFLT(INFO, "disconnect; reason=%d ", event->disconnect.reason); in ble_spp_server_gap_event()
[all …]

12345678910>>...26