[GH-ISSUE #268] does not name a type #224

Closed
opened 2026-02-28 01:24:11 +03:00 by kerem · 1 comment
Owner

Originally created by @stellanhaglund on GitHub (Dec 29, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/268

Hi!

I'm experiencing something strange, when I use the library with esp8266 everything works fine, but when I do this on arduino uno

#include <ArduinoJson.h>
StaticJsonBuffer<10> jsonBuffer;
JsonObject& main = jsonBuffer.createObject();
main["test"] = "test";

I get

error: 'main' does not name a type
 main["test"] = "test";
 ^
Originally created by @stellanhaglund on GitHub (Dec 29, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/268 Hi! I'm experiencing something strange, when I use the library with esp8266 everything works fine, but when I do this on arduino uno ``` #include <ArduinoJson.h> StaticJsonBuffer<10> jsonBuffer; JsonObject& main = jsonBuffer.createObject(); main["test"] = "test"; ``` I get ``` error: 'main' does not name a type main["test"] = "test"; ^ ```
kerem closed this issue 2026-02-28 01:24:11 +03:00
Author
Owner

@stellanhaglund commented on GitHub (Dec 29, 2016):

sorry wrong tab :/

<!-- gh-comment-id:269598897 --> @stellanhaglund commented on GitHub (Dec 29, 2016): sorry wrong tab :/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#224
No description provided.