本文整理汇总了Java中com.rapplogic.xbee.util.ByteUtils.toBase16方法的典型用法代码示例。如果您正苦于以下问题:Java ByteUtils.toBase16方法的具体用法?Java ByteUtils.toBase16怎么用?Java ByteUtils.toBase16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rapplogic.xbee.util.ByteUtils
的用法示例。
在下文中一共展示了ByteUtils.toBase16方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() +
",sourceEndpoint=" + ByteUtils.toBase16(this.getSourceEndpoint()) +
",destinationEndpoint=" + ByteUtils.toBase16(this.getDestinationEndpoint()) +
",clusterId(msb)=" + ByteUtils.toBase16(this.getClusterId().getMsb()) +
",clusterId(lsb)=" + ByteUtils.toBase16(this.getClusterId().getLsb()) +
",profileId(msb)=" + ByteUtils.toBase16(this.getProfileId().getMsb()) +
",profileId(lsb)=" + ByteUtils.toBase16(this.getProfileId().getLsb());
}
示例2: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return "nodeAddress16=" + this.nodeAddress16 +
", nodeAddress64=" + this.nodeAddress64 +
", nodeIdentifier=" + this.nodeIdentifier +
", parentAddress=" + this.getParent() +
", deviceType=" + this.deviceType +
", status=" + this.status +
", profileId=" + ByteUtils.toBase16(this.profileId) +
", mfgId=" + ByteUtils.toBase16(this.mfgId);
}
示例3: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() +
",destAddr64=" + this.destAddr64 +
",destAddr16=" + this.destAddr16 +
",broadcastRadius=" + this.broadcastRadius +
",option=" + this.option +
",payload=" + ByteUtils.toBase16(this.payload);
}
示例4: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
// 8/19/09 fixed null pointer on length.get16BitValue
return "apiId=" + this.apiId +
",length=" + (length == null ? "null" : length.get16BitValue()) +
",checksum=" + ByteUtils.toBase16(checksum) +
",error=" + this.error;
}
示例5: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return "command=" + this.getCommand() +
",status=" + this.getStatus() + ",value=" +
(this.value == null ? "null" : ByteUtils.toBase16(this.getValue())) +
"," +
super.toString();
}
示例6: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() +
",data=" + ByteUtils.toBase16(this.data);
}
示例7: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() + ",frameId=" + ByteUtils.toBase16(this.frameId);
}
示例8: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() +
",data=" + ByteUtils.toBase16(this.data);
}
示例9: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() + ",option=" + this.option +
",payload=" + ByteUtils.toBase16(this.payload);
}
示例10: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return ByteUtils.toBase16(this.packet);
}
示例11: unEscapePacket
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
/**
*
* @param packet
* @return
* @throws IncompletePacketException
*/
public static int[] unEscapePacket(int[] packet) {
int escapeBytes = 0;
if (packetEndsWithEscapeByte(packet)) {
//packet can never end on a escape byte since the following byte is xor to unescape and will result in a array out of bounds exception
throw new RuntimeException("Invalid packet -- packet cannot end with an escape byte " + ByteUtils.toBase16(packet));
}
// first check if escape byte exists, if not we don't allocate a new array
for (int b : packet) {
if (b == SpecialByte.ESCAPE.getValue()) {
escapeBytes++;
}
}
if (escapeBytes == 0) {
return packet;
}
int[] unEscapedPacket = new int[packet.length - escapeBytes];
int pos = 0;
for (int i = 0; i < packet.length; i++) {
if (packet[i] == SpecialByte.ESCAPE.getValue()) {
// discard escape byte and un-escape following byte
if (i >= packet.length - 1) {
return packet;
}
unEscapedPacket[pos] = 0x20 ^ packet[++i];
} else {
unEscapedPacket[pos] = packet[i];
}
pos++;
}
return unEscapedPacket;
}
示例12: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return ByteUtils.toBase16(this.getAddress());
}
示例13: toString
import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
return super.toString() +
",command=" + this.command +
",value=" + (value == null ? "null" : ByteUtils.toBase16(value));
}