How do i connect these blocks?

image

When ListPicker1.BeforePicking
set ListPicker1.Elements to BluetoothClient1.AddressesAndNames

When ListPicker1.AfterPicking
call BluetoothClient1.Connect address ListPicker1.Selection
set Label1.Text to "Connected to " + ListPicker1.Selection

Use an if statement, because the Connect method returns a boolean true/false to indicate if the connection was successful or not, see also the documentation

http://ai2.appinventor.mit.edu/reference/components/connectivity.html#BluetoothClient

If Connect
Then connection was successful
Else connection was not successful

Taifun

Can you help me assemble these blocks that I sent you?

image