I have been working on an app for a school project and I need to connect my app to an Arduino board via Bluetooth. However, the BLE scan function returns “undefined” as an output no matter what I do. I am using Thunkable Live on an Android phone. I have also allowed all permissions and switched on Bluetooth on my phone, but it is still not working. My code is below.
I hope you can give me some tips on what I have done wrong or what I should do to solve this problem. Thanks!