Skip to content

Commit

Permalink
Create 6_Credentials.h
Browse files Browse the repository at this point in the history
  • Loading branch information
couin3 authored Jan 2, 2021
1 parent 00b0901 commit c79ef8b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions RFLink/6_Credentials.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// ************************************* //
// * Arduino Project RFLink-esp * //
// * https://github.com/couin3/RFLink * //
// * 2018..2020 Stormteam - Marc RIVES * //
// * More details in RFLink.ino file * //
// ************************************* //

#ifndef CREDENTIALS_h
#define CREDENTIALS_h

#include "RFLink.h"

// local AP
String WIFI_SSID = "xxx";
String WIFI_PSWD = "xxx";

// DHCP or Static IP
// #define USE_DHCP
#ifndef USE_DHCP
String WIFI_IP = "192.168.1.xxx";
String WIFI_DNS = "192.168.1.xxx";
String WIFI_GATEWAY = "192.168.1.xxx";
String WIFI_SUBNET = "255.255.255.0";
#endif

// MQTT Server
String MQTT_SERVER = "192.168.1.xxx";
String MQTT_PORT = "1883";
String MQTT_ID = "ESP8266-RFLink_xxx";
String MQTT_USER = "xxx";
String MQTT_PSWD = "xxx";

// MQTT Topic
String MQTT_TOPIC_OUT = "/ESP00/msg";
String MQTT_TOPIC_IN = "/ESP00/cmd";
String MQTT_TOPIC_LWT = "/ESP00/lwt";

#ifdef CHECK_CACERT
static const char ca_cert[] PROGMEM = R"EOF(
-----BEGIN CERTIFICATE-----
MIID (...)
-----END CERTIFICATE-----
)EOF";
#endif //CHECK_CACERT

#endif

0 comments on commit c79ef8b

Please sign in to comment.