ERROR Compile for relay switch.ino
Posted: Mon Nov 23, 2015 9:34 am
i want to compile this code but i got the error..?!!!!
this cod:
ERROR:
I'm sorry, my English is not good
this cod:
Code: Select all
https://github.com/iot-playground/EasyIoT-Cloud/blob/master/ESP8266_relay_switch_MQTT/ESP8266_relay_switch_MQTT.ino
ERROR:
Code: Select all
relay:64: error: 'loadConfig' was not declared in this scope
loadConfig();
^
relay:95: error: 'macToStr' was not declared in this scope
clientName += macToStr(mac);
^
relay:105: error: 'myConnectedCb' was not declared in this scope
myMqtt.onConnected(myConnectedCb);
^
relay:106: error: 'myDisconnectedCb' was not declared in this scope
myMqtt.onDisconnected(myDisconnectedCb);
^
relay:107: error: 'myPublishedCb' was not declared in this scope
myMqtt.onPublished(myPublishedCb);
^
relay:108: error: 'myDataCb' was not declared in this scope
myMqtt.onData(myDataCb);
^
relay:120: error: 'waitOk' was not declared in this scope
waitOk();
^
relay:154: error: 'saveConfig' was not declared in this scope
saveConfig();
^
C:\Users\Elisum\Documents\Arduino\relay\relay.ino: In function 'void loop()':
relay:211: error: 'saveConfig' was not declared in this scope
saveConfig();
^
exit status 1
'loadConfig' was not declared in this scope
I'm sorry, my English is not good