Skip to content

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

Closed
abbydillon opened this issue Jul 15, 2018 · 10 comments
Closed

Missing included file <ArduinoMDNS.h> #21

abbydillon opened this issue Jul 15, 2018 · 10 comments

Comments

@abbydillon
Copy link

abbydillon commented Jul 15, 2018

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.

@mone27
Copy link

mone27 commented Jul 15, 2018

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.

@hobinjk
Copy link
Contributor

hobinjk commented Jul 16, 2018

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

@rzr
Copy link
Collaborator

rzr commented Jul 25, 2018

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

rzr added a commit to TizenTeam/webthing-esp8266 that referenced this issue Jul 26, 2018
Change-Id: I8070201762351167b030bfba6dba71e207680166
Bug: WebThingsIO#21
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to TizenTeam/webthing-esp8266 that referenced this issue Jul 26, 2018
Other examples could follow this pattern

Change-Id: I8070201762351167b030bfba6dba71e207680166
Bug: WebThingsIO#21
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to TizenTeam/webthing-esp8266 that referenced this issue Jul 26, 2018
Other examples could follow this pattern

Change-Id: I8070201762351167b030bfba6dba71e207680166
Bug: WebThingsIO#21
Forwarded: WebThingsIO#24
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to TizenTeam/webthing-esp8266 that referenced this issue Jul 26, 2018
Other examples could follow this pattern

Change-Id: I8070201762351167b030bfba6dba71e207680166
Bug: WebThingsIO#21
Forwarded: WebThingsIO#24
Signed-off-by: Philippe Coval <[email protected]>
hobinjk pushed a commit that referenced this issue Jul 26, 2018
Other examples could follow this pattern

Change-Id: I8070201762351167b030bfba6dba71e207680166
Bug: #21
Forwarded: #24
Signed-off-by: Philippe Coval <[email protected]>
@So47
Copy link

So47 commented Sep 21, 2018

Have you solved it ?

@hobinjk
Copy link
Contributor

hobinjk commented Sep 21, 2018

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.

@hobinjk hobinjk closed this as completed Sep 21, 2018
@So47
Copy link

So47 commented Sep 23, 2018

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.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board Arduino/Genuino Uno.

@hobinjk
Copy link
Contributor

hobinjk commented Sep 25, 2018

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

@rzr
Copy link
Collaborator

rzr commented Sep 25, 2018

mDNS could be optional to target constrained devices...

@hobinjk
Copy link
Contributor

hobinjk commented Sep 25, 2018

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.

@freaktechnik
Copy link

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.

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

6 participants