forked from Krautspace/doorstatus
Merge pull request 'Pin D1 war defekt, daher haben wir dauf D4 geändert. Dieser ist geleichzeitig die 2. Status LED auf dem Lua Bord und zeigt den Status geschlossen an.' (#7) from Hilde/doorstatus:master into master
Reviewed-on: Krautspace/doorstatus#7
This commit is contained in:
commit
cccd0df1ac
3 changed files with 10 additions and 13 deletions
|
@ -7,8 +7,7 @@
|
||||||
* Replace the comments in certificate sections with our own certificates.
|
* Replace the comments in certificate sections with our own certificates.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
constexpr static inline char const CA_CERTS[] PROGMEM = R"EOF(
|
||||||
const char SERVER_CERT[] PROGMEM = R"EOF(
|
|
||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN CERTIFICATE-----
|
||||||
/*
|
/*
|
||||||
* lace for the public server certificate to authenticate the doorstatus
|
* lace for the public server certificate to authenticate the doorstatus
|
||||||
|
@ -17,7 +16,7 @@ const char SERVER_CERT[] PROGMEM = R"EOF(
|
||||||
-----END CERTIFICATE-----
|
-----END CERTIFICATE-----
|
||||||
)EOF";
|
)EOF";
|
||||||
|
|
||||||
const char CLIENT_CERT[] PROGMEM = R"EOF(
|
constexpr static inline char const CLIENT_CERT[] PROGMEM = R"EOF(
|
||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN CERTIFICATE-----
|
||||||
/*
|
/*
|
||||||
* Place for the clients (this program) public certificate to authenticate
|
* Place for the clients (this program) public certificate to authenticate
|
||||||
|
@ -26,11 +25,11 @@ const char CLIENT_CERT[] PROGMEM = R"EOF(
|
||||||
-----END CERTIFICATE-----
|
-----END CERTIFICATE-----
|
||||||
)EOF";
|
)EOF";
|
||||||
|
|
||||||
const char CLIENT_KEY[] PROGMEM = R"EOF(
|
constexpr static inline char const CLIENT_KEY[] PROGMEM = R"EOF(
|
||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
/*
|
/*
|
||||||
* Place for the clients private key file.
|
* Place for the clients private key file.
|
||||||
*/
|
*/
|
||||||
-----END CERTIFICATE-----
|
-----END RSA PRIVATE KEY-----
|
||||||
)EOF";
|
)EOF";
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,5 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* wifi credentials */
|
/* wifi credentials */
|
||||||
#define SSID_1 "your_first__wlan_ssid"
|
constexpr static inline char const SSID[] = "your_first__wlan_ssid"
|
||||||
#define PSK_1 "your_first_wlan_passwort"
|
constexpr static inline char const PSK[] = "your_first_wlan_passwort"
|
||||||
#define SSID_2 "your_second_wlan_ssid"
|
|
||||||
#define PSK_2 "your_seconde_wlan_password"
|
|
||||||
#define SSID_3 "your_third_wlan_ssid"
|
|
||||||
#define PSK_3 "your_third_wlan_password"
|
|
||||||
|
|
|
@ -23,7 +23,9 @@ namespace cpp23 {
|
||||||
// defining some constants
|
// defining some constants
|
||||||
enum : uint8_t {
|
enum : uint8_t {
|
||||||
LED_PIN = 16, // D0
|
LED_PIN = 16, // D0
|
||||||
REED_PIN = 5 // D1
|
//REED_PIN = 5 // D1
|
||||||
|
REED_PIN = 2 // D4
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class door_state {
|
enum class door_state {
|
||||||
|
|
Loading…
Reference in a new issue