SparkJson icon indicating copy to clipboard operation
SparkJson copied to clipboard

Library broken with updated firmware?

Open dhhagan opened this issue 8 years ago • 3 comments

On the Particle IDE, it lists this library as broken on all platforms. When I try to compile through the IDE, it seems to throw errors associated with type casts.

Ex. Using the example from the glowfish httpsclient library:

top['coreid'] = (const char*) System.deviceID();

error: invalid conversion from int to ArduinoJson::JsonObject::key_type()

dhhagan avatar Dec 30 '16 21:12 dhhagan

It's not actually the lib, but the include statements in the examples

// this is the original
//#include <ArduinoJson.h>
// but should be this
#include "SparkJson/ArduinoJson.h"

See community thread https://community.particle.io/t/issues-with-compiling-the-sparkjson-library/28242

ScruffR avatar Dec 30 '16 21:12 ScruffR

Awesome!

dhhagan avatar Dec 30 '16 21:12 dhhagan

I think this issue should still be addressed, so could you reopen it again?

ScruffR avatar Jan 01 '17 19:01 ScruffR