Use new config folder

This commit is contained in:
Patrick Balsiger
2019-05-20 19:15:37 +02:00
parent 3249c1d495
commit ea04117562
3 changed files with 4 additions and 4 deletions

View File

@@ -11,4 +11,4 @@ examples:
image: python:2.7-stretch
script:
- pio run -t clean
- pio run -e basic
- pio run

View File

@@ -1,5 +1,5 @@
[platformio]
env_default = basic, chat
env_default = basic, chat, chat-esp01
[common]
framework = arduino
@@ -13,7 +13,7 @@ lib_deps =
SPIFFS
ArduinoJson@5.13.4
https://gitlab.com/wirelos/sprocket-lib.git#develop
https://gitlab.com/wirelos/sprocket-network-wifi.git
https://gitlab.com/wirelos/sprocket-network-wifi.git#next
[env:basic]
src_filter = +<*> -<examples/> +<examples/basic/>

View File

@@ -27,7 +27,7 @@ void MqttPlugin::applyConfigFromFile(const char* fileName) {
void MqttPlugin::activate(Scheduler *scheduler)
{
applyConfigFromFile("/mqttConfig.json");
applyConfigFromFile("/config/mqtt.json");
client = new PubSubClient(brokerHost.c_str(), brokerPort, bind(&MqttPlugin::downstreamHandler, this, _1, _2, _3), wifiClient);
enableConnectTask(scheduler);
enableProcessTask(scheduler);