Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18347

mDNS wired ethernet support for either coding or from linux os

$
0
0

Does anyone have any knowledge, code examples, etc for getting mDNS (ZeroConf / Bonjour) to work on the Galileo?

Haven't found anything for getting AVAHI to run on the OS.

 

I have found a couple libraries for the coding part, but they failed to compile.

This is just the first few lines of the error report:

 

Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp: In member function 'int EthernetBonjourClass::begin(const char*)':

/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:148:21: error: 'class EthernetBonjourClass' has no member named 'beginMulti'

In file included from /Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:28:0:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/EthernetUdp.h: In member function 'MDNSError_t EthernetBonjourClass::_processMDNSQuery()':

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/EthernetUdp.h:52:11: error: 'uint16_t EthernetUDP::_remotePort' is private

...


This is the library I am currently trying to get to work:

TrippyLighting/EthernetBonjour · GitHub

 

This programmer required to make a couple modifications to the EthernetUdp.c and .h files, which I did.

Forum (This link is to a forum to support PJRC products, but the info does apply to typical arduino products)

Note: It works fine for my Arduino DUE and Arduino Ethernet boards (with the file modifications as previously stated).

 

Please if someone could help me get this resolved. Thank you all.

 

-------------------------------

Update:

Just realize that I was modifying the wrong EthernetUdp files. Need to be in:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet

 

So, now I am getting different errors:

 

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp: In member function 'MDNSError_t EthernetBonjourClass::_processMDNSQuery()':

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1025:96: error: conversion from 'IPAddress' to 'uint32_t {aka unsigned int}' is ambiguous

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1025:96: note: candidates are:

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:70:5: note: IPAddress::operator in_addr_t()

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:64:5: note: IPAddress::operator uint32_t()

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:270:13: error:   initializing argument 1 of 'MDNSError_t EthernetBonjourClass::_sendMDNSMessage(uint32_t, uint32_t, int, int)'

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1031:101: error: conversion from 'IPAddress' to 'uint32_t {aka unsigned int}' is ambiguous

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1031:101: note: candidates are:

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:70:5: note: IPAddress::operator in_addr_t()

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:64:5: note: IPAddress::operator uint32_t()

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:270:13: error:   initializing argument 1 of 'MDNSError_t EthernetBonjourClass::_sendMDNSMessage(uint32_t, uint32_t, int, int)'

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1037:99: error: conversion from 'IPAddress' to 'uint32_t {aka unsigned int}' is ambiguous

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:1037:99: note: candidates are:

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:70:5: note: IPAddress::operator in_addr_t()

In file included from /Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/libraries/Ethernet/Ethernet.h:52:0,

                 from /Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:27:

/Applications/Arduino 1.5.3.app/Contents/Resources/Java/hardware/arduino/x86/cores/arduino/IPAddress.h:64:5: note: IPAddress::operator uint32_t()

/Users/digimenet/Documents/Arduino/libraries/EthernetBonjour/EthernetBonjour.cpp:270:13: error:   initializing argument 1 of 'MDNSError_t EthernetBonjourClass::_sendMDNSMessage(uint32_t, uint32_t, int, int)'


----------------------


Still working on it and hoping for a solution from anyone. Thanks all.


Viewing all articles
Browse latest Browse all 18347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>