toblum / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
1.05k stars 289 forks source link

Project won't compile #484

Closed phm07 closed 4 years ago

phm07 commented 4 years ago

I am using Arduino IDE 1.9.0-beta with a Wemos D1 mini.

Arduino: 1.9.0-beta (Windows 10), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

In file included from D:\McLighting-master\Arduino\McLighting\McLighting.ino:253:0:

sketch\request_handlers.h: In function 'void checkpayload(uint8_t*, bool, uint8_t)':

request_handlers.h:468:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:471:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

request_handlers.h:489:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:519:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:522:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

request_handlers.h:544:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:547:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

request_handlers.h:630:26: error: 'class Ticker' has no member named 'active'

         if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                          ^

request_handlers.h:633:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

In file included from D:\McLighting-master\Arduino\McLighting\McLighting.ino:253:0:

request_handlers.h:707:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:710:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

In file included from D:\McLighting-master\Arduino\McLighting\McLighting.ino:253:0:

sketch\request_handlers.h: In function 'void onMqttMessage(char*, char*, AsyncMqttClientMessageProperties, size_t, size_t, size_t)':

request_handlers.h:972:26: error: 'class Ticker' has no member named 'active'

         if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                          ^

request_handlers.h:974:33: error: 'class Ticker' has no member named 'active'

           if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                                 ^

In file included from D:\McLighting-master\Arduino\McLighting\McLighting.ino:253:0:

sketch\request_handlers.h: In function 'void shortKeyPress()':

request_handlers.h:1200:26: error: 'class Ticker' has no member named 'active'

         if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                          ^

request_handlers.h:1203:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

request_handlers.h:1216:26: error: 'class Ticker' has no member named 'active'

         if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                          ^

request_handlers.h:1219:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

sketch\request_handlers.h: In function 'void mediumKeyPress()':

request_handlers.h:1236:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

request_handlers.h:1239:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

sketch\request_handlers.h: In function 'void longKeyPress()':

request_handlers.h:1255:23: error: 'class Ticker' has no member named 'active'

      if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                       ^

request_handlers.h:1258:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:736:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

McLighting:739:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:764:26: error: 'class Ticker' has no member named 'active'

         if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                          ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:914:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:937:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:957:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:976:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:995:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1014:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1033:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1052:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1072:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1092:31: error: 'class Ticker' has no member named 'active'

         if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                               ^

D:\McLighting-master\Arduino\McLighting\McLighting.ino: In lambda function:

McLighting:1114:24: error: 'class Ticker' has no member named 'active'

       if(!ha_send_data.active())  ha_send_data.once(5, tickerSendState);

                        ^

McLighting:1117:29: error: 'class Ticker' has no member named 'active'

       if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);

                             ^

exit status 1
'class Ticker' has no member named 'active'
phm07 commented 4 years ago

Fixed: https://github.com/toblum/McLighting/issues/125#issuecomment-379543100