Describe how you would establish secure communication between an iOS app and external hardware over Bluetooth Low Energy (BLE) or Wi-Fi.