| | |
| | | public static final int TYPE_STATE_OPEN = 1; |
| | | public static final int TYPE_STATE_CLOSE = 2; |
| | | |
| | | // //这个方法只处理了窗帘号小于17的情况 |
| | | public static byte[] getCurtainAddByte(int curtainNum, int state){ |
| | | public static byte[] getCurtainAddByte(int curtainNum, int state, int type){ |
| | | byte[] addBytes; |
| | | int newState = state; |
| | | switch (state){ |
| | |
| | | default: |
| | | break; |
| | | } |
| | | addBytes = new byte[]{(byte) curtainNum, (byte) newState}; |
| | | addBytes = new byte[]{(byte) curtainNum, (byte) newState, (byte) type}; |
| | | return addBytes; |
| | | } |
| | | |
| | | // //这个方法只处理了窗帘号小于17的情况 |
| | | // public static byte[] getCurtainAddByte(int curtainNum, int state){ |
| | | // return new byte[]{(byte) curtainNum, (byte) state}; |
| | | // } |
| | | |
| | | } |