First off, I seem to don't be able to use the serial scope on Arduino when I have an open connection between VB2008 and Arduino which is very inconvenient, is that normal?
Is there any practical way around this?
And second, then I want to send some values let's say 70 20 0.6. So VB2008 will send them all in a row and the problem on the receiver's side (Arduino) is that using the following code:<snip>it saves every number to a variable therefore separating the values I want.
So the approach I take next is to send each value terminated with a character, lets say '-'. Now, on the receiver's side I try to collect the numbers I'm receiving in a string until I get the '-'.
And this is working.
So finally, the problem is being to store these strings with the value I want in an int or a float variable.
The 'float(value)' are of course failing.
if(count == 1) a = (float)value;
Is this the way used to receive values with more than one digit?
Or is there another practical, more used, way to deal with these situations?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16