def __init__(self, ret_code, session_present=0):
    BaseEvent.__init__(self, NC.CMD_CONNACK)
    self.ret_code = ret_code
    self.session_present = session_present
def __init__(self, ret_code, session_present=0):
    BaseEvent.__init__(self, NC.CMD_CONNACK)
    self.ret_code = ret_code
    self.session_present = session_present