I have 3 of the exact same programs running on three different machines (2
raspberrypis and one mac OSX). The programs and all work well however I
cant get presence to work consistently.

The program is set to multicast presence and the platforms are all set to
ModeType::Both. They all generate unique UUIDs at runtime and have
secured=0.

When they all start up, the last one gets presence from the others and
successfully sees everyone.

However, the inconsistency is on shutdown.

One of the raspberrypis when shutting down properly notifies all the
subscribers on the presence and correctly disappears.

The logs show:
03:09.220 [0;33mINFO [0m: OIC_RI_OBSERVE: Entering SendObserverNotification
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER:
=================================================
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Is Multicast = true
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Transport Type = [OC_ADAPTER_TCP]
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Address = []:[0]
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Data Type = [CA_RESPONSE_DATA]
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER:
-------------------------------------------------
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: result code = [205]
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Msg ID = [65022]
03:09.220 [0;32mDEBUG [0m: OIC_ANALYZER: Coap Token

The other shuts down with with an error showing:
03:06.223 [0;33mINFO [0m: OIC_RI_STACK: Entering OCStopPresence
03:06.223 [0;33mINFO [0m: OIC_RI_STACK: SendStopNotification
03:06.223 [0;33mINFO [0m: OIC_RI_OBSERVE: Entering SendObserverNotification
03:06.223 [0;33mINFO [0m: OIC_RI_OBSERVE: Resource has no observers

Is there some specific configuration for allowing multiple broadcast,
presence devices on the same network?

Any help or clarity would be GREATLY appreciated. The documentation on this
is very limited and I've dug into the code a bit too far with no luck.

Thanks!
David
_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to