Arduino: 1.8.5 (Windows 10), Board: “LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200”
In file included from C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino:22:0:
PubSubClient.h:25: error: ‘Publish’ in ‘class MQTT’ does not name a type
typedef std::function<void(const MQTT::Publish&)> callback_t;
^
PubSubClient.h:25: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
typedef std::function<void(const MQTT::Publish&)> callback_t;
^
PubSubClient.h:25: error: expected ‘::’ before ‘callback_t’
typedef std::function<void(const MQTT::Publish&)> callback_t;
^
PubSubClient.h:25: error: ‘std::function<void()>::callback_t’ has not been declared
PubSubClient.h:34: error: ‘callback_t’ does not name a type
callback_t _callback;
^
PubSubClient.h:47: error: ‘Message’ in ‘class MQTT’ does not name a type
MQTT::Message* _recv_message(void);
^
PubSubClient.h:54: error: ‘MQTT::Message’ has not been declared
bool _send_message(MQTT::Message& msg, bool need_reply = false);
^
PubSubClient.h:63: error: ‘MQTT::Message’ has not been declared
void _process_message(MQTT::Message* msg);
^
PubSubClient.h:72: error: ‘MQTT::message_type’ has not been declared
bool _wait_for(MQTT::message_type wait_type, uint16_t wait_pid = 0);
^
PubSubClient.h:99: error: ‘callback_t’ does not name a type
callback_t callback(void) const { return _callback; }
^
PubSubClient.h:101: error: expected ‘;’ at end of member declaration
PubSubClient& set_callback(callback_t cb) { _callback = cb; return *this; }
^
PubSubClient.h:101: error: expected ‘)’ before ‘cb’
PubSubClient& set_callback(callback_t cb) { _callback = cb; return *this; }
^
PubSubClient.h:153: error: ‘MQTT::payload_callback_t’ has not been declared
bool publish(String topic, MQTT::payload_callback_t pcb, uint32_t length, bool retained = false);
^
PubSubClient.h:186: error: ‘MQTT::Connect’ has not been declared
bool connect(MQTT::Connect &conn);
^
PubSubClient.h:188: error: ‘MQTT::Publish’ has not been declared
bool publish(MQTT::Publish &pub);
^
PubSubClient.h:190: error: ‘MQTT::Subscribe’ has not been declared
bool subscribe(MQTT::Subscribe &sub);
^
PubSubClient.h:192: error: ‘MQTT::Unsubscribe’ has not been declared
bool unsubscribe(MQTT::Unsubscribe &unsub);
^
sketch\PubSubClient.h: In member function ‘PubSubClient& PubSubClient::unset_callback()’:
PubSubClient.h:103: error: ‘_callback’ was not declared in this scope
PubSubClient& unset_callback(void) { _callback = NULL; return * this; }
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: At global scope:
MyParola_Scrolling:731: error: ‘Publish’ in ‘class MQTT’ does not name a type
void callback(const MQTT::Publish& pub)
^
MyParola_Scrolling:731: error: ISO C++ forbids declaration of ‘pub’ with no type [-fpermissive]
void callback(const MQTT::Publish& pub)
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: In function ‘void checkStatus()’:
MyParola_Scrolling:629: error: ‘Publish’ is not a member of ‘MQTT’
mqttClient.publish(MQTT::Publish(PUB_PREFIX"/"MQTT_TOPIC, "true").set_retain().set_qos(1));
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: At global scope:
MyParola_Scrolling:731: error: ‘Publish’ in ‘class MQTT’ does not name a type
void callback(const MQTT::Publish& pub)
^
MyParola_Scrolling:731: error: ISO C++ forbids declaration of ‘pub’ with no type [-fpermissive]
void callback(const MQTT::Publish& pub)
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: In function ‘void callback(const int&)’:
MyParola_Scrolling:737: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_BITC))
^
MyParola_Scrolling:741: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:749: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_INTENSITY))
^
MyParola_Scrolling:753: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
requestintensity = pub.payload_string().toInt();
^
MyParola_Scrolling:757: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_SPEED))
^
MyParola_Scrolling:760: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
requestspeed = pub.payload_string().toInt();
^
MyParola_Scrolling:765: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_HUMID))
^
MyParola_Scrolling:768: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:779: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_TEMP))
^
MyParola_Scrolling:782: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:792: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_PLANT))
^
MyParola_Scrolling:795: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:805: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_TODAYW))
^
MyParola_Scrolling:808: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:818: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.topic() == (SUB_PREFIX"/“MQTT_TOPIC”/"MQTT_TOPIC_TOMORROWW))
^
MyParola_Scrolling:821: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
msg = pub.payload_string();
^
MyParola_Scrolling:831: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if (pub.payload_string() == “ON”)
^
MyParola_Scrolling:836: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “OFF”))
^
MyParola_Scrolling:836: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “OFF”))
^
MyParola_Scrolling:841: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “reset”))
^
MyParola_Scrolling:841: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “reset”))
^
MyParola_Scrolling:846: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_PRINT”))
^
MyParola_Scrolling:846: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_PRINT”))
^
MyParola_Scrolling:852: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_LEFT”))
^
MyParola_Scrolling:852: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_LEFT”))
^
MyParola_Scrolling:858: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_RIGHT”))
^
MyParola_Scrolling:858: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_RIGHT”))
^
MyParola_Scrolling:864: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_UP”))
^
MyParola_Scrolling:864: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_UP”))
^
MyParola_Scrolling:870: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_DOWN”))
^
MyParola_Scrolling:870: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCROLL_DOWN”))
^
MyParola_Scrolling:876: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SLICE”))
^
MyParola_Scrolling:876: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SLICE”))
^
MyParola_Scrolling:882: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_MESH”))
^
MyParola_Scrolling:882: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_MESH”))
^
MyParola_Scrolling:888: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_FADE”))
^
MyParola_Scrolling:888: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_FADE”))
^
MyParola_Scrolling:894: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_DISSOLVE”))
^
MyParola_Scrolling:894: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_DISSOLVE”))
^
MyParola_Scrolling:900: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_BLINDS”))
^
MyParola_Scrolling:900: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_BLINDS”))
^
MyParola_Scrolling:906: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_RANDOM”))
^
MyParola_Scrolling:906: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_RANDOM”))
^
MyParola_Scrolling:912: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_WIPE”))
^
MyParola_Scrolling:912: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_WIPE”))
^
MyParola_Scrolling:918: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_WIPE_CURSOR”))
^
MyParola_Scrolling:918: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_WIPE_CURSOR”))
^
MyParola_Scrolling:924: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCAN_HORIZ”))
^
MyParola_Scrolling:924: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCAN_HORIZ”))
^
MyParola_Scrolling:930: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCAN_VERT”))
^
MyParola_Scrolling:930: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_SCAN_VERT”))
^
MyParola_Scrolling:936: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_OPENING”))
^
MyParola_Scrolling:936: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_OPENING”))
^
MyParola_Scrolling:942: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_OPENING_CURSOR”))
^
MyParola_Scrolling:942: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_OPENING_CURSOR”))
^
MyParola_Scrolling:948: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_CLOSING”))
^
MyParola_Scrolling:948: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_CLOSING”))
^
MyParola_Scrolling:954: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_CLOSING_CURSOR”))
^
MyParola_Scrolling:954: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_CLOSING_CURSOR”))
^
MyParola_Scrolling:960: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_GROW_UP”))
^
MyParola_Scrolling:960: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_GROW_UP”))
^
MyParola_Scrolling:966: error: request for member ‘topic’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_GROW_DOWN”))
^
MyParola_Scrolling:966: error: request for member ‘payload_string’ in ‘pub’, which is of non-class type ‘const int’
else if ((pub.topic() == SUB_PREFIX"/"MQTT_TOPIC) and (pub.payload_string() == “PA_GROW_DOWN”))
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: In function ‘int startwifimqtt()’:
MyParola_Scrolling:1077: error: ‘Connect’ is not a member of ‘MQTT’
while (!mqttClient.connect(MQTT::Connect(MQTT_CLIENT).set_keepalive(MQTTKEEPALIVE).set_auth(MQTT_USER, MQTT_PASS).set_will(PUB_PREFIX"/"MQTT_TOPIC, MQTT_WILLMSG)) && kRetries--)
^
MyParola_Scrolling:1101: error: ‘Publish’ is not a member of ‘MQTT’
mqttClient.publish(MQTT::Publish(PUB_PREFIX"/"MQTT_TOPIC, MQTT_ONLINEMSG).set_retain().set_qos(0));
^
C:\Users\ncouto\Documents\Arduino\MyParola_Scrolling\MyParola_Scrolling.ino: In function ‘void setup()’:
MyParola_Scrolling:1151: error: no match for call to ‘(PubSubClient) (void (&)(const int&))’
mqttClient.set_callback(callback);
^
exit status 1
‘Publish’ in ‘class MQTT’ does not name a type
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.