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,25 @@
package com.eveningoutpost.dexdrip.G5Model;
import com.eveningoutpost.dexdrip.G5Model.TransmitterMessage;
import com.eveningoutpost.dexdrip.Models.JoH;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* Created by joeginley on 3/16/16.
*/
public class AuthChallengeTxMessage extends TransmitterMessage {
byte opcode = 0x04;
byte[] challengeHash;
public AuthChallengeTxMessage(byte[] challenge) {
challengeHash = challenge;
data = ByteBuffer.allocate(9);
data.put(opcode);
data.put(challengeHash);
byteSequence = data.array();
UserError.Log.d(TAG,"AuthChallengeTX: "+ JoH.bytesToHex(byteSequence));
}
}