-
Notifications
You must be signed in to change notification settings - Fork 11
/
secrets.h
35 lines (29 loc) · 1.04 KB
/
secrets.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Copy this file to main/secrets.h and replace default values with the ones specific to your device and home environment.
//
#include <string>
//
// WIFI SSID and passwords for over-the-air updates
//
struct {
const char* ssid;
const char* passwd;
} wifiCredentials = {"ssid", "passwd"};
//
// OTA https server IP address and SSL certificate
//
struct {
const char* addr;
uint16_t port;
const char* cert;
} httpsCredentials = {"192.168.0.1",
8037, // If you change this, you need to change it in webserver.py too
//
// Certificate from server_certs/ca_cert.pem
// Note: the escaped newlines are important
//
"-----BEGIN CERTIFICATE-----\n"
"MIIDVDCCAjwCCQCT92eT62y+zjANBgkqhkiG9w0BAQsFADBsMQswCQYDVQQGEwJV\n"
...
"OOk+Z5w+ebPCNIHFt0oG6PxYdy3W8nDSeSnbTjPHP9qgDQ6OPKk2oQ==\n"
"-----END CERTIFICATE-----\n"};