Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsonObject - Arduino IDE throwing error #12

Open
errandom opened this issue Sep 12, 2019 · 2 comments
Open

JsonObject - Arduino IDE throwing error #12

errandom opened this issue Sep 12, 2019 · 2 comments

Comments

@errandom
Copy link

exit status 1
invalid initialization of non-const reference of type 'ArduinoJson::JsonObject&' from an rvalue of type 'ArduinoJson::JsonObject'

I just copy/pasted the sketch into Arduino IDE, made sure all libraries are included, but it keeps throwing me that error. If I go in and uncomment

//{"Name":"ActivateRelay","Parameters":{"Activated":0}}

another error pops up in that very line:
expected ';' before ':' token

@taylorjrsmith
Copy link

hi @errandom have you tried installing version 5 of ArduinoJson

@errandom
Copy link
Author

Yes - but then the error pops up somewhere else:

src/AzureIoTHubMQTTClient.cpp:63: undefined reference to `char* ArduinoJson::JsonVariant::as<char*>() const'

src/AzureIoTHubMQTTClient.cpp:213: undefined reference to `char* ArduinoJson::JsonVariant::as<char*>() const'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants