|
@@ -4,7 +4,6 @@
|
|
#include <ESP8266WiFi.h>
|
|
#include <ESP8266WiFi.h>
|
|
#include <ESP8266WiFiMulti.h>
|
|
#include <ESP8266WiFiMulti.h>
|
|
#include <WiFiClient.h>
|
|
#include <WiFiClient.h>
|
|
-#include <Array.h>
|
|
|
|
|
|
|
|
#define LED_PIN 0
|
|
#define LED_PIN 0
|
|
|
|
|
|
@@ -18,6 +17,8 @@
|
|
#define STAPSK "Laserjet09"
|
|
#define STAPSK "Laserjet09"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#define APIKEY "e471293b25fdb6697c0a862f2695df5f"
|
|
|
|
+
|
|
const char* ssid = STASSID;
|
|
const char* ssid = STASSID;
|
|
const char* password = STAPSK;
|
|
const char* password = STAPSK;
|
|
|
|
|
|
@@ -551,8 +552,7 @@ void setup() {
|
|
// weather api
|
|
// weather api
|
|
const float lat = 48.9517;
|
|
const float lat = 48.9517;
|
|
const float lon = 10.1703;
|
|
const float lon = 10.1703;
|
|
- const String apiKey = "e471293b25fdb6697c0a862f2695df5f";
|
|
|
|
- apiUrl = buildAPIUrl(lat, lon, apiKey);
|
|
|
|
|
|
+ apiUrl = buildAPIUrl(lat, lon, APIKEY);
|
|
connectWiFi();
|
|
connectWiFi();
|
|
|
|
|
|
if (WiFi.status() != WL_CONNECTED) {
|
|
if (WiFi.status() != WL_CONNECTED) {
|