Skip to content

Commit 969bdc7

Browse files
committed
Dropped support for ArduinoJson 6 and updated doc
1 parent 9904a62 commit 969bdc7

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ He is making great Arduino libraries.
4343
- **Flexible Configuration:** ESPConnect can either control the configuration persistence for you or let you do it
4444
- **mDNS / DNS Support**
4545
- **Ethernet support**
46-
- **Ready for Arduino 3 (ESP-IDF 5.1)**
46+
- **Ready for Arduino 3 (ESP-IDF >= 5.1)**
4747
- **ESP8266 support** (except for Ethernet)
4848
- **Supports Static IP configuration**
4949

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ He is making great Arduino libraries.
4343
- **Flexible Configuration:** ESPConnect can either control the configuration persistence for you or let you do it
4444
- **mDNS / DNS Support**
4545
- **Ethernet support**
46-
- **Ready for Arduino 3 (ESP-IDF 5.1)**
46+
- **Ready for Arduino 3 (ESP-IDF >= 5.1)**
4747
- **ESP8266 support** (except for Ethernet)
4848
- **Supports Static IP configuration**
4949

src/MycilaESPConnect.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,7 @@ void Mycila::ESPConnect::_enableCaptivePortal() {
635635

636636
// we have some results
637637
for (int i = 0; i < n; ++i) {
638-
#if ARDUINOJSON_VERSION_MAJOR == 6
639-
JsonObject entry = json.createNestedObject();
640-
#else
641-
JsonObject entry = json.add<JsonObject>();
642-
#endif
638+
JsonObject entry = json.add<JsonObject>();
643639
entry["name"] = WiFi.SSID(i);
644640
entry["rssi"] = WiFi.RSSI(i);
645641
entry["signal"] = _wifiSignalQuality(WiFi.RSSI(i));

0 commit comments

Comments
 (0)