30 lines
623 B
C
30 lines
623 B
C
#ifndef __COMMON_CONFIG_H__
|
||
#define __COMMON_CONFIG_H__
|
||
|
||
#ifndef WIFI_SSID
|
||
#define WIFI_SSID "╳╳╳"
|
||
#define WIFI_PWD "bs7RFiQpgmMycfmt"
|
||
//#define WIFI_SSID "hackerspace.pl-guests"
|
||
//#define WIFI_PWD "HackThePlanet!"
|
||
#endif
|
||
|
||
#ifndef MQTT_BROKER
|
||
//#define MQTT_BROKER "10.8.1.16"
|
||
#define MQTT_BROKER "10.1.10.50"
|
||
#ifdef ENABLE_SSL
|
||
#define MQTT_PORT 8883
|
||
#define SSL_FINGERPRINT { } // TODO
|
||
#else
|
||
#define MQTT_PORT 1883
|
||
#endif
|
||
#endif
|
||
|
||
#define TOPIC_PREFIX "iot/"
|
||
|
||
#define OTA_URL "http://" MQTT_BROKER "/api/1/ota/"
|
||
|
||
#define BTN_PIN 0
|
||
#define LED_PIN 2
|
||
|
||
#endif
|