Cannot Receive information from LORA_v3

Hello I have just tried to communicate to a import paho.mqtt.client as mqtt
import time
import sys
import importlib,sys
importlib.reload(sys)
stdi, stdo, stde = sys.stdin, sys.stdout, sys.stderr
sys.stdin, sys.stdout, sys.stderr = stdi, stdo, stde

def client_loop():
client_id = time.strftime(’%Y%m%d%H%M%S’,time.localtime(time.time()))
client = mqtt.Client(client_id)
client.username_pw_set(“xxxxxxxxx”, “xxxxxxxxx”)
client.on_connect = on_connect
client.on_message = on_message
client.connect(HOST, PORT, 60)
client.loop_forever()

def on_connect(client, userdata, flags, rc):
print("Connected with result code "+str(rc))

def on_message(client, userdata, msg):
print(msg.topic+": "+msg.payload.decode(“utf-8”))
print(time.strftime(’%Y%m%d%H%M%S’,time.localtime(time.time())))

if name == ‘main’:
HOST = “localhost”
PORT = 1883
client_loop()

I have checked that the following settings are right: client.username_pw_set(“xxxxxxxxx”, “xxxxxxxxx”) and HOST but I have no response in on_message.

That is wotking in LORAv2 but no working in LORA_v3 . Any idea on how to solve it ??
Thanks
Gorka sensor with no success. I have just followed the steps in this script :

import paho.mqtt.client as mqtt
import time
import sys
import importlib,sys
importlib.reload(sys)
stdi, stdo, stde = sys.stdin, sys.stdout, sys.stderr
sys.stdin, sys.stdout, sys.stderr = stdi, stdo, stde

def client_loop():
client_id = time.strftime(’%Y%m%d%H%M%S’,time.localtime(time.time()))
client = mqtt.Client(client_id)
client.username_pw_set(“xxxxxxxxx”, “xxxxxxxxx”)
client.on_connect = on_connect
client.on_message = on_message
client.connect(HOST, PORT, 60)
client.loop_forever()

def on_connect(client, userdata, flags, rc):
print("Connected with result code "+str(rc))

def on_message(client, userdata, msg):
print(msg.topic+": "+msg.payload.decode(“utf-8”))
print(time.strftime(’%Y%m%d%H%M%S’,time.localtime(time.time())))

if name == ‘main’:
HOST = “localhost”
PORT = 1883
client_loop()

I have checked that the following settings are right: client.username_pw_set(“xxxxxxxxx”, “xxxxxxxxx”) and HOST but I have no response in on_message.

That is wotking in LORAv2 but no working in LORA_v3 . Any idea on how to solve it ??
Thanks
Gorka