Skip to content

LittleFS and ArduinoJSON, why don't you close the file in the example? #7280

Description

@sblantipodi

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP8266EX on D1 Mini Board
  • Core Version: 2.7
  • Development Env: PlatformIO
  • Operating System: Windows

Settings in IDE

  • Module: Wemos D1 mini
  • Flash Mode: default
  • Flash Size: 4MB
  • Reset Method: default
  • Flash Frequency: default
  • CPU Frequency: 80MHz
  • Upload Using: OTA
  • Upload Speed: 115200

Problem Description

  1. This example does not work really well if you don't close the file:
    https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/ConfigFile/ConfigFile.ino
    don't understand why you don't close the file when using arduino json. If I don't close the file I can't correctly read/write the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions