@NonNull
	public static String stateToString(@ConnectionState final int state) {
		return switch (state) {
			case BluetoothProfile.STATE_CONNECTED -> "CONNECTED";
			case BluetoothProfile.STATE_CONNECTING -> "CONNECTING";
			case BluetoothProfile.STATE_DISCONNECTING -> "DISCONNECTING";
			case BluetoothProfile.STATE_DISCONNECTED -> "DISCONNECTED";
			default -> "UNKNOWN (" + state + ")";
		};
	}
Converts the connection state to String value.

@param state the connection state
@return state as String
ble/src/main/java/no/nordicsemi/android/ble/utils/ParserUtils.java