Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1

Closed
Toshik opened this issue May 14, 2015 · 6 comments
Closed

Compile error #1

Toshik opened this issue May 14, 2015 · 6 comments

Comments

@Toshik
Copy link

Toshik commented May 14, 2015

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
Copy link
Author

Toshik commented May 14, 2015

I think it is related to esp8266/Arduino@8b1caeb

Imroy added a commit that referenced this issue May 14, 2015
Implement PubSubClient::publish_P().
Related to pgmspace.h being fixed/implemented in the Arduino port (see esp8266/Arduino@8b1caeb)
@Imroy
Copy link
Owner

Imroy commented May 14, 2015

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
Copy link
Author

Toshik commented May 14, 2015

@Imroy I will test now

@igrr
Copy link

igrr commented May 14, 2015

Will this still work on AVRs?

@Toshik
Copy link
Author

Toshik commented May 14, 2015

@Imroy Now it compiles.

@Imroy
Copy link
Owner

Imroy commented May 14, 2015

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants