Skip to main content
added 65 characters in body
Source Link
Juraj
  • 18.3k
  • 4
  • 32
  • 50

the ArduinoJson libraryArduinoJson library doesn't copy the strings, it only stores pointers. and thewrites terminating zeros into input buffer. And your buffer buf is disposed by std::unique_ptr at the end of read_json() function

the ArduinoJson library doesn't copy the strings, it only stores pointers. and the buffer buf is disposed by std::unique_ptr at the end of read_json() function

the ArduinoJson library doesn't copy the strings, it only stores pointers and writes terminating zeros into input buffer. And your buffer buf is disposed by std::unique_ptr at the end of read_json() function

added 8 characters in body
Source Link
Juraj
  • 18.3k
  • 4
  • 32
  • 50

the ArduinoJson library doesn't copy the strings, it only stores pointers. and the buffer buf is disposed by std::unique_ptr at the end of read_json() function

the ArduinoJson library doesn't copy the strings, it only stores pointers. the buffer is disposed by std::unique_ptr at the end of read_json() function

the ArduinoJson library doesn't copy the strings, it only stores pointers. and the buffer buf is disposed by std::unique_ptr at the end of read_json() function

Source Link
Juraj
  • 18.3k
  • 4
  • 32
  • 50

the ArduinoJson library doesn't copy the strings, it only stores pointers. the buffer is disposed by std::unique_ptr at the end of read_json() function