Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def send_auth_package(self, client_id, username, password, clean_session, keepalive,
will_message=None, **kwargs):
pkg = package.LoginPackageFactor.build_package(client_id, username, password, clean_session,
keepalive, self, will_message=will_message, **kwargs)
self.write_data(pkg)
def send_command_with_mid(self, cmd, mid, dup, reason_code=0):
pkg = package.CommandWithMidPacket.build_package(cmd, mid, dup, reason_code=reason_code,
proto_ver=self.proto_ver)
self.write_data(pkg)