Skip to content

emonESP dev. :: SPIFFS with SD card #49

Closed
@danbates2

Description

@danbates2

@jeremypoulter
Hi Jeremy, I'm modifying a version of emonESP for my emonDC board. I was hoping for your input on a decision I have to make.

I'm logging data to an SD card, using the ESP8266.

The firmware has class conflicts between the SPIFFS filesystem and the SDCard filesystem libraries. I've tried changing all the class definitions in the .h and .cpp file of the SD card lib to no avail.

So I have three possible paths.

  1. Move all the SPIFFS files to the SDcard and run emonESP from an SD card.
  • The main disadvantage is requiring an SD card to run the basic program, a limitation I don't want.
  1. Get SD card and SPIFFS working alongside each other. The best resource I've found to change the emonESP firmware is this: Make SD Class be able to coexist with SPIFFS esp8266/Arduino#1524 (comment)
  • A brief go at this method I couldn't make work because the function names differed I think.. I'll have another go at getting this working..
  1. Write to a datalogging file in the SPIFFS and provide a way to download the file in emonESP.
  • I imagine memory space to be the limitation here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions