From 916100a182a48352893a83d7b8431b3bc8b7d691 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Wed, 24 Jun 2020 09:31:28 +0200 Subject: [PATCH] Tiny corrections --- README.md | 6 +++--- src/main.cpp | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9b8ec03..e8accd3 100644 --- a/README.md +++ b/README.md @@ -138,9 +138,9 @@ There are special RFID-tags, that don't start music by themself but can modify t * track und playlist loop-mode can both be activated at the same time, but unless track-loop isn't deactivated, playlist-loop won't be effective ### Neopixel-ring (optional) -Indicates different things. Don't forget setting number of LEDs via #define NUM_LEDS +Indicates different things. Don't forget configuration of number of LEDs via #define NUM_LEDS * While booting: 1/2 LEDs rotating orange -* Unable to mount SD: LEDs flashing red (will remain forever unless SD-card is not available) +* Unable to mount SD: LEDs flashing red (will remain forever unless SD-card is available) * IDLE: four LEDs slow rotating * ERROR: all LEDs flashing red (1x) * OK: all LEDs flashing green (1x) @@ -201,4 +201,4 @@ Please refer [ESP32-audioI2S](https://github.com/schreibfaul1/ESP32-audioI2S), a As all assignments between RFID-IDs and actions (playmode, file to play...) is saved in ESP's NVS, the problem is that it's all gone when the ESP is broken. So that's where a backup comes into play. So every time you change or add a new assignment between a RFID-tag and an action via GUI, a backup-file is saved on the uSD-card. The file's name can be changed via `backupFile`. Again using the GUI you can use the upload-form to import such a file. To be honest: Sometimes I had some issues with Firefox doing this whereas Safari turned out to do it right. Don't know why :-(. ## Smarthome (optional) -As already described, MQTT is supported. In order to use it it's necessary to run a MQTT-broker; [Mosquitto](https://mosquitto.org/) for instance. After connecting to it, Tonuino subscribes to all command-topics. State-topics are used to push states to the broker in order to inform others if anything changed (change of volume, new playlist, new track... name it). Others, like openHAB, subscribe to state-topics end send commands via command-topics. So it's not just limited to openHAB. It's just necessary to use a platform, that supports MQTT. \ No newline at end of file +As already described, MQTT is supported. In order to use it it's necessary to run a MQTT-broker; [Mosquitto](https://mosquitto.org/) for instance. After connecting to it, Tonuino subscribes to all command-topics. State-topics are used to push states to the broker in order to inform others if anything changed (change of volume, new playlist, new track... name it). Others, like openHAB, subscribe to state-topics end send commands via command-topics. So it's not just limited to openHAB. It's just necessary to use a platform, that supports MQTT. For [further informations refer](https://github.com/biologist79/Tonuino-ESP32-I2S/tree/master/openHAB). \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 7eacc17..36a512b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,7 @@ // Define modules to compile: //#define MQTT_ENABLE #define FTP_ENABLE -#define NEOPIXEL_ENABLE +#define NEOPIXEL_ENABLE // Don't forget configuration of NUM_LEDS #include #include "Arduino.h" @@ -3188,9 +3188,6 @@ void loop() { postHeartbeatViaMqtt(); } #endif - #ifdef OTA_ENABLE - ArduinoOTA.handle(); - #endif #ifdef FTP_ENABLE ftpSrv.handleFTP(); #endif