#NEWLINE# def get_payload( self ) : #NEWLINE# #INDENT# self . payload_fields . append ( ( 'Signal (mW)' , self . signal ) ) #NEWLINE# self . payload_fields . append ( ( 'TX (bytes since on)' , self . tx ) ) #NEWLINE# self . payload_fields . append ( ( 'RX (bytes since on)' , self . rx ) ) #NEWLINE# self . payload_fields . append ( ( 'Reserved' , self . reserved1 ) ) #NEWLINE# signal = little_endian ( bitstring . pack ( '32' , self . signal ) ) #NEWLINE# tx = little_endian ( bitstring . pack ( '32' , self . tx ) ) #NEWLINE# rx = little_endian ( bitstring . pack ( '32' , self . rx ) ) #NEWLINE# reserved1 = little_endian ( bitstring . pack ( '16' , self . reserved1 ) ) #NEWLINE# payload = ( ( ( signal + tx ) + rx ) + reserved1 ) #NEWLINE# return payload