-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
41 lines (32 loc) · 1.18 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
31
32
33
34
35
36
37
38
39
40
41
#ifndef __CONFIGFILE__
#define __CONFIGFILE__
bool shouldSaveConfig = true;
//WIFI SETTING
char wifi_ssid[34] = "UBL Mekatronik";
char wifi_password[34] = "foline12421025";
char mqtt_server[40] = "167.205.7.226";
int mqtt_port = 1883;
char smqtt_port[5] = "1883";
char mqtt_user[40] = "/absensi:absensi";
char mqtt_password[40] = "PPTIK@|PASSWORD";
char mqtt_keywords1[40] = "absensi/service";
char mqtt_keywords2[40] = "absensi/control";
const long interval = 2000;
uint8_t MAC_array[6];
char MAC_char[18];
WiFiClient espClient;
PubSubClient client(espClient);
//#define RST_PIN 5 // RST-PIN für RC522 - RFID - SPI - Modul GPIO5
//#define SS_PIN 4 // SDA-PIN für RC522 - RFID - SPI - Modul GPIO4
//#define BUZZER D3 // pcb merah (D3) (kalau hijau, biru D8)
//#define LED1 D8// pcb merah (kalau hijau,biru d4)
//#define LED2 D4
#define RST_PIN 5 // RST-PIN für RC522 - RFID - SPI - Modul GPIO5
#define SS_PIN 4 // SDA-PIN für RC522 - RFID - SPI - Modul GPIO4
#define BUZZER 0 // pcb merah (D3) (kalau hijau, biru D8)
#define LED1 15 // pcb merah (kalau hijau,biru d4)
#define LED2 2
MFRC522 mfrc522(SS_PIN, RST_PIN);
void SaveConfigCallback ();
void ReadConfigFile();
#endif