python Mqtt subscribe how to delete first session/message
问题 I created a Mqtt subscribe with python that has HA as broker … when I make the first connection I start a series of messages of all the mqtt buttons that I connected even if I am not activating them because my subscription is "house/click/ # ". Once the list is done … if you press a button I start getting the messages I need … is there a way to delete this first list that it gives me. this is the code I use: import paho.mqtt.client as paho import pandas as pd import pyautogui import os import