question: 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 ; }
target:  Create a well-formed LocoNet packet from a String