have this error when Compile for relay switch! :(

8 years 4 months ago #2580 by nimaaryamehr
I added all libraries but have this error when Compile :( :( :( :( :(
J:\arduino-nightly\libraries\ESP8266_relay_switch_MQTT\ESP8266_relay_switch_MQTT.ino: In function 'void setup()':

ESP8266_relay_switch_MQTT:64: error: 'loadConfig' was not declared in this scope

   loadConfig();

              ^

ESP8266_relay_switch_MQTT:95: error: 'macToStr' was not declared in this scope

   clientName += macToStr(mac);

                             ^

ESP8266_relay_switch_MQTT:105: error: 'myConnectedCb' was not declared in this scope

   myMqtt.onConnected(myConnectedCb);

                      ^

ESP8266_relay_switch_MQTT:106: error: 'myDisconnectedCb' was not declared in this scope

   myMqtt.onDisconnected(myDisconnectedCb);

                         ^

ESP8266_relay_switch_MQTT:107: error: 'myPublishedCb' was not declared in this scope

   myMqtt.onPublished(myPublishedCb);

                      ^

ESP8266_relay_switch_MQTT:108: error: 'myDataCb' was not declared in this scope

   myMqtt.onData(myDataCb);

                 ^

ESP8266_relay_switch_MQTT:120: error: 'waitOk' was not declared in this scope

   waitOk();

          ^

ESP8266_relay_switch_MQTT:154: error: 'saveConfig' was not declared in this scope

     saveConfig();

                ^

J:\arduino-nightly\libraries\ESP8266_relay_switch_MQTT\ESP8266_relay_switch_MQTT.ino: In function 'void loop()':

ESP8266_relay_switch_MQTT:211: error: 'saveConfig' was not declared in this scope

     saveConfig();

                ^

exit status 1
'loadConfig' was not declared in this scope

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2586 by EasyIoT

nimaaryamehr wrote: I added all libraries but have this error when Compile :( :( :( :( :(

J:\arduino-nightly\libraries\ESP8266_relay_switch_MQTT\ESP8266_relay_switch_MQTT.ino: In function 'void setup()':

ESP8266_relay_switch_MQTT:64: error: 'loadConfig' was not declared in this scope

   loadConfig();

              ^

ESP8266_relay_switch_MQTT:95: error: 'macToStr' was not declared in this scope

   clientName += macToStr(mac);

                             ^

ESP8266_relay_switch_MQTT:105: error: 'myConnectedCb' was not declared in this scope

   myMqtt.onConnected(myConnectedCb);

                      ^

ESP8266_relay_switch_MQTT:106: error: 'myDisconnectedCb' was not declared in this scope

   myMqtt.onDisconnected(myDisconnectedCb);

                         ^

ESP8266_relay_switch_MQTT:107: error: 'myPublishedCb' was not declared in this scope

   myMqtt.onPublished(myPublishedCb);

                      ^

ESP8266_relay_switch_MQTT:108: error: 'myDataCb' was not declared in this scope

   myMqtt.onData(myDataCb);

                 ^

ESP8266_relay_switch_MQTT:120: error: 'waitOk' was not declared in this scope

   waitOk();

          ^

ESP8266_relay_switch_MQTT:154: error: 'saveConfig' was not declared in this scope

     saveConfig();

                ^

J:\arduino-nightly\libraries\ESP8266_relay_switch_MQTT\ESP8266_relay_switch_MQTT.ino: In function 'void loop()':

ESP8266_relay_switch_MQTT:211: error: 'saveConfig' was not declared in this scope

     saveConfig();

                ^

exit status 1
'loadConfig' was not declared in this scope


Did you copy whole program? Some functions at the end of program are missing.
The following user(s) said Thank You: nimaaryamehr

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2587 by dana1115
:( I have this problem
Arduino: 1.6.6 (Windows 10), Плата:"Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck"

D:\ESP8266_Arduino\arduino-1.6.6\Portable\sketchbook\sketch_nov23a\sketch_nov23a.ino: In function 'void setup()':

sketch_nov23a:64: error: 'loadConfig' was not declared in this scope

loadConfig();

^

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2588 by nimaaryamehr
no
I am exactly from the original program
also i test program: wifi-pir-motion-sensor-easyiot-cloud-rest-api
Compiled well and Works well..
Only relay switch have problem... :( :( :( :( :( :(

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2610 by EasyIoT

nimaaryamehr wrote: no
I am exactly from the original program
also i test program: wifi-pir-motion-sensor-easyiot-cloud-rest-api
Compiled well and Works well..
Only relay switch have problem... :( :( :( :( :( :(


It looks like there are some problems with Arduino: 1.6.6. Try with Arduino: 1.6.5.

Please Log in or Create an account to join the conversation.

8 years 4 months ago - 8 years 4 months ago #2617 by nimaaryamehr
Ok
any body have link downoad IDE 1.6.5 FOR win ????
i cant find it

Please Log in or Create an account to join the conversation.

Time to create page: 0.457 seconds

Forum latest

  • No posts to display.