0

Read Authorization Request

ELCAMINO gravatar image

asked 2013-09-03 08:09:58 +0100

updated 2013-09-06 06:52:18 +0100

Hi All,

Regarding to the question Question about read operation , and I have tried to add the authorization when read, but it could not receive the response. Please see attached.

I set the read authorization bit when adding the characteristic, attr_md.rd_auth = 1; and add the event and the reply.


ble_private_service_on_ble_evt
{
     ˙˙˙
    case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST:
        sd_ble_gatts_rw_authorize_reply(conn_handle,&rw_authorize_reply_params);
    break
}

is there any thing I missed?

no response.png

edit retag flag offensive close delete report spam

Unfortulately, the attachment has been lost

Joe Merten ( 2014-05-28 13:29:43 +0100 )editconvert to answer

3 answers

Sort by » oldest newest most voted
1
palhaland gravatar image

answered 2013-09-03 11:25:39 +0100

updated 2013-09-06 06:52:18 +0100

Hi ELCA

By the look of it it looks like your application does not handle the BLE_ERROR_GATTS_SYS_ATTR_MISSING event.

Please have a look in the API for MSC: GATTS System Attributes Handling: Unknown Peer

and see if that helps with the missing responses.

edit flag offensive delete publish link more
2
hkn gravatar image

answered 2013-09-03 11:47:05 +0100

As Pål says, you are missing some calls. I have a small example showing this feature.

ble_app_authorized_write.zip

edit flag offensive delete publish link more
0
ELCAMINO gravatar image

answered 2013-09-06 06:52:10 +0100

Hi,

Thanks for the reply, it's a great help.

ELCA

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

Stats

Asked: 2013-09-03 08:09:58 +0100

Seen: 3,175 times

Last updated: sep. 06 '13