Can't connect esp32 to MQTT server in micropython

Ok, so i’m pulling my hair out. I’m doing something wrong here. I get error -201
here is my code.

from umqtt.robust import MQTTClient
from machine import Pin
import sys

CLIENT_NAME = ‘blue’
BROKER_ADDR = ‘192.168.1.248’
user=‘homeassistant’
mqttc = MQTTClient(CLIENT_NAME,BROKER_ADDR,user,keepalive=120)
try:
mqttc.connect()
except Exception as e:
print(‘no good {}{}’.format(type(e).name,e))
sys.exit()

SOLVED:

    So, the answer I found is that you need to create a user account and use that in the 

MQTTClient statement.

Thanks to youtuber David McKone