Issue with listPicker or button, not sure which?

I'm trying to send code to a Arduino R4 Wifi using its built in BLE. I made a button to search for all available BLE devices, which will then add the found devices into a listPicker, however when I click the button to search I get a error. I am not sure whether this error is due to the button or the listPicker. Here is the code:

and here is the error:

I tried fixing the problem by initializing the list as empty, but that didn't do anything. Thank you for the help!

You're running under iOS.

Show us where BLE is offered for iOS.

I just found out app inventor doesn't support BLE extensions. In your opinion, would I be able to run this if I had the AI Companion on an Android device instead? Would I also need to pull up the code on an Android device?

The error shown has to do with the use of the screen name helper block in your code. You will have to replace it with a string containing the name of the screen.

There is some limited support for BLE in iOS to support our IOT curriculum materials and more is coming in the next release.

ewpatton, I did do this just for good measure, but my button to switch screens was working both before and after this change. However, the same error message is still persisting.

Thank you all so much for the help! The problem was that I was running it on IOS and not andriod.

The OptionList error has nothing to do with BLE though. Can you send me a copy of your project so I can take a look on iOS?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.