"error 510" bluetooth

i am making an app where i send variabels with bluetooth to an microcontroller.
when i try to send it it gives me ‘error 510’ could not decode switch as integer

does someone know how to fix this.
when i use ‘round’ it also gives an error when trying to send data.

it’s for a project at school and my teacher has never worked with appinventor so he has no clue on how to fix this.

Show us where you assign values into the 2 circles variables.

From the looks of your error, you assigned a component block into one of them
instead of a component.Text block.

Well spotted by ABG


You probably mean Slider1.ThumbPosition ?

i’ll give that a try