mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
Merge branch 'main' of https://github.com/alexandrebobkov/ESP-Nodes
This commit is contained in:
commit
032fe4f6ac
@ -1,91 +1 @@
|
||||
#include <pgmspace.h>
|
||||
|
||||
#define SECRET
|
||||
#define THINGNAME "pico_w" //change this
|
||||
|
||||
//const char WIFI_SSID[] = "IoT_bots"; //change this
|
||||
const char* WIFI_SSID = "IoT_bots";
|
||||
//const char WIFI_PASSWORD[] = "208208208"; //change this
|
||||
const char* WIFI_PASSWORD = "208208208";
|
||||
const char AWS_IOT_ENDPOINT[] = "a2a8jqp5bbl7pc-ats.iot.us-east-1.amazonaws.com"; //change this
|
||||
//const char NODE_MQTT[]="10.100.50.16"; // port 1883
|
||||
const char* mqtt_server = "10.100.50.16";
|
||||
|
||||
// Amazon Root CA 1
|
||||
static const char AWS_CERT_CA[] PROGMEM = R"EOF(
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
|
||||
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
|
||||
b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
|
||||
MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
|
||||
b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
|
||||
ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
|
||||
9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
|
||||
IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
|
||||
VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
|
||||
93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
|
||||
jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
|
||||
AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
|
||||
A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
|
||||
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
|
||||
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
|
||||
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
|
||||
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
|
||||
rqXRfboQnoZsG4q5WTP468SQvvG5
|
||||
-----END CERTIFICATE-----
|
||||
)EOF";
|
||||
|
||||
// Device Certificate //change this
|
||||
static const char AWS_CERT_CRT[] PROGMEM = R"KEY(
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDWjCCAkKgAwIBAgIVALHR1esSBbWYyouyJ7tdJkdvfCLXMA0GCSqGSIb3DQEB
|
||||
CwUAME0xSzBJBgNVBAsMQkFtYXpvbiBXZWIgU2VydmljZXMgTz1BbWF6b24uY29t
|
||||
IEluYy4gTD1TZWF0dGxlIFNUPVdhc2hpbmd0b24gQz1VUzAeFw0yMzAyMTExNTU3
|
||||
MjFaFw00OTEyMzEyMzU5NTlaMB4xHDAaBgNVBAMME0FXUyBJb1QgQ2VydGlmaWNh
|
||||
dGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpD2aJiCRf1BtlenF9
|
||||
iBrHOlLVIgDVPnLIBZF0DoXwzTLAtdyL2ui2WmJ3cdh4CDhTT0KqRvsXd1AXOcr0
|
||||
fRp3pZjrfR7MvEwTYZ4PgNG4fXDLbxwt4K/imJ5ErCYEFygbPxkhgfXdqJVD9aZS
|
||||
3Nw/D5osyy7EzZZ15r9/USpjD+gieBzkZ0qoBwKsWXMLuDomNYKaWTRVAI+kxCGf
|
||||
d5tqIBq46+C3jte+mncaCOqu3wB4a26ArD6RgqXbkCTqeWkkwrTPjTfuhO2K7yR4
|
||||
3jkCDz+2DQ1N7ic5N55BwF0qqfZD6UTzLXNsm1xQlFcF5fFQ07OGjABaqK1N+zTx
|
||||
sBDBAgMBAAGjYDBeMB8GA1UdIwQYMBaAFJy4+alDbZOGSVxJpGcsFsqvmnOoMB0G
|
||||
A1UdDgQWBBQaC5KWVHNKvJ3NRIayeAM1Mz+GXTAMBgNVHRMBAf8EAjAAMA4GA1Ud
|
||||
DwEB/wQEAwIHgDANBgkqhkiG9w0BAQsFAAOCAQEAMyiLNcFqjAi9RIkvBvhuWqR3
|
||||
Lq1L1E6GBugVF3lc97sVPoyfwlabdPVbBMZY6ufdfRoKjZRVZJ260eFlY6y8lys4
|
||||
xrUIRkzkaQ8nfqMSBS4WqLSKYkGTZpDgxFmjtDKouNmaEE4MOrZbmGMi45avT++o
|
||||
bR7n9UMHTckqAuGfrFE8LXTERoKewMkfxabrRHYSe8aPBaXpf4eRntDrotXuApbg
|
||||
+InewDM420zMmXMss0qImvD4zP+4oNk59XdEsurUi7hbm5QWkwbXC1vDS1RiOz+B
|
||||
ZCTx9bSvda/TVqZ+4PIHBZ0XZ3Cyk1rsPj02URD2Dpt/FxpdGx2cUoPCFfGRyg==
|
||||
-----END CERTIFICATE-----
|
||||
)KEY";
|
||||
|
||||
// Device Private Key //change this
|
||||
static const char AWS_CERT_PRIVATE[] PROG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r5k24IT569U5ExC1eO8hKBLWXq
|
||||
dfFcCa9Yny9scUAaOlJ4wDZ3mteE3aq6W2ZZeRzAHU/Mj2+hiKP/k/nG38OaI2MF
|
||||
0a6qWOp36DBPirObyrIk9n3cRYU6cYDFHZzxm0QpAoGBAKvrYmPh2VBQSLq9oJ30
|
||||
DXnti1odsMiulFcY4o7rSTuDSd26OR+0LsgnHHMlonW9n78up49VAIkZRwYr6PQC
|
||||
NdzPBR2OOqnuw1hbknBa6qnniSo9A/wggvtH/mWMYsnkiq5t0YjEYHT9IHM75whw
|
||||
FbjnaSuINLX3cqsn4iouttkpAoGBALsRWqXeBqnEbhKcysxztMuV2mMzuA1r2kwk
|
||||
YweXQey5dn5Z5k19/MDPuztSVgO7JRkcRXe8TzDQylkbThVcNn5oMKl/LJpNOUGO
|
||||
y79hZpWCWR1RSWwqJ/Fbn5pPx9U4WxstOZmumgiVWG36bwrOWZ7MHqUzrxU/iNJr
|
||||
ZgP+ysBJAoGAZoontVFVREQBhvNuvKIWp2M9AEuv6b0aCVjpjL938zjLZZtz1Z3P
|
||||
G89deACIvxAv89ku+d+87PceTqphCoyet5OuCX04lQUfNKjn6QiW5CnYt5sQ1+0n
|
||||
AfyxZqH5WLtbLNp49X/u5CKuFQSrZ/JFoq1GbLsF9xKdBYQ9j1+GY3M=
|
||||
-----END RSA PRIVATE KEY-----
|
||||
)KEY";
|
Loading…
x
Reference in New Issue
Block a user