mirror of
https://gitlab.com/wirelos/sprocket-plugin-mqtt.git
synced 2025-12-14 21:52:21 +01:00
Use new config folder
This commit is contained in:
@@ -11,4 +11,4 @@ examples:
|
||||
image: python:2.7-stretch
|
||||
script:
|
||||
- pio run -t clean
|
||||
- pio run -e basic
|
||||
- pio run
|
||||
@@ -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/>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user