Fix up project
it works! :D
This commit is contained in:
parent
61bbae7d16
commit
856f2d27bb
4 changed files with 6 additions and 6 deletions
|
@ -12,4 +12,6 @@
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps = knolleary/PubSubClient@^2.8
|
lib_deps =
|
||||||
|
knolleary/PubSubClient@^2.8
|
||||||
|
adafruit/Adafruit BME280 Library@^2.2.2
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
#include <WiFiClientSecure.h>
|
#include <WiFiClientSecure.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./lib/pubsubclient/PubSubClient.h"
|
#include <PubSubClient.h>
|
||||||
#include "./lib/pubsubclient/PubSubClient.cpp"
|
|
||||||
|
|
||||||
// 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)
|
// 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>
|
#include <Adafruit_Sensor.h>
|
||||||
|
@ -83,10 +82,11 @@ void connect_wifi() {
|
||||||
const char* pass = WIFI_ENTERPRISE_PASSWORD;
|
const char* pass = WIFI_ENTERPRISE_PASSWORD;
|
||||||
|
|
||||||
// 'esp_wifi_sta_wpa2_ent_set_identity' was not declared in this scope :-(
|
// '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_identity((uint8_t *)user, strlen(user));
|
||||||
esp_wifi_sta_wpa2_ent_set_username((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_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_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
|
||||||
// esp_wifi_sta_wpa2_ent_enable(&config);
|
// esp_wifi_sta_wpa2_ent_enable(&config);
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../../lib/pubsubclient/src/PubSubClient.cpp
|
|
|
@ -1 +0,0 @@
|
||||||
../../../lib/pubsubclient/src/PubSubClient.h
|
|
Loading…
Reference in a new issue