spejsiot-sonoff_pow/soft/src/common/common_config.h

30 lines
623 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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