Using nRF51 and S130 v2.0.1; What are the meanings of ble_gatts_evt_write_t::auth_required = {0x00, 0x01 and 0x02}?
Using nRF51 and S130 v2.0.1; What are the meanings of ble_gatts_evt_write_t::auth_required = {0x00, 0x01 and 0x02}?
Hi Jose.
auth_required = 1, means that the peripheral must call sd_ble_gatts_value_set when the WRITE event is received to update the value in the GATT table, see GATTS Write Command With Authorization. If its set to 0 then the value is updated automatically and you will just get the Write event with auth_required set to 0. I think that that auth_required set to 2 means that a signed autorization is needed, but I do not think that this is supported by the S130 SD.
Best regards
BJørn