Hello, first post here.
I am working on an app that gets data from a dht22 sensor and a gps module, and shows them on the app. A detail that i am currently struggling with is the fact that after scanning from devices i want the list to only contain the given name of the device, without MAC and RSSI. In the picture with the app interface, i should only see the fist device and only the text "mpy-uart". Can you help me do this? I tried all kinds of methods using string and list functions that the platform provides, but without any succes. Thanks in advance.
(I hope the pictures will upload correctly)
This block may be helpful for you:
it creates a list out of a string by splitting it at every space, so in your case you just need to select the items you want to display.
I hope that helps you. Feel free to ask further questions!
HQ2000
There is an advanced list block to filter a list.
In this case, you want to filter the DeviceList on its way into the ElementsFromString value.
The test is to accept only items that pass the text CONTAINS block for "mpy-uart"
If you need blocks, export and post your .aia here.