seperate settings to settings.h
This commit is contained in:
parent
331825732e
commit
0400524798
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#define FIRMWARE_ID 0x1337
|
#define FIRMWARE_ID 0x1337
|
||||||
#define FIRMWARE_VER "0.1"
|
#define FIRMWARE_VER "0.1"
|
||||||
wifi_conn networks[] = NETWORK_LIST;
|
wifi_conn networks[] = {WIFI_CONN("ssid 1", NETWORK_PASSWORD, NULL, 0),WIFI_CONN("ssid 2", NETWORK_PASSWORD, NULL, 0),NULL,};
|
||||||
const char* mesh_password = MESH_PASSWORD;
|
const char* mesh_password = MESH_PASSWORD;
|
||||||
const char* mqtt_server = MQTT_SERVER;
|
const char* mqtt_server = MQTT_SERVER;
|
||||||
const int mqtt_port = MQTT_PORT;
|
const int mqtt_port = MQTT_PORT;
|
||||||
|
@ -37,16 +37,7 @@ int cnt = 0;
|
||||||
|
|
||||||
// Note: All of the '.set' options below are optional. The default values can be
|
// Note: All of the '.set' options below are optional. The default values can be
|
||||||
// found in ESP8266MQTTMeshBuilder.h
|
// found in ESP8266MQTTMeshBuilder.h
|
||||||
ESP8266MQTTMesh mesh = ESP8266MQTTMesh::Builder(networks, mqtt_server, mqtt_port)
|
ESP8266MQTTMesh mesh = ESP8266MQTTMesh::Builder(networks, mqtt_server, mqtt_port).setVersion(FIRMWARE_VER, FIRMWARE_ID).setMeshPassword(mesh_password).build();
|
||||||
.setVersion(FIRMWARE_VER, FIRMWARE_ID)
|
|
||||||
.setMeshPassword(mesh_password)
|
|
||||||
#if ASYNC_TCP_SSL_ENABLED
|
|
||||||
.setMqttSSL(mqtt_secure, mqtt_fingerprint)
|
|
||||||
#if MESH_SECURE
|
|
||||||
.setMeshSSL(ssl_cert, ssl_cert_len, ssl_key, ssl_key_len, ssl_fingerprint)
|
|
||||||
#endif //MESH_SECURE
|
|
||||||
#endif //ASYNC_TCP_SSL_ENABLED
|
|
||||||
.build();
|
|
||||||
|
|
||||||
void callback(const char *topic, const char *msg);
|
void callback(const char *topic, const char *msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue