Custom reader: readBytes method is not required?
boraozgen opened this issue · 1 comments
boraozgen commented
Description
I implemented a custom reader for my application. Although the documentation states that a readBytes method is required, my reader compiles and works without it too. Is this method orphaned and should it be removed?
Troubleshooter's report
- The program uses ArduinoJson 7
- The issue happens at compile time
- The error is not in the list
Environment
- Microcontroller: Not relevant
- Core/Framework: No Arduino core
- IDE: No Arduino IDE
bblanchon commented
Hi @boraozgen,
Indeed, deserializeJson()
doesn't use readBytes()
, but deserializeMsgPack()
does.
I'll add a note in the documentation.
Best regards,
Benoit