Revision history [back]

click to hide/show revision 1
initial version

if the session id is 0 then you are not in a session. Programs connected to the same routing node can talk with each other even if they are not in a session. If you want to talk device to device you really want to be in a session. Since the AnnounceHandler.onDeviceLost relies on the sessionLost signal you are not in a session (i.e. session id 0 bot onDeviceLost and sessionLost will not work) I would focus on figuring out why you are not getting a session id.

if the session id is 0 then you are not in a session. Programs connected to the same routing node can talk with each other even if they are not in a session. If you want to talk device to device you really want to be in a session. Since the AnnounceHandler.onDeviceLost relies on the sessionLost signal you are not in a session (i.e. session id 0 bot onDeviceLost and sessionLost will not work) signal. I would focus on figuring out why you are not getting a session id.