LocoNetMessage createPacket(String s){
  byte b[]=StringUtil.bytesFromHexString(s);
  if (b.length == 0) {
    return null;
  }
  LocoNetMessage m=new LocoNetMessage(b.length);
  for (int i=0; i < b.length; i++) {
    m.setElement(i,b[i]);
  }
  return m;
}

LocoNetMessage createPacket ( String s ) { byte b [ ] = StringUtil . bytesFromHexString ( s ) ; if ( b . length == 0 ) { return null ; } LocoNetMessage m = new LocoNetMessage ( b . length ) ; for ( int i = 0 ; i < b . length ; i ++ ) { m . setElement ( i , b [ i ] ) ; } return m ; }
create a well - formed loconet packet from a string
