• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

(lack of understanding)Platformio

Q&A Forum › Category: ESP8266 › (lack of understanding)Platformio
0 Vote Up Vote Down
flagtrax asked 4 years ago

How do I load the arduino-libraries/Arduino_JSON @ 0.1.0 library into Platformio? I’m obviously not understanding something. When I open libraries, it doesnt find it…

Question Tags: platformio
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
You just need to include the library like this in the platformio.ini of your project:

lib_deps = arduino-libraries/Arduino_JSON @ 0.1.0

If you search on the library tab for “arduino_json“. It is the third result.
Regards,
Sara

0 Vote Up Vote Down
flagtrax answered 4 years ago

Thank you Sara. Yes I guess I didn’t offer enough information I did do that. In fact in one instance I downloaded the complete file folders for the “multiple outputs” exercise in the Web Server book. Not making any changes, I got errors that the libraries could not be found. I then deleted all the files associated with that project and imported them via import button on the PIO screen. That time all worked however there were other errors relating to comments in a json file
{
“resource”: “/c:/Users/flagt/Documents/PlatformIO/Projects/test/.vscode/c_cpp_properties.json”,
“owner”: “_generated_diagnostic_collection_name_#0”,
“code”: “521”,
“severity”: 8,
“message”: “Comments are not permitted in JSON.”,
“startLineNumber”: 1,
“startColumn”: 1,
“endLineNumber”: 1,
“endColumn”: 3
}
I don’t quite understand where that’s comming from or why. 
I’ve also seen errors relating to SPIFFS being deprecated even though littleFS is being used.
For me at least, it seems the learning curve for Platformio is steeper than other IDEs when it comes to ooperational functions. I’ve been searching for tutorials but much of what I find either doesn’t go into explanation or (like) from the authors; way over my head.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
 
I’m not sure why you get that error related with the library. Maybe it would be better if you post or search that issue on the PIO forum, as I don’t know how to help with that: https://community.platformio.org/
 
As for the LittleFS issue, it is because even though we’re using LittleFS, the AsyncWebServer library still uses SPIFFS. That’s why you get that message – it’s not an error and you don’t need to worry about that.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.