- Sat Sep 26, 2015 11:02 am
#29930
The MQTT_led_v106.ino is collected from an earlier post and the PubSubClient from
http://github.com/Imroy/pubsubclient With the hopefully latest MQTT_led_v106 things aren't compiling
Issue
it will not compile in the arduino IDE for a generic 8266 board
The MQTT.cpp is not compiling with the arduino IDE perhaps others are using an earlier version this thread might be helped if there was a recent posting of code that compiles instead of the references to earlier posting that may or may not be uptodate and may or may not be compatible with the current version of PubSubClient on github
[code]#include <ESP8266WiFi.h>
#include <PubSubClient.h> // MQTT library from
http://github.com/Imroy/pubsubclient#include <Ticker.h>
[/code]
of the many many compile errors below is a sample
[code]
In file included from MQTT.cpp:20:0:
MQTT.h:278:33: error: '__FlashStringHelper' does not name a type
Publish(String topic, const __FlashStringHelper* payload);
^
MQTT.h:278:54: error: ISO C++ forbids declaration of 'payload' with no type [-fpermissive]
Publish(String topic, const __FlashStringHelper* payload);
^
MQTT.h:280:44: error: 'PGM_P' has not been declared
friend Publish Publish_P(String topic, PGM_P payload, uint32_t length);[/code]