Lines Matching refs:ble
44 print("_IRQ_GATTS_WRITE", ble.gatts_read(data[-1]))
87 multitest.globals(BDADDR=ble.config("mac"))
88 ((char_handle,),) = ble.gatts_register_services(SERVICES)
90 ble.gap_advertise(20_000, b"\x02\x01\x06\x04\xffMPY")
94 ble.gatts_write(char_handle, "periph0")
105 ble.gatts_write(char_handle, "periph1")
107 ble.gatts_notify(conn_handle, char_handle)
115 ble.gatts_notify(conn_handle, char_handle, "periph2")
123 ble.gatts_write(char_handle, "periph3")
125 ble.gatts_indicate(conn_handle, char_handle)
131 ble.active(0)
140 ble.gap_connect(*BDADDR)
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)
180 ble.gattc_read(conn_handle, value_handle)
184 print("gap_disconnect:", ble.gap_disconnect(conn_handle))
187 ble.active(0)
190 ble = bluetooth.BLE() variable
191 ble.active(1)
192 ble.irq(irq)