Hello,
I'm trying to get a CSDK client running on Android discover resources
on a CSDK server running on Linux.

The client and the server are on the same WiFi network (the IP address
10.10.15.41 below is the server).

This is a snippet from the logs, right after attempting a discover
with OCDoResource:

D/IP_ADAP ( 6347): Send Multicast Data is called
D/IP_MONITOR( 6347): Got ifaddrs:: 10.10.15.41
E/IP_MONITOR( 6347): Added interface: wlan0 (2)
E/IP_SERVER( 6347): send IP_MULTICAST_IF failed: Bad file number (using defualt)
D/IP_SERVER( 6347): IN
E/IP_SERVER( 6347): multicast ipv4 sendTo failed: Bad file number
D/IP_ADAP ( 6347): OUT

This is how I compiled the client:
scons TARGET_OS=android TARGET_ARCH=armeabi-v7a RELEASE=no LOGGING=yes
VERBOSE=yes

And this is how I compiled the server:
scons RELEASE=no LOGGING=yes VERBOSE=yes TARGET_TRANSPORT=IP

The bit about sendTo failing seems to be logged by
resource/csdk/connectivity/src/ip_adapter/caipserver.c in the sendData
function.

My Iotivity version is 0.9.2.

Can anyone help me understand what's missing?

Thanks!
Salvatore

-- 
Salvatore Iovene <salvatore.iovene at intel.com>
Linux Software Engineer
Intel Open Source Technology Center, Finland
Tel.: +358504804026

Reply via email to