MCPcopy Create free account
hub / github.com/antirez/freakwan / receive_callback

Function receive_callback

bt.py:163–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 import time
162
163 def receive_callback():
164 data = uart.read().decode()
165 print("From BLE",data)
166 uart.print(data)
167
168 ble = bluetooth.BLE()
169 uart = BLEUART(ble, name="ble_test")

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.80
readMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected