def createDisconnectPacket(self, **kwargs): return utils.CoAPacket2(code=packet.DisconnectRequest, dict=self.dict, secret=self.secret, **kwargs)
def createPacket(self, **kwargs): return utils.CoAPacket2(dict=self.dict, secret=self.secret, **kwargs)