BLE DeviceList is not a List?

I tried using the BluetoothLE.DeviceList as a list, but the blocks would not connect...

As a work around, I did this:

It would be preferable to access the DeviceList without it being converted to text and then back into a list.

If the DeviceList is really a list, what datatype are the elements of the DeviceList? It seems that each element contains a BLE Address, Name (optionally), and signal strength. Would these attributes be in a list format to access individually if they weren't converted to text? Dictionary?

I am on my phone.

What does the tool tip for the device list say?

Effectively it returns a string (the tool tip states that)
image
So it's correct that it doesn't fit the block:
image

Happy new year to all.

1 Like

This is a design decision that has always bugged me as well. Unfortunately, going about fixing it is a bit difficult because extensions do not have upgraders and so if we change the return type of the property without being able to rename it, existing code may break without manual intervention from the user. Eventually once we fold the extension into the core components we should be able to resolve some of these issues.

2 Likes

You can create a new block DevicesFound. And mark the old block as Depracated.

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