   }
 
   Serial.print("\nconnecting...");
-  while (!client.connect("arduino", "admin", "admin")) // order: clientid,username,password; change as necessary
-{
+  while (!client.connect("arduino", "try", "try")) {
     Serial.print(".");
   }
 
   Serial.println("\nconnected!");
 
-  client.subscribe("/example/+/+");
+  client.subscribe("/example");
   // client.unsubscribe("/example");
 }
 

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


#include <MQTTClient.h>

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

WiFiClientSecure net;
MQTTClient client;
