Listpicker text changed true automatically

I have basic app which sends data to arduino via bluetooth.I select bluetooth device with listpicker (it’s name is bluetooth devices) when i connected to a device , Listpicker’s name changes to true automatically but i don’t want that.How can i solve this problem ?

In ListPicker1.AfterConnecting, don’t feed the result (true) of the BT1.Connect block into ListPicker1.text.

You could instead feed the .Connect result into an if/then test,
and do the successful stuff in the then branch.
ListPicker1.Text might better hold ListPicker1.Selection, for example.

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