Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
decode
Method · 0.80
read
Method · 0.45
print
Method · 0.45
Tested by
no test coverage detected