-
Notifications
You must be signed in to change notification settings - Fork 1
/
secrets.h
96 lines (86 loc) · 5.19 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include <pgmspace.h>
#define SECRET
const char ssid[] = "SUA REDE WIFI";
const char pass[] = "SUA SENHA WIFI";
#define THINGNAME "69e0f7b2-0dd7-4c11-bf72-14babb57a9eb"
int8_t TIME_ZONE = -3;
//#define USE_SUMMER_TIME_DST // descomente se voce estiver em horario de verãonce
const char MQTT_HOST[] = "eugenioprod-iothub.azure-devices.net";
const char MQTT_USER[] = "eugenioprod-iothub.azure-devices.net/" THINGNAME "/api-version=2017-06-30";
const int MQTT_PORT = 8883;
const char MQTT_SUB_TOPIC[] = "$iothub/methods/POST/#";
const char MQTT_PUB_TOPIC[] = "devices/" THINGNAME "/messages/events/";
// Copie aqui o seu certificado CA do EUGENIO (ex: CAxxxxx.pem) ▼
static const char cacert[] PROGMEM = \
"-----BEGIN CERTIFICATE-----\n" \
"MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ\n" \
"RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD\n" \
"VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX\n" \
"DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y\n" \
"ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy\n" \
"VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr\n" \
"mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr\n" \
"IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK\n" \
"mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu\n" \
"XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy\n" \
"dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye\n" \
"jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1\n" \
"BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3\n" \
"DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92\n" \
"9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx\n" \
"jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0\n" \
"Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz\n" \
"ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS\n" \
"R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp\n" \
"-----END CERTIFICATE-----\n";
// Copie aqui o seu certificar do cliente do EUGENIO (ex: xxxxx.pem) ▼
static const char client_cert[] PROGMEM = \
"-----BEGIN CERTIFICATE-----\n" \
"MIIDCTCCAfGgAwIBAgIUR6Km7gP02S7o89HbAgSte+lzY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ada do certificado do cleinte do EUGENIO (ex: xxxxx.key.pem) ▼
static const char privkey[] PROGMEM = \
"-----BEGIN PRIVATE KEY-----\n" \
"MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCmj8LwmWrIHC61\n" \
"iIUpg5a26Ams9h2qcppWgjH8cM4yxMUkfCQ1Hzx2nquGie/+8ph0y3IKUiz3A/n5\n" \
"wAzI+fHAFjZRkih1NucIFBLczIBustGZJ8ncu7G9m9Lnij0RsKqCKKt777UYQUvT\n" \
"rZ/d611ONRJz0ter3+o67MF/VKDGX1dWHSK5eA0GbKsBzt/bosWDq9vzyYLTxgjN\n" \
"1d8tX3RGvNcYFJ+MGSq/O+tCIwc9H+h0Vnx/IklRtSZfV43MGkohw66OQabhHFsH\n" \
"nZb8FeSj+ATMHdVKtJQDSJMxSIs3o0b5UtwsZgc5H2VZPXBzFP/As+0uVF4X+lbG\n" \
"2CfBiRYBAgMBAAECggEBAIN0FIsk2bSjIW4eF9JiyzEBwpkiCNm75vj9egvcz7Ab\n" \
"weeAnmbahzKrGX5uIN5agl4zLobcwiYVmlU08CIxuU07epU4P/v6X63tgdGHCJnV\n" \
"QTyZvWQbMjUN5Q7d+EKc5oUhKe3/ijJhXkHq1rAjkJkno6+LqLE6YDcvIaunk9fa\n" \
"B1TC9sgXPO74I1IT9izqJvrO+1H8yQS8B1zdsUyBydJAlTqX+ek5RnjONR9wO2+w\n" \
"zFMZfTj12CQesW1KbI/tqPf3NCz8QuFlKY7ywpNtY5ECgYEAzsZVqZWEw2Jp8J61\n" \
"y2Q2GDzDH0l0xqYQ0E3PPirvUqwO56AgsoItge7KcSt5j9wkwv5EhMHjeQaxKfL7\n" \
"1frUTI4O6vYzd+wvbtnHdVAbBDKwtu/55666VyrlbM9Nmsg25zY3tl2vZFUB6Rj4\n" \
"kkmUD4OO2BTgeSt4rkl7dTCojZUCgYEAzjatirVofqJbZDcYB4gSyNSe8mHF2qYW\n" \
"FhlDCUseFtIcOZF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