summaryrefslogtreecommitdiffstatshomepage
path: root/examples/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth')
-rw-r--r--examples/bluetooth/ble_simple_central.py2
-rw-r--r--examples/bluetooth/ble_simple_peripheral.py2
-rw-r--r--examples/bluetooth/ble_temperature.py2
-rw-r--r--examples/bluetooth/ble_temperature_central.py2
-rw-r--r--examples/bluetooth/ble_uart_peripheral.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/bluetooth/ble_simple_central.py b/examples/bluetooth/ble_simple_central.py
index f0a3297d32..a6bbdc6ee0 100644
--- a/examples/bluetooth/ble_simple_central.py
+++ b/examples/bluetooth/ble_simple_central.py
@@ -45,7 +45,7 @@ class BLESimpleCentral:
def __init__(self, ble):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
self._reset()
diff --git a/examples/bluetooth/ble_simple_peripheral.py b/examples/bluetooth/ble_simple_peripheral.py
index f5e7661926..d2b134e714 100644
--- a/examples/bluetooth/ble_simple_peripheral.py
+++ b/examples/bluetooth/ble_simple_peripheral.py
@@ -31,7 +31,7 @@ class BLESimplePeripheral:
def __init__(self, ble, name="mpy-uart"):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
((self._handle_tx, self._handle_rx),) = self._ble.gatts_register_services((_UART_SERVICE,))
self._connections = set()
self._write_callback = None
diff --git a/examples/bluetooth/ble_temperature.py b/examples/bluetooth/ble_temperature.py
index 001a26b114..d375a62ffb 100644
--- a/examples/bluetooth/ble_temperature.py
+++ b/examples/bluetooth/ble_temperature.py
@@ -35,7 +35,7 @@ class BLETemperature:
def __init__(self, ble, name="mpy-temp"):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
((self._handle,),) = self._ble.gatts_register_services((_ENV_SENSE_SERVICE,))
self._connections = set()
self._payload = advertising_payload(
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py
index 7983034178..96c4aad144 100644
--- a/examples/bluetooth/ble_temperature_central.py
+++ b/examples/bluetooth/ble_temperature_central.py
@@ -56,7 +56,7 @@ class BLETemperatureCentral:
def __init__(self, ble):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
self._reset()
diff --git a/examples/bluetooth/ble_uart_peripheral.py b/examples/bluetooth/ble_uart_peripheral.py
index 59b35f7e6a..6d167a871a 100644
--- a/examples/bluetooth/ble_uart_peripheral.py
+++ b/examples/bluetooth/ble_uart_peripheral.py
@@ -31,7 +31,7 @@ class BLEUART:
def __init__(self, ble, name="mpy-uart", rxbuf=100):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
((self._tx_handle, self._rx_handle),) = self._ble.gatts_register_services((_UART_SERVICE,))
# Increase the size of the rx buffer and enable append mode.
self._ble.gatts_set_buffer(self._rx_handle, rxbuf, True)