Remove dummy secrets + create config header file
This commit is contained in:
parent
9082ffa56c
commit
f979f8e3df
|
|
@ -5,6 +5,7 @@
|
|||
#include "wifi_save.h"
|
||||
#include <HTTPClient.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <config_secrets.h>
|
||||
|
||||
|
||||
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/U8X8_PIN_NONE); // if you use Hardware I2C port, full framebuffer, size = 1024 bytes
|
||||
|
|
@ -13,15 +14,6 @@ QMC5883LCompass compass;
|
|||
#define RXD2 16
|
||||
#define TXD2 17
|
||||
|
||||
// ID 1 = Julia; ID 2 = Tim
|
||||
#define OWN_ID 2
|
||||
#define REQ_ID 1
|
||||
|
||||
#define BEARING_CORRECTION 3
|
||||
|
||||
#define LED_PIN 5
|
||||
|
||||
|
||||
#define GPS_BAUD 9600
|
||||
|
||||
String webserviceAddress = "https://festival-finder.noe-danke.de/updateGPS";
|
||||
|
|
|
|||
14
20250815_basic_finder.ino/config_secrets.h
Normal file
14
20250815_basic_finder.ino/config_secrets.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#define BEARING_CORRECTION
|
||||
#define LED_PIN
|
||||
|
||||
#define OWN_ID
|
||||
#define REQ_ID
|
||||
|
||||
|
||||
#define SERVER_PASSKEY
|
||||
|
||||
#define WIFI_SET_PIN
|
||||
|
||||
|
||||
|
|
@ -26,16 +26,16 @@ while 重启五秒内 && 重置按键被按下 :
|
|||
#include "esp_system.h"
|
||||
#include "nvs_flash.h"
|
||||
#include "nvs.h"
|
||||
#include "config_secrets.h"
|
||||
|
||||
|
||||
#include <WiFi.h>
|
||||
#include <WiFiClient.h>
|
||||
#include <WiFiAP.h>
|
||||
#include <config_secrets.h>
|
||||
|
||||
#define SSID_LENGTH 40
|
||||
|
||||
#define WIFI_SET_PIN 18
|
||||
|
||||
int record_rst_time();
|
||||
void nvs_test();
|
||||
void record_wifi(char *ssid, char *password);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user