Wifi Lora 32 v 2 BLE security

I establish a BLE communication between 2 wifi lora 32(v2) modules now i’m trying to make it as secure as possible already try this code:

but it doesent work, can you help me !