How to crate a character variable for arduino


#1

Hi there,

I am trying to create a character or string type variable in Mblock 5. Each time I create a variable it’s a float variable. Is there any workaround for this?

I am using Arduino.

Thanks


#2

I’m afraid you cannot do this with Mblock, it is a “design feature”. The only way is to drop down into C coding, it’s frustrating, but that’s the only option that I know of.


#3

float x;
String Gelenveri;
x = Gelenveri.toFloat();

I do it this way. this is a different way.