ITADN

Bluetooth Example does memory manipulation in IRQ

#82Open32BT 创建于 2025-01-12
3
32BTcommented
The Bluetooth example picow_ble_temp_sensor.py is not working for me. I never receive notifications of updated temperature. It seems the code attempts to add data to a set during an interrupt. This likely results in memory manipulation which is not allowed. The handle is subsequently not stored when I try the example so I never receive Notifications. If I assign the handle to a local var, it works as intended. https://github.com/raspberrypi/pico-micropython-examples/blob/1dc8d73a08f0e791c7694855cb61a5bfe8537756/bluetooth/picow_ble_temp_sensor.py#L59
0 条评论