hpimdm/packet/PacketHPIMHeader.py
def bytes(self) -> bytes:
        """
        Obtain Protocol Packet in a format to be transmitted (JSON)
        This method will return the Header and Payload in JSON format
        """
        # obter mensagem e criar checksum
        data = {"TYPE": self.get_pim_type(),
                "BOOT_TIME": self.boot_time,
                "DATA": self.payload.bytes()}
        msg = json.dumps(data).encode()
        return msg

        Obtain Protocol Packet in a format to be transmitted (JSON)
        This method will return the Header and Payload in JSON format
        
Obtain Protocol Packet in a format to be transmitted (JSON)
This method will return the Header and Payload in JSON format
Obtain Protocol Packet in a format to be transmitted ( JSON ) This method will return the Header and Payload in JSON format
def bytes(self) -> bytes:
        data = {"TYPE": self.get_pim_type(),
                "BOOT_TIME": self.boot_time,
                "DATA": self.payload.bytes()}
        msg = json.dumps(data).encode()
        return msg
def bytes ( self ) -> bytes : data = { "TYPE" : self . get_pim_type ( ) , "BOOT_TIME" : self . boot_time , "DATA" : self . payload . bytes ( ) } msg = json . dumps ( data ) . encode ( ) return msg
Obtain Protocol Packet in a format to be transmitted (JSON)
This method will return the Header and Payload in JSON format
Obtain Protocol Packet in a format to be transmitted ( JSON ) This method will return the Header and Payload in JSON format
"""
        Obtain Protocol Packet in a format to be transmitted (JSON)
        This method will return the Header and Payload in JSON format
        """ # obter mensagem e criar checksum
self