@@ -0,0 +1,1946 @@
+/*******************************************************************************%0D%0A * MIT License%0D%0A *%0D%0A * Copyright (c) 2017 Anthony Law%0D%0A *%0D%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0D%0A * of this software and associated documentation files (the %22Software%22), to deal%0D%0A * in the Software without restriction, including without limitation the rights%0D%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0D%0A * copies of the Software, and to permit persons to whom the Software is%0D%0A * furnished to do so, subject to the following conditions:%0D%0A *%0D%0A * The above copyright notice and this permission notice shall be included in all%0D%0A * copies or substantial portions of the Software.%0D%0A *%0D%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0D%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0D%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0D%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0D%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0D%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0D%0A * SOFTWARE.%0D%0A *******************************************************************************/%0D%0Apackage com.github.mob41.blapi.pkt.cmd.rm2;%0D%0A%0D%0Aimport com.github.mob41.blapi.pkt.CmdPayload;%0D%0Aimport com.github.mob41.blapi.pkt.Payload;%0D%0A%0D%0Apublic final class CheckDataCmdPayload implements CmdPayload %7B%0D%0A%09%0D%0A%09private final Payload payload;%0D%0A%09%0D%0A%09private final byte%5B%5D payloadBytes;%0D%0A%09%0D%0A%09public CheckDataCmdPayload()%7B%0D%0A%09%09payloadBytes = new byte%5B16%5D;%0D%0A%09%09payloadBytes%5B0%5D = 4;%0D%0A%09%09%0D%0A%09%09payload = new Payload()%7B%0D%0A%0D%0A%09%09%09@Override%0D%0A%09%09%09public byte%5B%5D getData() %7B%0D%0A%09%09%09%09return payloadBytes;%0D%0A%09%09%09%7D%0D%0A%09%09%09%0D%0A%09%09%7D;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public byte getCommand() %7B%0D%0A%09%09return 0x6a;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public Payload getPayload() %7B%0D%0A%09%09return payload;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Add CheckDataCmdPayload.java