void HandleBleDevicesListButtonConnectEvent(int buttonIndex) { Debug.Log("AppControllerBehavior: HandleBleDevicesListButtonConnectEvent: Calling connect peripheral at index: " + buttonIndex); bool success = BLEController.ConnectPeripheralAtIndex(buttonIndex); if (!success) { HandleOnBleDidConnectEvent("Error invoking ConnectPeripheralAtIndex " + buttonIndex); } }
void HandleBleDevicesListButtonConnectEvent(int buttonIndex) { Debug.Log("AppControllerBehavior: HandleBleDevicesListButtonConnectEvent: Calling connect peripheral at index"); bool result = BLEController.ConnectPeripheralAtIndex(buttonIndex); if (result) { Debug.Log("AppControllerBehavior: HandleBleDevicesListButtonConnectEvent: Call is success"); } else { Debug.Log("AppControllerBehavior: HandleBleDevicesListButtonConnectEvent: Call did fail"); } }