def on_connect(self, client, userdata, flags, rc):
    time.sleep(1)
    self.print_status((('Connected to mqtt server with result code ' + str(rc)) + ' on '))
    print('')
    self.client.subscribe('AirconControl')
def on_connect(self, client, userdata, flags, rc):
    time.sleep(1)
    self.print_status((('Connected to mqtt server with result code ' + str(rc)) + ' on '))
    print()
    self.client.subscribe('AirconControl')