Hi I have a project that receives data from a wishield. Most is working but I have a problem converting the char array to an integer value.
I think this is a C related issue and me not properly understanding the int() conversion method.
Any help is much appreciated
The code below illustrates the problem.
void setup(){
Serial.begin(57600);
char data[] = "128";
int myint = int(data);
Serial.println(data); // print "128"
Serial.println(myint); // print 128
Serial.println(myint++); // print 129
/*
Results in serial monitor...
128
2290
2290
*/
}
void loop(){}