it yields this error (line 293), which I have also pursued on the forums to no avail:
ThingSpeak.ino: In function 'void loop()':
ThingSpeak:288: error: no match for 'operator==' in '"House Temperatures" == allSensors[i].Sensor_Specification::channel'
ThingSpeak:293: error: cannot convert 'String' to 'const char*' for argument '2' to 'int strcmp(const char*, const char*)'
I'm thinking that these problems are related... Help!
turgo:
Thanks Arrch, that worked. I am shocked and disappointed that it makes a difference what side of the == the "string" is on.
You're leveraging the String object's overloading of the == operator which allows it to compare itself with a const char * (also known as a string, note the lack of capitalization):
Thanks Arrch, it's nice to know the reason. However, it also disappointing that to program in C++ one has to know such esoteric details. It's much easier to program in a language like AppleScript that takes care of all those kind of details transparently. Are there similar languages for micro controllers?
turgo:
Thanks Arrch, it's nice to know the reason. However, it also disappointing that to program in C++ one has to know such esoteric details. It's much easier to program in a language like AppleScript that takes care of all those kind of details transparently. Are there similar languages for micro controllers?
These language that are "easier" than C++ can achieve that because they are being run on machines with 1000 of times the memory and clock speed, as well as having an operating systems to handle low level hardware interaction. The only other ones I'm aware of are the Netduinos and Propellors. Netduinos use a micro .NET framework, while the Propellors use a proprietary (and confusing) Spin language.