#NEWLINE# def decode( self , encoded , offset = 0 ) : #NEWLINE# #INDENT# self . channel_max = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# self . frame_max = struct . unpack_from ( '>I' , encoded , offset ) [ 0 ] #NEWLINE# offset += 4 #NEWLINE# self . heartbeat = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# return self