Hi,
I'm currently developping a peripheral. This one uses Peer Manager module to handle pairing.
This peer manager is configured properly with pm_sec_params_set (as far as I can say), and accept pairing and probably bonding (I did not test it fully).
My problem is that it seems that my peer manager accept as well pairing with wrong security parameters. For example, say i configured my peer manager to be on security mode 1 level 3, It seems to accept as well pairing with security mode 1 level 2.
So my questions are:
- Is it possible that I misunderstood my logs ?
- Is there somewhere in the peer manager configuration the possibility to refuse pairing if Central security parameters does not meets mine, or shall I code it in my peer manager event handler ? On which event ?
- Reading the doc, I found some mention of functions pm_handler_disconnect_on_insufficient_sec and so on, that seems to do what I want, could you provide me with an example ?
- Is it possible that I short-circuit the peer manager, if by any chance I have another observer at lower level ? (The one I'm thinking about only log, but maybe another module could do something ?)
All the best,