arduino c++ issues regarding class name -
i working on connecting philips hue light bulbs arduino , found resources online. 1 of resources has file keeps throwing error , when looked @ it, have never seen syntax used before. can me out?
#ifndef serialhue_h #define serialhue_h #include <arduino.h> #include <stream.h> #include <arduinohue.h> class serialhue: public arduinohue{ public: serialhue(char* ipaddress, stream* serial); boolean connect(char* deviceid, char* username); protected: char* _ipaddress; char* _deviceid; char* _username; boolean makepost(char* request, char* data); boolean waitforresponse(); stream* _serial; }; #endif
the error in line:
*class serialhue: public arduinohue{*
giving error:
serialhue.h:10: error: expected class-name before '{' token
what format , wrong here?
check compiler settings...it might possible tries compile c++ code c compiler
about format:
class x : public y { }
is syntax of extending class in c++
plus: check arduinohue.h defines arduinohue class
...if can't figure out: take @ precompiled sourcefile (g++ -e)
Comments
Post a Comment