public void start() throws BITalinoException {
        int bit = 1;
        for (int channel : analogChannels)
            bit = bit | 1 << (2 + channel);
        try {
            socket.write(bit);
        } catch (Exception e) {
            throw new BITalinoException(BITalinoErrorTypes.BT_DEVICE_NOT_CONNECTED);
        }

    }