Initial project commit

This commit is contained in:
2020-07-18 21:44:27 -04:00
parent 8a1141b373
commit fea891a268
127 changed files with 20838 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package com.eveningoutpost.dexdrip.G5Model;
import com.eveningoutpost.dexdrip.Models.JoH;
import com.eveningoutpost.dexdrip.Models.UserError;
import com.eveningoutpost.dexdrip.Services.G5CollectionService;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* Created by joeginley on 3/16/16.
*/
public class KeepAliveTxMessage extends BaseMessage {
public static final int opcode = 0x06;
private int time;
private final static String TAG = G5CollectionService.TAG; // meh
public KeepAliveTxMessage(int time) {
this.time = time;
data = ByteBuffer.allocate(2);
data.put(new byte[]{(byte) opcode, (byte) this.time});
byteSequence = data.order(ByteOrder.LITTLE_ENDIAN).array();
UserError.Log.d(TAG, "New KeepAliveRequestTxMessage: " + JoH.bytesToHex(byteSequence));
}
}