Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
434 stars 115 forks source link

Compile error #1

Closed Toshik closed 9 years ago

Toshik commented 9 years ago
PubSubClient.h:55:56: error: section attribute not allowed for 'payload'

for that code:

   bool publish_P(String topic, const uint8_t PROGMEM *payload, unsigned int, bool retained = false);
Toshik commented 9 years ago

I think it is related to https://github.com/esp8266/Arduino/commit/8b1caebf7689ec419ff14e9d966e0929de1a67a3

Imroy commented 9 years ago

696e1a5 hopefully fixes things. I haven't been able to test this because my only usable board is currently being used to test battery life.

Toshik commented 9 years ago

@Imroy I will test now

igrr commented 9 years ago

Will this still work on AVRs?

Toshik commented 9 years ago

@Imroy Now it compiles.

Imroy commented 9 years ago

@igrr I pull in ESP8266WiFi.h to get the WiFiClient class. Actually, I could just pull in WiFiClient.h. But in AVR land that's in some optional library, isn't it? That's the only external dependency that I know of, besides the core Arduino headers. Otherwise it should work on AVRs.