ESPEasy compile errors

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
IanK
New user
Posts: 1
Joined: 11 Jul 2016, 13:37

ESPEasy compile errors

#1 Post by IanK » 11 Jul 2016, 13:52

Hi guys,

first off, thanks for putting together ESPEasy... it looks like a very useful tool. Although I can't seem to get it to work at all... user error almost certainly being the cause.
I am trying to flash ESPEasy onto an ESP-13 WiFi shield using an Arduino Mega to do the TTL part.
I am trying to do this using the Arduino IDE and have followed the instructions pretty well so far I think.
I had some issues with .h files not being found but I think I've resolved that with a few library installs.
However, I still can't get the Arduino sketch to compile due to some MQTT errors that I have included below.
I'd be eternally grateful for any help you guys can lend me in working out what I'm doing wrong please?

I am running on Ubuntu 14.04 so obviously using Linux.
I have also tried loading different firmware on to the board using ESPtool but this also failed to connect with the board.
So, I suspect I am also doing something wrong regarding the Mega to ESP-13 wiring but for the moment I'd just be glad to get ESPEasy to compile to be honest.

Grateful for any and all assistance!
Cheers,

Ian K

Error messages:

Arduino: 1.6.9 (Linux), Board: "ESPDuino (ESP-13 Module), 80 MHz, 9600, 4M (3M SPIFFS)"

WARNING: library LiquidCrystal_I2C claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
ESPEasy:246: error: 'PubSubClient' does not name a type
PubSubClient MQTTclient("");
^
Controller:47: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub) {
^
Controller:47: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub) {
^
Controller:47: error: expected ')' before '&' token
Controller:47: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub) {
^
/home/ian/Desktop/ESPEasyR8/Source/ESPEasy/ESPEasy.ino: In function 'void backgroundtasks()':
ESPEasy:987: error: 'MQTTclient' was not declared in this scope
MQTTclient.loop();
^
/home/ian/Desktop/ESPEasyR8/Source/ESPEasy/Command.ino: In function 'void ExecuteCommand(byte, const char*)':
Command:142: error: 'MQTTclient' was not declared in this scope
MQTTclient.publish(topic, value);
^
/home/ian/Desktop/ESPEasyR8/Source/ESPEasy/Controller.ino: At global scope:
Controller:47: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub) {
^
Controller:47: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub) {
^
Controller:47: error: expected ')' before '&' token
Controller:47: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub) {
^
exit status 1
'PubSubClient' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Post Reply

Who is online

Users browsing this forum: No registered users and 126 guests