using d-bus api to set security level
Hi,
I am trying to find the equivalent of using gatttool's --sec-level when writing a python script to connect to an LE device over the d-bus API.
It seems like I have to set the Characteristic correctly. But I am missing something obvious when looking through the doc/ api files.
Can someone point me to the right spot? Thanks!
Cheers,
Don
Luiz Augusto von Dentz
maintainerHi Don,
Quoted 9 lines · Don Zickus
Hi,
I am trying to find the equivalent of using gatttool's --sec-level when writing a python script to connect to an LE device over the d-bus API.
It seems like I have to set the Characteristic correctly. But I am missing something obvious when looking through the doc/ api files.
Can someone point me to the right spot? Thanks!
You can call Device1.Pair if you want to authenticate, once the LTK is exchanged it will be used automatically in the next connections.
Signature · 1 line
Luiz Augusto von Dentz
Quoted 8 lines · Luiz Augusto von Dentz
Hi Don,
Quoted 5 lines · Don Zickus
Hi,
I am trying to find the equivalent of using gatttool's --sec-level when writing a python script to connect to an LE device over the d-bus API.
Quoted 7 lines
Quoted 4 lines
It seems like I have to set the Characteristic correctly. But I am missing something obvious when looking through the doc/ api files.
Can someone point me to the right spot? Thanks!
You can call Device1.Pair if you want to authenticate, once the LTK is exchanged it will be used automatically in the next connections.
Hi Luiz,
Thanks for the response. I guess if the Pair() fails with Authentication failure, that implies the device does not support it? I was playing with this TI sensortag and wanted to double check how it was connecting.
So does the authentication get setup by the agent? And the Pair() to the agent determines if the link will be encrypted?
Cheers,
Don