MQTTGateway on version 1.5



  • I tried to compile the MQTTGateway with the embedded codebender on the website, but it gives a compile error. Ran the code with all libraries updated to 1.5 on arduino gives the following error. Anyone else able to verify this but to see if I missed something?

    In file included from MQTTGateway.ino:87:
    C:\Program Files (x86)\Arduino\libraries\MySensors/MySensor.h:158: error: expected type-specifier before 'MyHwDriver'
    C:\Program Files (x86)\Arduino\libraries\MySensors/MySensor.h:158: error: default argument for parameter of type 'MyHw&' has type 'int'
    C:\Program Files (x86)\Arduino\libraries\MySensors/MySensor.h:158: error: expected ',' before 'MyHwDriver'
    MQTTGateway:130: error: 'MyHwATMega328' does not name a type
    MQTTGateway:133: error: 'hw' was not declared in this scope
    MQTTGateway.ino: In function 'char* getType(char*, const char**)':
    MQTTGateway.ino:272: warning: suggest parentheses around assignment used as truth value
    MQTTGateway.ino: In function 'void processMQTTMessage(char*, uint8_t)':
    MQTTGateway.ino:351: warning: comparison with string literal results in unspecified behaviour

    Thanks for the help!


  • Admin

    You might have an old version of the MySensors library among your codebender private libraries. Remove it and re-clone sketch.


 

247
Online

8.6k
Users

9.4k
Topics

99.5k
Posts