-
Notifications
You must be signed in to change notification settings - Fork 76
Missing included file <ArduinoMDNS.h> #21
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
Comments
Have you installed the native-web-thing addon on the gateway? Anyway you can check that your webthing is working simply connecting with yours browser at the webthing http server. |
The ArduinoMDNS library is https://github.com/arduino-libraries/ArduinoMDNS which should be included by default as far as I know (it's installed in my local Arduino IDE 1.8.5). I was having some issues with getting the mDNS library to create properly-formatted packets but a board running the latest version of this software and of thing-url-adapter (0.2.1) should function correctly. You can verify the version of thing-url-adapter from the gateway's settings > addons page |
FYI I have hacked some makefiles to rebuild examples without using IDE... would that help ? https://github.com/TizenTeam/webthing-esp8266/tree/master/examples/LevelSensor |
Change-Id: I8070201762351167b030bfba6dba71e207680166 Bug: WebThingsIO#21 Signed-off-by: Philippe Coval <[email protected]>
Other examples could follow this pattern Change-Id: I8070201762351167b030bfba6dba71e207680166 Bug: WebThingsIO#21 Signed-off-by: Philippe Coval <[email protected]>
Other examples could follow this pattern Change-Id: I8070201762351167b030bfba6dba71e207680166 Bug: WebThingsIO#21 Forwarded: WebThingsIO#24 Signed-off-by: Philippe Coval <[email protected]>
Other examples could follow this pattern Change-Id: I8070201762351167b030bfba6dba71e207680166 Bug: WebThingsIO#21 Forwarded: WebThingsIO#24 Signed-off-by: Philippe Coval <[email protected]>
Other examples could follow this pattern Change-Id: I8070201762351167b030bfba6dba71e207680166 Bug: #21 Forwarded: #24 Signed-off-by: Philippe Coval <[email protected]>
Have you solved it ? |
I think this is solved either by setting up the Arduino IDE so it recognizes its built-in libraries or by using the provided makefiles. Discovery can still easily be broken by network or chip issues. |
When I added arduinoMDNS library , it gives me another error, Sketch uses 49140 bytes (152%) of program storage space. Maximum is 32256 bytes. Global variables use 1784 bytes (87%) of dynamic memory, leaving 264 bytes for local variables. Maximum is 2048 bytes. |
@So47 Unfortunately this library includes a lot of other dependencies like ArduinoJson and WiFi101 which make it too large for the Uno and some other boards. The board I use is a Mega which does have enough space available. |
mDNS could be optional to target constrained devices... |
If I remember correctly from the last time I looked at this the JSON encoder/decoder is the largest contributor but even with minimal encoding/decoding webthing-arduino still couldn't fit in the 32k of the Uno. For very constrained devices something like https://github.com/bhagman/usb-serial-adapter is probably more suitable. I do think there's a bunch of room for optimizing webthing-arduino and making mDNS easy to remove would be a nice win. |
I think it would make sense to provide an ifdef to skip all usage of the mDNS infrastructure, since it appears the library isn't available for all devices that might for example support WiFi101. |
Uh oh!
There was an error while loading. Please reload this page.
The library WiFi101WebThingAdapter.h includes a file called ArduinoMDNS.h, but this file is not in the repo and is not available via the Arduino IDE Library manager. A quick web search does not turn up a definitive source.
Could you either include it in the repo, link to it elsewhere, or remove it if it's not needed? Thank you.
I'm trying to figure out why the Gateway does not find my device, and thinking this could be part of the problem. Thanks.
The text was updated successfully, but these errors were encountered: