forked from AlphaLima/ESP32-Serial-Bridge
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.h
30 lines (25 loc) · 1.01 KB
/
config.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
// config: ////////////////////////////////////////////////////////////
#define PROTOCOL_TCP
#define MAX_NMEA_CLIENTS 4
//#define relay1 19
//#define relay2 18
const char* ssid = "";
const char* password = "";
const char* MQTT_server= "";
const char* MQTT_user= "";
const char* MQTT_pass= "";
const char* ClientID= "Esp32";
const char* pubTopic= "Esp32/result";
const char* subTopic= "Esp32/cmd";
//when qos == 2, it does not work with my MQTT-GPIO control
unsigned char qos= 1; //subscribe qos
bool retained= false;
bool debug = false;
/************************* COM Port 0 *******************************/
#define UART_BAUD0 9600 // Baudrate UART0
#define SERIAL_PARAM0 SERIAL_8N1 // Data/Parity/Stop UART0
#define SERIAL0_RXPIN 21 // receive Pin UART0
#define SERIAL0_TXPIN 1 // transmit Pin UART0
#define SERIAL0_TCP_PORT 8880 // Wifi Port UART0
#define bufferSize 1024
//////////////////////////////////////////////////////////////////////////