def __decode_message(data_str):
        """
        Unpacks data packet into proper data values
        :param data_str: 26 byte string of packet data
        :return: tuple packed with valid data in string
        """
        structs = {0x90: b"< 3B 2H 2B H 14x B",
                   0x91: b"< 3B 22x B",
                   0x92: b"< 3B B 21x B",
                   0x93: b"< 3B 2B 10H B",
                   0x94: b"< 3B 10H B x B",
                   0x95: b"< 3B 22x B",
                   0x96: b"< 3B 22x B"}
        cmd_code = byte2int(data_str[2])
        return struct.unpack(structs[cmd_code], data_str)
def __decode_message ( data_str ) : structs = { 0x90 : b"< 3B 2H 2B H 14x B" , 0x91 : b"< 3B 22x B" , 0x92 : b"< 3B B 21x B" , 0x93 : b"< 3B 2B 10H B" , 0x94 : b"< 3B 10H B x B" , 0x95 : b"< 3B 22x B" , 0x96 : b"< 3B 22x B" } cmd_code = byte2int ( data_str [ 2 ] ) return struct . unpack ( structs [ cmd_code ] , data_str )
Unpacks data packet into proper data values
        :param data_str: 26 byte string of packet data
        :return: tuple packed with valid data in string