The connection state module keeps track of certain states of all active BLE connections. For example, it stores whether a connection is encrypted and which device has the central or peripheral role. In addition, the module can be used to track user-defined states.
To keep the predefined states updated, the module uses BLE events. User-defined states must be updated by the application. This module uses the Mapped flags module.