disable ssl and auth
This commit is contained in:
@ -26,7 +26,7 @@ void callback(char* topic, byte* payload, unsigned int length);
|
||||
|
||||
|
||||
|
||||
WiFiClientSecure espClient;
|
||||
WiFiClient espClient;
|
||||
PubSubClient client(espClient);
|
||||
|
||||
void setup_wifi() {
|
||||
@ -124,7 +124,7 @@ void reconnect() {
|
||||
// Attempt to connect
|
||||
//char clientId[128];
|
||||
//snprintf(clientId, 127, "esp%s", WiFi.macAddress().c_str());
|
||||
if (client.connect(configBlock.mqttClientId, configBlock.mqttUser, configBlock.mqttPass)) {
|
||||
if (client.connect(configBlock.mqttClientId)) {
|
||||
#ifdef DEBUG
|
||||
Serial.println("connected");
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user