Its an Error 507, I'm just trying to run my solenoid lock via HC-05 ( I'm using Arduino Uno )

I don't really know if the problem is on my phone or in my code I'm just a beginner in this please help

You have switched the List Picker Before and After events.

Also, you should test if BlueTooth connected in each Button Click to avoid trying to send data out over BlueTooth when it is not connected.


is this better?
and also how can i test the Bluetooth connection in each button?

That's adorable.

You rearranged the positions of the events in the Blocks Workspace.

Unfortunately, that does not impose order of operation on the events.

The .BeforePicking event happens , well, BEFORE you have a chance to pick from the List Picker. It is the place where you should be filling up the Elements list of the List Picker.

The .AfterPicking event block is the block that receives control after the user has mashed his pudgy little finger against the displayed Elements list, to get a Selection. That's where you should have the blocks that process the Selection value.

1 Like


i dont know if its correct but tried it its still showing error 507 message

Use that If Connected test in the Button Click events too, to prevent attempts at sending data over disconnected BlueTooth.