| | |
| | | /** |
| | | * @param framePayload 多个路灯定时指令, |
| | | */ |
| | | public A5LightTimerReqInnerFrame(String framePayload) { |
| | | String destinationAddress = "FFFF"; |
| | | public A5LightTimerReqInnerFrame(String framePayload, String lightAddress) { |
| | | String destinationAddress; |
| | | if (lightAddress == null || (!lightAddress.equals("0001") && !lightAddress.equals("0002"))) { |
| | | destinationAddress = "FFFF"; |
| | | } else { |
| | | destinationAddress = lightAddress; |
| | | } |
| | | payload = destinationAddress + framePayload; |
| | | this.payloadLength = SupplementUtils.suppleZero(Integer.toHexString((payload.length() / 2)).toUpperCase(), 4); |
| | | } |