SerialFlash Print interface

Status
Not open for further replies.

tenkai

Well-known member
Hello,

I am trying to use the ArduinoJson library with SerialFlash. I am curious if anyone has implemented a Print interface to SerialFlash files, as is implemented for the SdFat object.

A bit more info is here:
https://github.com/bblanchon/ArduinoJson/wiki/Encoding-JSON
Code:
The library is designed to send the JSON string to an implementation of the Print interface that is part of Arduino. In the example above we used Serial, but they are many other implementations that would work as well, including: HardwareSerial, SoftwareSerial, LiquidCrystal, EthernetClient, WiFiClient, Wire... When you use this library out of the Arduino environment, it uses its own implementation of Print and everything is the same.

In the SD library in SD/Utility/SdFat.h on line 135 begins the Print interface for the SD library:

Code:
class SdFile : public Print {
 
Status
Not open for further replies.
Back
Top