Home
last modified time | relevance | path

Searched refs:conn_handle (Results 1 – 25 of 212) sorted by relevance

123456789

/dports/lang/micropython/micropython-1.17/tests/multi_bluetooth/
H A Dble_l2cap.py41 conn_handle, addr_type, addr = data
43 waiting_events[event] = conn_handle
47 conn_handle, addr_type, addr = data
49 waiting_events[event] = conn_handle
61 conn_handle, cid, psm, status = data
64 conn_handle, cid = data
66 conn_handle, cid, status = data
81 def send_data(ble, conn_handle, cid): argument
93 def recv_data(ble, conn_handle, cid): argument
133 send_data(ble, conn_handle, cid)
[all …]
H A Dperf_l2cap.py36 conn_handle, addr_type, addr = data
37 waiting_events[event] = conn_handle
39 conn_handle, addr_type, addr = data
40 waiting_events[event] = conn_handle
42 conn_handle, cid, psm, our_mtu, peer_mtu = data
61 def send_data(ble, conn_handle, cid): argument
66 if not ble.l2cap_send(conn_handle, cid, buf):
70 def recv_data(ble, conn_handle, cid): argument
108 send_data(ble, conn_handle, cid)
134 ble.l2cap_disconnect(conn_handle, cid)
[all …]
H A Dble_characteristic.py107 ble.gatts_notify(conn_handle, char_handle)
115 ble.gatts_notify(conn_handle, char_handle, "periph2")
125 ble.gatts_indicate(conn_handle, char_handle)
144 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
150 ble.gattc_read(conn_handle, value_handle)
155 ble.gattc_write(conn_handle, value_handle, "central0", 1)
160 ble.gattc_read(conn_handle, value_handle)
165 ble.gattc_write(conn_handle, value_handle, "central1", 1)
170 ble.gattc_read(conn_handle, value_handle)
175 ble.gattc_write(conn_handle, value_handle, "central2", 1)
[all …]
H A Dble_subscribe.py118 ble.gatts_notify(conn_handle, char_handle) ###
161 ble.gatts_notify(conn_handle, char_handle) ###
181 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
192 ble.gattc_read(conn_handle, value_handle)
202 ble.gattc_write(conn_handle, value_handle, "central0", 1)
208 ble.gattc_write(conn_handle, cccd_handle, b"\x01\x00", 1)
212 ble.gattc_write(conn_handle, value_handle, "central1", 1)
218 ble.gattc_write(conn_handle, cccd_handle, b"\x02\x00", 1)
222 ble.gattc_write(conn_handle, value_handle, "central2", 1)
228 ble.gattc_write(conn_handle, cccd_handle, b"\x00\x00", 1)
[all …]
H A Dperf_gatt_char_write.py40 conn_handle, attr_handle = data
55 conn_handle, mtu = data
81 conn_handle = wait_for_event(_IRQ_CENTRAL_CONNECT, TIMEOUT_MS)
99 conn_handle = wait_for_event(_IRQ_PERIPHERAL_CONNECT, TIMEOUT_MS)
100 ble.gattc_exchange_mtu(conn_handle)
103 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
119 ble.gattc_write(conn_handle, value_handle, data, mode)
124 ble.gattc_write(conn_handle, value_handle, data, mode)
143 print("gap_disconnect:", ble.gap_disconnect(conn_handle))
H A Dperf_gatt_notify.py49 conn_handle, value_handle, notify_data = data
50 ble.gatts_notify(conn_handle, value_handle, b"central" + notify_data)
74 conn_handle = wait_for_event(_IRQ_CENTRAL_CONNECT, TIMEOUT_MS)
77 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
88 ble.gatts_notify(conn_handle, value_handle, "peripheral" + str(i))
100 print("gap_disconnect:", ble.gap_disconnect(conn_handle))
116 conn_handle = wait_for_event(_IRQ_PERIPHERAL_CONNECT, TIMEOUT_MS)
119 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
H A Dble_mtu.py118 conn_handle = wait_for_event(_IRQ_CENTRAL_CONNECT, TIMEOUT_MS)
122 ble.gattc_exchange_mtu(conn_handle)
127 ble.gatts_notify(conn_handle, char_handle, str(i) * 64)
165 conn_handle = wait_for_event(_IRQ_PERIPHERAL_CONNECT, TIMEOUT_MS)
169 ble.gattc_exchange_mtu(conn_handle)
176 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
182 ble.gattc_write(conn_handle, value_handle, chr(ord("a") + i) * (mtu + 20), 1)
186 print("gap_disconnect:", ble.gap_disconnect(conn_handle))
/dports/lang/micropython/micropython-1.17/extmod/btstack/
H A Dmodbluetooth_btstack.c150 uint16_t conn_handle; member
202 pending_op->conn_handle = conn_handle; in btstack_enqueue_pending_operation()
236 …if (pending_op->op_type == op_type && pending_op->conn_handle == conn_handle && (value_handle == 0… in btstack_finish_pending_operation()
277 mp_bluetooth_gatts_on_mtu_exchanged(conn_handle, mtu); in btstack_packet_handler_att_server()
373 uint16_t conn_handle; in btstack_packet_handler() local
390 mp_bluetooth_gatts_on_encryption_update(conn_handle, in btstack_packet_handler()
1206 int mp_bluetooth_gap_disconnect(uint16_t conn_handle) { in mp_bluetooth_gap_disconnect() argument
1211 gap_disconnect(conn_handle); in mp_bluetooth_gap_disconnect()
1217 int mp_bluetooth_gap_pair(uint16_t conn_handle) { in mp_bluetooth_gap_pair() argument
1219 sm_request_pairing(conn_handle); in mp_bluetooth_gap_pair()
[all …]
/dports/lang/micropython/micropython-1.17/extmod/
H A Dmodbluetooth.h340 int mp_bluetooth_gatts_notify(uint16_t conn_handle, uint16_t value_handle);
344 int mp_bluetooth_gatts_indicate(uint16_t conn_handle, uint16_t value_handle);
351 int mp_bluetooth_gap_disconnect(uint16_t conn_handle);
359 int mp_bluetooth_gap_pair(uint16_t conn_handle);
387 int mp_bluetooth_gattc_read(uint16_t conn_handle, uint16_t value_handle);
393 int mp_bluetooth_gattc_exchange_mtu(uint16_t conn_handle);
398 int mp_bluetooth_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu);
399 int mp_bluetooth_l2cap_disconnect(uint16_t conn_handle, uint16_t cid);
433 void mp_bluetooth_gatts_on_write(uint16_t conn_handle, uint16_t value_handle);
443 void mp_bluetooth_gatts_on_mtu_exchanged(uint16_t conn_handle, uint16_t value);
[all …]
H A Dmodbluetooth.c1173 mp_int_t args[] = {conn_handle, addr_type}; in mp_bluetooth_gap_on_connected_disconnected()
1235 mp_int_t args[] = {conn_handle, value}; in mp_bluetooth_gatts_on_mtu_exchanged()
1265 mp_int_t args[] = {conn_handle, cid}; in mp_bluetooth_on_l2cap_recv()
1293 mp_int_t args[] = {conn_handle, handle}; in mp_bluetooth_gattc_on_descriptor_result()
1298 mp_int_t args[] = {conn_handle, status}; in mp_bluetooth_gattc_on_discover_complete()
1394 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gap_on_connected_disconnected()
1407 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gap_on_connection_update()
1420 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gatts_on_write()
1430 ringbuf_put16(&o->ringbuf, conn_handle); in mp_bluetooth_gatts_on_indicate_complete()
1438 (void)conn_handle; in mp_bluetooth_gatts_on_read_request()
[all …]
/dports/lang/micropython/micropython-1.17/extmod/nimble/
H A Dmodbluetooth_nimble.c459 ble_gap_conn_find(event->connect.conn_handle, &desc); in central_gap_event_cb()
883 mp_bluetooth_gatts_on_write(conn_handle, value_handle); in characteristic_access_cb()
998 int mp_bluetooth_gap_disconnect(uint16_t conn_handle) { in mp_bluetooth_gap_disconnect() argument
1079 int mp_bluetooth_gap_pair(uint16_t conn_handle) { in mp_bluetooth_gap_pair() argument
1080 DEBUG_printf("mp_bluetooth_gap_pair: conn_handle=%d\n", conn_handle); in mp_bluetooth_gap_pair()
1081 return ble_hs_err_to_errno(ble_gap_security_initiate(conn_handle)); in mp_bluetooth_gap_pair()
1108 return ble_hs_err_to_errno(ble_sm_inject_io(conn_handle, &io)); in mp_bluetooth_gap_passkey()
1185 ble_gap_conn_find(event->connect.conn_handle, &desc); in peripheral_gap_event_cb()
1395 int mp_bluetooth_gattc_exchange_mtu(uint16_t conn_handle) { in mp_bluetooth_gattc_exchange_mtu() argument
1563 assert(event->tx_unstalled.conn_handle == chan->chan->conn_handle); in l2cap_channel_event()
[all …]
/dports/graphics/mapserver/mapserver-7.6.4/
H A Dmappool.c157 void *conn_handle; member
177 void *conn_handle, in msConnPoolRegister() argument
186 layer->name, layer->connection, conn_handle ); in msConnPoolRegister()
239 conn->conn_handle = conn_handle; in msConnPoolRegister()
299 conn->connection, conn->conn_handle ); in msConnPoolClose()
302 conn->close( conn->conn_handle ); in msConnPoolClose()
352 void *conn_handle = NULL; in msConnPoolRequest() local
364 conn_handle = conn->conn_handle; in msConnPoolRequest()
367 return conn_handle; in msConnPoolRequest()
392 layer->name, layer->connection, conn_handle ); in msConnPoolRelease()
[all …]
/dports/lang/micropython/micropython-1.17/examples/bluetooth/
H A Dble_bonding_peripheral.py81 conn_handle, _, _ = data
82 self._connections.add(conn_handle)
84 conn_handle, _, _ = data
85 self._connections.remove(conn_handle)
93 conn_handle, action, passkey = data
94 print("passkey action", conn_handle, action, passkey)
97 self._ble.gap_passkey(conn_handle, action, accept)
100 self._ble.gap_passkey(conn_handle, action, 123456)
104 self._ble.gap_passkey(conn_handle, action, passkey)
108 conn_handle, value_handle, status = data
[all …]
H A Dble_uart_peripheral.py54 conn_handle, _, _ = data
55 self._connections.add(conn_handle)
57 conn_handle, _, _ = data
58 if conn_handle in self._connections:
59 self._connections.remove(conn_handle)
63 conn_handle, value_handle = data
64 if conn_handle in self._connections and value_handle == self._rx_handle:
80 for conn_handle in self._connections:
81 self._ble.gatts_notify(conn_handle, self._tx_handle, data)
84 for conn_handle in self._connections:
[all …]
H A Dble_simple_peripheral.py49 conn_handle, _, _ = data
50 print("New connection", conn_handle)
51 self._connections.add(conn_handle)
53 conn_handle, _, _ = data
54 print("Disconnected", conn_handle)
55 self._connections.remove(conn_handle)
59 conn_handle, value_handle = data
65 for conn_handle in self._connections:
66 self._ble.gatts_notify(conn_handle, self._handle_tx, data)
H A Dble_temperature.py53 conn_handle, _, _ = data
54 self._connections.add(conn_handle)
56 conn_handle, _, _ = data
57 self._connections.remove(conn_handle)
61 conn_handle, value_handle, status = data
68 for conn_handle in self._connections:
71 self._ble.gatts_notify(conn_handle, self._handle)
74 self._ble.gatts_indicate(conn_handle, self._handle)
H A Dble_temperature_central.py113 conn_handle, addr_type, addr = data
115 self._conn_handle = conn_handle
120 conn_handle, _, _ = data
121 if conn_handle == self._conn_handle:
127 conn_handle, start_handle, end_handle, uuid = data
128 if conn_handle == self._conn_handle and uuid == _ENV_SENSE_UUID:
142 conn_handle, def_handle, value_handle, properties, uuid = data
143 if conn_handle == self._conn_handle and uuid == _TEMP_UUID:
157 conn_handle, value_handle, char_data = data
166 conn_handle, value_handle, status = data
[all …]
H A Dble_simple_central.py100 conn_handle, addr_type, addr = data
102 self._conn_handle = conn_handle
107 conn_handle, _, _ = data
108 if conn_handle == self._conn_handle:
114 conn_handle, start_handle, end_handle, uuid = data
116 if conn_handle == self._conn_handle and uuid == _UART_SERVICE_UUID:
130 conn_handle, def_handle, value_handle, properties, uuid = data
131 if conn_handle == self._conn_handle and uuid == _UART_RX_CHAR_UUID:
133 if conn_handle == self._conn_handle and uuid == _UART_TX_CHAR_UUID:
146 conn_handle, value_handle, status = data
[all …]
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/erlang/otp-OTP-24.1.7/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/megaco/src/engine/
H A Dmegaco_user.erl40 conn_handle/0,
53 ConnHandle :: conn_handle(),
58 ConnHandle :: conn_handle(),
65 ConnHandle :: conn_handle(),
85 ConnHandle :: conn_handle(),
90 ConnHandle :: conn_handle(),
97 ConnHandle :: conn_handle(),
120 ConnHandle :: conn_handle(),
142 ConnHandle :: conn_handle(),
159 ConnHandle :: conn_handle(),
[all …]
/dports/lang/micropython/micropython-1.17/ports/nrf/drivers/bluetooth/
H A Dble_drv.h67 typedef void (*ble_drv_gap_evt_callback_t)(mp_obj_t self, uint16_t event_id, uint16_t conn_handle, …
99 void ble_drv_attr_s_read(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data);
101 void ble_drv_attr_c_read(uint16_t conn_handle, uint16_t handle, mp_obj_t obj, ble_drv_gattc_char_da…
103 void ble_drv_attr_s_write(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data);
105 void ble_drv_attr_s_notify(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data);
107 void ble_drv_attr_c_write(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data, bo…
117 bool ble_drv_discover_services(mp_obj_t obj, uint16_t conn_handle, uint16_t start_handle, ble_drv_d…
120 uint16_t conn_handle,

123456789