@@ -0,0 +1,1544 @@
+package com.uxxu.konashi.lib.action;%0A%0Aimport android.bluetooth.BluetoothGattCharacteristic;%0Aimport android.bluetooth.BluetoothGattService;%0Aimport android.util.SparseArray;%0A%0Aimport com.uxxu.konashi.lib.Konashi;%0Aimport com.uxxu.konashi.lib.KonashiUUID;%0A%0Aimport java.util.UUID;%0A%0Aimport info.izumin.android.bletia.BleErrorType;%0Aimport info.izumin.android.bletia.BletiaException;%0Aimport info.izumin.android.bletia.action.ReadCharacteristicAction;%0Aimport info.izumin.android.bletia.wrapper.BluetoothGattWrapper;%0A%0A/**%0A * Created by izumin on 9/19/15.%0A */%0Apublic class AioAnalogReadAction extends ReadCharacteristicAction %7B%0A%0A    private static final SparseArray%3CUUID%3E sPin2Uuid = new SparseArray%3CUUID%3E() %7B%7B%0A        append(Konashi.AIO0, KonashiUUID.ANALOG_READ0_UUID);%0A        append(Konashi.AIO1, KonashiUUID.ANALOG_READ1_UUID);%0A        append(Konashi.AIO2, KonashiUUID.ANALOG_READ2_UUID);%0A    %7D%7D;%0A%0A    protected AioAnalogReadAction(BluetoothGattCharacteristic characteristic) %7B%0A        super(characteristic);%0A    %7D%0A%0A    public AioAnalogReadAction(BluetoothGattService service, int pin) %7B%0A        this(service.getCharacteristic(sPin2Uuid.get(pin, null)));%0A    %7D%0A%0A    @Override%0A    public void execute(BluetoothGattWrapper gattWrapper) %7B%0A        if (getCharacteristic() == null) %7B%0A            rejectIfParamsAreInvalid();%0A        %7D else %7B%0A            super.execute(gattWrapper);%0A        %7D%0A    %7D%0A%0A    private void rejectIfParamsAreInvalid() %7B%0A        getDeferred().reject(new BletiaException(BleErrorType.INVALID_PARAMETER, getCharacteristic()));%0A    %7D%0A%7D%0A

Add AioAnalogReadAction