Fix up project

it works! :D
This commit is contained in:
Starbeamrainbowlabs 2022-06-30 16:01:26 +01:00
parent 61bbae7d16
commit 856f2d27bb
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
4 changed files with 6 additions and 6 deletions

View File

@ -12,4 +12,6 @@
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = knolleary/PubSubClient@^2.8
lib_deps =
knolleary/PubSubClient@^2.8
adafruit/Adafruit BME280 Library@^2.2.2

View File

@ -20,8 +20,7 @@
#include <WiFiClientSecure.h>
#endif
#include "./lib/pubsubclient/PubSubClient.h"
#include "./lib/pubsubclient/PubSubClient.cpp"
#include <PubSubClient.h>
// These libraries need installing in the Arduino IDE Library Manager (if you install the BME280 one it should prompt for the unified sensor library automatically)
#include <Adafruit_Sensor.h>
@ -83,10 +82,11 @@ void connect_wifi() {
const char* pass = WIFI_ENTERPRISE_PASSWORD;
// 'esp_wifi_sta_wpa2_ent_set_identity' was not declared in this scope :-(
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)user, strlen(user));
esp_wifi_sta_wpa2_ent_set_username((uint8_t *)user, strlen(user));
esp_wifi_sta_wpa2_ent_set_password((uint8_t *)pass, strlen(pass));
esp_wifi_sta_wpa2_ent_enable();
esp_wifi_sta_wpa2_ent_enable(&config);
// esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
// esp_wifi_sta_wpa2_ent_enable(&config);

View File

@ -1 +0,0 @@
../../../lib/pubsubclient/src/PubSubClient.cpp

View File

@ -1 +0,0 @@
../../../lib/pubsubclient/src/PubSubClient.h