Revision history [back]

click to hide/show revision 1
initial version

The basic_client.log show that the session failed with ER_ALLJOYN_JOINSESSION_REPLY_REJECTED. This points to the service not accepting the session.

On the thin core service side, check that you are processing the AJ_METHOD_ACCEPT_SESSION message correctly. Here are the pertinent bits from due_led.cc:

status = AJ_UnmarshalMsg(&bus, &msg, UNMARSHAL_TIMEOUT);

if (status == AJ_OK) {
    switch (msg.msgId) {
     case AJ_METHOD_ACCEPT_SESSION:
        {
            AJ_InfoPrintf(("Accepting...\n"));
            uint16_t port;
            char* joiner;
            AJ_UnmarshalArgs(&msg, "qus", &port, &sessionId, &joiner);
            status = AJ_BusReplyAcceptSession(&msg, TRUE);
             if (status == AJ_OK) {
                AJ_InfoPrintf(("Accepted session session_id=%u joiner=%s\n", sessionId, joiner));
            } else {
                AJ_InfoPrintf(("AJ_BusReplyAcceptSession: error %d\n", status));
            }
       }
       break;

BTW, I took a peak at your my_ledctrl.cc and did not see any service bits in there, like the message processing loop. Take a look at due_led.cc for a better example of what is needed.