Skip to content

Fix some warnings and wrap ESP8266 Client overrides in #ifdef #22

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

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

sandeepmistry
Copy link
Contributor

Based on the discussions in:

@lxrobotics for @JAndrassy's concerns, to reproduce, use the WiFiEcho.ino and change:

const char broker[] = "test.mosquitto.org";

to

IPAddress broker = IPAddress(10, 0, 1, 1);

You will get a compile error.

@JAndrassy
Copy link

JAndrassy commented Nov 14, 2019

the invalid pure virtual functions were only in esp8266 core 2.5.0. they were reverted in 2.5.1 in May, current version of esp8266 core is 2.6.1

@sandeepmistry
Copy link
Contributor Author

@JAndrassy is there some way to determine the core version at compile time?

@JAndrassy
Copy link

@JAndrassy is there some way to determine the core version at compile time?

why is the compatibility with broken 2.5.0 important?

@sandeepmistry
Copy link
Contributor Author

why is the compatibility with broken 2.5.0 important?

@JAndrassy I'm not sure, there is only a comment from @lxrobotics: ade2940#commitcomment-35808711 that Create needs it.

@lxrobotics and/or @eclipse1985 could you please explain?

@eclipse1985
Copy link

We have to keep the compatibility with 2.5.0 because on create we are locked at this version. Versions >2.5 have totally changed the build/upload tools, and we are unable to port them on create agent right now.

@JAndrassy
Copy link

JAndrassy commented Nov 14, 2019

We have to keep the compatibility with 2.5.0 because on create we are locked at this version. Versions >2.5 have totally changed the build/upload tools, and we are unable to port them on create agent right now.

esp8266 core 2.4.2 is a very good version. 2.5.0 updated to Espressif SDK 3.0 beta and it doesn't work good. they reverted to SDK 2.2.x in 2.5.1

@aentinger
Copy link
Contributor

aentinger commented Nov 15, 2019

@JAndrassy Thank you for letting us know. I suppose the virtual function declarations causing this change are still defined in ESP8266 Core 2.4.2 Client class?

@JAndrassy
Copy link

JAndrassy commented Nov 15, 2019

@JAndrassy Thank you for letting us know. I suppose the virtual function declarations causing this change are still defined in ESP8266 Core 2.4.2 Client class?

they are not. Only 2.5.0 is wrong.

@aentinger
Copy link
Contributor

@eclipse1985 How about downgrading to 2.4.2 then?

@eclipse1985
Copy link

I'm not sure this is feasible on create side cc @rsora @matteosuppo

Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this since we are stuck with the 2.5.0 version on create for now.

@aentinger aentinger merged commit c0fc4b7 into arduino-libraries:master Mar 18, 2020
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

Successfully merging this pull request may close these issues.

4 participants