spejsiot/common/common_config.h

27 lines
495 B
C
Raw Permalink Normal View History

2015-12-26 23:29:30 +00:00
#ifndef __COMMON_CONFIG_H__
#define __COMMON_CONFIG_H__
#ifndef WIFI_SSID
#define WIFI_SSID "WIFI-NETWORK"
#define WIFI_PWD "PASSWORD"
#endif
#ifndef MQTT_BROKER
#define MQTT_BROKER "192.168.0.100"
2016-09-10 23:46:42 +00:00
#ifdef ENABLE_SSL
#define MQTT_PORT 8883
#define SSL_FINGERPRINT { } // TODO
#else
#define MQTT_PORT 1883
#endif
2015-12-26 23:29:30 +00:00
#endif
2016-06-29 15:00:22 +00:00
#define TOPIC_PREFIX "iot/"
#define OTA_URL "http://" MQTT_BROKER "/api/1/ota/"
2016-08-30 19:24:34 +00:00
2015-12-26 23:29:30 +00:00
#define BTN_PIN 0
#define LED_PIN 2
#endif