Github Devices Community Docs Blog

ZgatewayIR ERROR

after i activate ZgatewayIR i got this problems:

ZgatewayIR:989:37: error: 'kNeoclimaMinRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kNeoclimaMinRepeat);
                                     ^
ZgatewayIR:990:12: error: 'class IRsend' has no member named 'sendNeoclima'
     irsend.sendNeoclima(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:998:19: error: 'kDaikin176StateLength' was not declared in this scope
       valueBITS = kDaikin176StateLength;
                   ^
ZgatewayIR:1000:37: error: 'kDaikin176DefaultRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kDaikin176DefaultRepeat);
                                     ^
ZgatewayIR:1001:12: error: 'class IRsend' has no member named 'sendDaikin176'
     irsend.sendDaikin176(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1009:19: error: 'kDaikin128StateLength' was not declared in this scope
       valueBITS = kDaikin128StateLength;
                   ^
ZgatewayIR:1011:37: error: 'kDaikin128DefaultRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kDaikin128DefaultRepeat);
                                     ^
ZgatewayIR:1012:12: error: 'class IRsend' has no member named 'sendDaikin128'
     irsend.sendDaikin128(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1020:19: error: 'kAmcorStateLength' was not declared in this scope
       valueBITS = kAmcorStateLength;
                   ^
ZgatewayIR:1022:37: error: 'kAmcorDefaultRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kAmcorDefaultRepeat);
                                     ^
ZgatewayIR:1023:12: error: 'class IRsend' has no member named 'sendAmcor'
     irsend.sendAmcor(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1031:19: error: 'kDaikin152StateLength' was not declared in this scope
       valueBITS = kDaikin152StateLength;
                   ^
ZgatewayIR:1033:37: error: 'kDaikin152DefaultRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kDaikin152DefaultRepeat);
                                     ^
ZgatewayIR:1034:12: error: 'class IRsend' has no member named 'sendDaikin152'
     irsend.sendDaikin152(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1042:19: error: 'kMitsubishi136StateLength' was not declared in this scope
       valueBITS = kMitsubishi136StateLength;
                   ^
ZgatewayIR:1044:37: error: 'kMitsubishi136MinRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kMitsubishi136MinRepeat);
                                     ^
ZgatewayIR:1045:12: error: 'class IRsend' has no member named 'sendMitsubishi136'
     irsend.sendMitsubishi136(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1053:19: error: 'kMitsubishi112StateLength' was not declared in this scope
       valueBITS = kMitsubishi112StateLength;
                   ^
ZgatewayIR:1055:37: error: 'kMitsubishi112MinRepeat' was not declared in this scope
       valueRPT = std::max(valueRPT, kMitsubishi112MinRepeat);
                                     ^
ZgatewayIR:1056:12: error: 'class IRsend' has no member named 'sendMitsubishi112'
     irsend.sendMitsubishi112(dataarray, valueBITS, valueRPT);
            ^
ZgatewayIR:1064:19: error: 'kHitachiAc424StateLength' was not declared in this scope
       valueBITS = kHitachiAc424StateLength;
                   ^
ZgatewayIR:1067:12: error: 'class IRsend' has no member named 'sendHitachiAc424'
     irsend.sendHitachiAc424(dataarray, valueBITS, valueRPT);
            ^
exit status 1
'kNeoclimaStateLength' was not declared in this scope

how can i fix it?

this seems to be due to a wrong library version, you should either use platformio that retrieve the good libraries or download the libraries zip corresponding to your environment there

The different upload methods are described below:
https://docs.openmqttgateway.com/upload/pio.html