Skip to content

Function not declared in this scope #1881

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

Closed
torntrousers opened this issue Apr 8, 2016 · 2 comments
Closed

Function not declared in this scope #1881

torntrousers opened this issue Apr 8, 2016 · 2 comments

Comments

@torntrousers
Copy link
Contributor

With Arduino IDE 1.6.8 and the 2.1.0 esp code this sketch fails to compile:

#include <ESP8266WiFi.h>
#include <PubSubClient.h>
WiFiClient wifiClient;
PubSubClient client("bla", 1883, callback, wifiClient);
void setup() {
}
void loop() {
}
void callback(char* topic, byte* payload, unsigned int payloadLength) {  
}

It gets a compile error saying: 'callback' was not declared in this scope
Is this supposed to be working now after #1472 was fixed?

@igrr
Copy link
Member

igrr commented Apr 9, 2016

This is an arduino-builder issue, it affects all cores (not only ESP8266): arduino/arduino-builder#85

@igrr igrr closed this as completed Apr 9, 2016
@torntrousers
Copy link
Contributor Author

Ah I see. Thanks.

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

2 participants