Hello, I am having fun trying to do what i think is a simple task and getting nowhere. Im using the Arduino IDE to program the ESP8266 -12 F I am programing using arduino 1.6.8 (ARDUINO CC) Problem.. I have a string ( this = "1234" ) I want to convert this to a value so (that = 1234)
I have successfully read a text.txt file from a webpage to a string and it contains ascii characters 60. I want to read this into a variable (called an int on C I think) so I can feed it into a program to adjust a delay. so I can decrement or increment it like its a register. ( I have a few years experience in Assembly coding but this is so alien)
I have searched for a few hours and found all sorts of rubbish that does not work for me. I have failed to get strtol and toint to obey my demands! they just produce errors (invalid conversion from 'const char to int) and many more.
I am new to this Arduino C stuff and require a nice easy example so as not to confuse the new boy. cheers.