[En-Nut-Discussion] FYI: MDNSd sample added
    Uwe Bonnes 
    bon at elektron.ikp.physik.tu-darmstadt.de
       
    Sun Apr 17 22:29:40 CEST 2016
    
    
  
>>>>> "Ole" == Ole Reinhardt <ole.reinhardt at embedded-it.de> writes:
    Ole> Hi all, I just added a sample program to show the usage of the MDNS
    Ole> deamon in combination with a simple web service.
    Ole> You can find this sample in
    Ole> nut/app/mdnsd_uhttpd/
    Ole> Unfortunately the MDNSd needs a little RAM (for caching the MDNS
    Ole> entries), so it won't run on boards with less than 16K free RAM.
To keep the examples compiling, we need more fine-grained hints about
availabe RAM  provides by the board and RAM needed by the application.
    Ole> This sample announces itself as "ethernut.local" and the Webservice
    Ole> running on port 80.
    Ole> You can reach the webserver under the following URL:
    Ole> http://ethernut.local
    Ole> Multicast DNS works on Linux and OS/X, on Windows you might need to
    Ole> install the Apple Bonjour service. At least on older Windows
    Ole> versions. I do not know, if Windows 10 supports Multicast DNS
    Ole> natively.
Please test with other configs. But probably the implicit declaration also
happenes on your target config too:
sam7eth  ..mdnsd_uhttp.c: In function 'main':
mdnsd_uhttp.c:136:5: warning: implicit declaration of function
'HttpRegisterRedir' [-Wimplicit-function-declaration]
     HttpRegisterRedir("", "/index.html", 301);
     ^
     sam7eth done
And thanks for the example!
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
    
    
More information about the En-Nut-Discussion
mailing list