I haven't been able to look super closely, but I think this is the issue.

Your call to the OCDoResource on the client does a GET (or discovery?), however 
it doesn't specify which device to do a GET on!  The "light" needs to specify 
the IP address of the request.

Check out resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp for 
examples of how to do multicast discovery and get requests.  The OCDoResoruce 
call isn't very intuitive to use in this case unfortunately, but the example in 
that version should be somewhat descriptive.

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Schulhof, Gabriel
Sent: Tuesday, May 05, 2015 10:49 AM
To: Lenahan, Charlie
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Simple client/server in C

Hey!

On Tue, May 5, 2015 at 6:25 PM, Lenahan, Charlie
<charlie.lenahan at intel.com> wrote:
> I would use something instead of OC_NA_QOS, cause I don?t think that?s
> valid.
> Also if you run loop only calls OCProcess every 2 seconds , then things
> will be very slow.

OK. I've since reduced the timeout to 100ms in both the client and the
server and I've tried with both OC_HIGH_QOS and OC_LOW_QOS[0], and
still no dice :/ Is there anything else I need to change? Would it
help if I were to build in debug mode and include the resulting
output?

TIA for your help,



Gabriel

[0] https://gist.github.com/gabrielschulhof/c11f3f91fde92c61bde8
_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to