ELEC-C7222
Libraries for ELEC C7222 Course Work
Loading...
Searching...
No Matches
security_event_handler.hpp File Reference

Minimal Security Manager event handler for BLE examples. More...

#include <cstdint>
#include <cstdio>
#include "security_manager.hpp"
Include dependency graph for security_event_handler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SecurityEventHandler
 Minimal security event handler for BLE examples. More...
 

Detailed Description

Minimal Security Manager event handler for BLE examples.

This header declares a small helper class that implements c7222::SecurityManager::EventHandler and prints Security Manager events to the console. It is used in BLE examples to observe pairing, passkey, and authorization flows with minimal policy decisions.

The class holds an optional SecurityManager pointer so it can confirm pairing operations and apply simple authorization decisions in response to events. Without this pointer, the handler can still log events but cannot drive the pairing flow forward.