Hi there
I have been looking at this for a while and I am just confused. I know it is some sort of problem with pointers but dont know how to solve it.
I have a function which I call which returns a String up to 60 chars long. The first char is a "*" and the last a "!". Commas separate different values inside the string. I have not completed the data handling part ie there are still more variables to add/extract from the string but this is my starting point. The problem I have is that I keep getting the following error -
"cannot convert 'String' to 'char*' for argument '1' to 'char* strok(char*, const char*)'"
I assume that there is some problem relating to pointers which the initial of where I begin to extract the data.
David
String pageValue = connectAndRead();
humiditytemp = atof(strtok(pageValue, "*"));
humidity = atoi(strtok(NULL, ","));
dewpoint = atof(strtok(NULL, ","));
pressure = atof(strtok(NULL, ","));
lightlevel = atof(strtok(NULL, ","));