   if(millis() - lastMillis > 1000) {
     lastMillis = millis();
     client.publish("/hello", "world");
-    Serial.println("tets");
   }
 }
 

  }

  Serial.print("\nconnecting...");
  while (!client.connect("arduino", "admin", "admin")) // order: clientid,username,password; change as necessary
{
    Serial.print(".");
  }

  Serial.println("\nconnected!");

  client.subscribe("/example/+/+");
  // client.unsubscribe("/example");
}


#include <MQTTClient.h>

const char *ssid = "ssid";
const char *pass = "pass";

WiFiClientSecure net;
MQTTClient client;
