Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Example Fails to Compile on Arduino IDE #6

Closed
rei-vilo opened this issue Mar 24, 2018 · 4 comments
Closed

Example Fails to Compile on Arduino IDE #6

rei-vilo opened this issue Mar 24, 2018 · 4 comments

Comments

@rei-vilo
Copy link

rei-vilo commented Mar 24, 2018

See https://discourse.mozilla.org/t/esp-adapter/26664/12

The sketch at https://github.com/mozilla-iot/http-on-off-wifi101 no longer builds on the standard Arduino IDE.

capture 2018-03-24 a 14 46 31

The culprit seems to be the change introduced by Remove ArduinoMDNS in favour of using PlatformIO one. #5.

Please ensure the examples provided work with standard tools.

@rei-vilo
Copy link
Author

rei-vilo commented Mar 24, 2018

I downloaded and installed PlatformIO. The sketch compiles, links and uploads but fails to run against the Arduino M0 Pro with the WiFi101 shield.

I tried both #define USE_MDNS_RESPONDER 0 and #define USE_MDNS_RESPONDER 1, to no avail.

The previous release based on the WiFiMDNSResponder library works fine on the Arduino M0 Pro with the WiFi101 shield.

@dhylands
Copy link
Contributor

Hmm. If you set USE_MDNS_RESPONDER to 1 then you should have exactly the previous version (to be specific version 6f94b90)

And if I do a git diff on hash 6f94b90 then all of the added code is in a #else on MDNS_RESPONDER.

@dhylands
Copy link
Contributor

I added an http-on-off-wifi101.ino file to make it easier to build from within the Arduino IDE.
I also added instructions on how to install the Wifi101 and ArduinoMDNS dependencies inside the .ino file.
I built and tested this using Arduino 1.8.5 on my MKR1000 board and everything seems to be working fine,

@rei-vilo
Copy link
Author

Thanks! I'll try on my Arduino Zero + WiFi 101.

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

No branches or pull requests

2 participants