Hi,
I have used btstack_link_key_db_memory.c as you said, and this works smoothly. After that I have looked closely, there is file btstack_link_key_db_static.c where you have written this comment:
Static Link Key implementation to use during development/porting:
Therefore, in order to learn link key implementation, I have used its function and connect my laptop. First, process has no problem, and I have added link key of my device that is coming from the log in btstack_link_key_db_static.c file:
static const link_key_entry_t link_key_db[] = {
// Example enry
{ "11:22:33:44:55:66", "11223344556677889900112233445566", 1},
// Add new link keys here..
};
After compiling and flashing operation, the connection failed error is given. But, If I never add the link key above code section there isn't given an error for connection process. In addition, I have observed that link key of my device that I read from the log always change. I think there is a encryption process and this always changes.
In flash programming, the link key does not change, and there isno error for second connection.
In static programming, the link key always changes, why ? Can you help me ?
Thank You
Best
Yavuz
25 Aralık 2017 Pazartesi 16:50:08 UTC+3 tarihinde Matthias Ringwald yazdı: