# Libs 2.0 Beta

**URL:** https://community.particle.io/c/beta/libs2/34.md

[Latest](https://community.particle.io/latest.md) · [Categories](https://community.particle.io/categories.md) · [Tags](https://community.particle.io/tags.md)

---

## [About the Libs 2.0 Beta category](https://community.particle.io/t/about-the-ide-2-0-category/25352)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0

</div>

We have been hard at work on improvements to the Particle development tools. This category is where we'll announce the beta version of those improvements and get feedback from the community.

---

## [Library upload broken? \[CLI 1.19.0-libraries.22\] \[was solved v23, but back in 1.19.1\]](https://community.particle.io/t/library-upload-broken-cli-1-19-0-libraries-22-was-solved-v23-but-back-in-1-19-1/28168)

<div class="topic-metadata">

**Author:** [@ScruffR](https://community.particle.io/u/ScruffR)\
**Replies:** 13\
**Last updated:** [October 11, 2021, 3:56pm UTC](https://community.particle.io/t/library-upload-broken-cli-1-19-0-libraries-22-was-solved-v23-but-back-in-1-19-1/28168 "2021-10-11T15:56:18Z")

</div>

@jvanier, the example building did work, but now I've got another problem Although I could use most of the other particle library commands, I seem to be unable to upload C:\\Users\\Andy\\Dropbox\\DokumenteAndy\\Particl…

---

## [Electron with Rule engine](https://community.particle.io/t/electron-with-rule-engine/47833)

<div class="topic-metadata">

**Author:** [@Meson777](https://community.particle.io/u/Meson777)\
**Replies:** 4\
**Last updated:** [September 24, 2019, 3:34am UTC](https://community.particle.io/t/electron-with-rule-engine/47833 "2019-09-24T03:34:05Z")

</div>

I am wondering if the Rule engine is appropriate to use with Electron regarding the data use. Thanks

---

## [Examples in library prevent build?](https://community.particle.io/t/examples-in-library-prevent-build/32042)

<div class="topic-metadata">

**Author:** [@apullin](https://community.particle.io/u/apullin)\
**Replies:** 7\
**Last updated:** [May 4, 2017, 8:51pm UTC](https://community.particle.io/t/examples-in-library-prevent-build/32042 "2017-05-04T20:51:20Z")

</div>

So, I must be doing something wrong here. I am attempting to port an existing Arduino library to the Particle ecosystem, but the included examples makes the build not succeed. For a minimal test case, I am doing: mkd…

---

## [Publish a library](https://community.particle.io/t/publish-a-library/26022)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 23\
**Last updated:** [March 30, 2017, 1:56pm UTC](https://community.particle.io/t/publish-a-library/26022 "2017-03-30T13:56:18Z")

</div>

It's now possible to publish libraries using the CLI. Those libraries must be in the library 2.0 format To create a new library, do particle library init in an empty directory and follow the prompts. To publish a new…

---

## [Compile library examples](https://community.particle.io/t/compile-library-examples/28011)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 13\
**Last updated:** [January 27, 2017, 9:21pm UTC](https://community.particle.io/t/compile-library-examples/28011 "2017-01-27T21:21:21Z")

</div>

Hello folks, The CLI now knows how to compile library examples. Upgrade to the latest beta: npm install -g https://github.com/spark/particle-cli/releases/download/v1.19.0-libraries.20/particle-cli-1.19.0-libraries.20…

---

## [\[Porting issues\] Official Stepper Library (unresolved)](https://community.particle.io/t/porting-issues-official-stepper-library-unresolved/27037)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 2\
**Last updated:** [January 24, 2017, 9:41am UTC](https://community.particle.io/t/porting-issues-official-stepper-library-unresolved/27037 "2017-01-24T09:41:00Z")

</div>

Link: https://github.com/arduino/Arduino/tree/master/libraries/Stepper Issue 1: #include "Arduino.h" not found Fix: added an "Arduino.h" in the lib/src The content is simply: #include "Particle.h" We need to re…

---

## [Steps to use libraries 2.0](https://community.particle.io/t/steps-to-use-libraries-2-0/25354)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 34\
**Last updated:** [January 10, 2017, 5:27pm UTC](https://community.particle.io/t/steps-to-use-libraries-2-0/25354 "2017-01-10T17:27:53Z")

</div>

Libraries 2.0 needs support in the CLI and firmware, so follow these steps to get started using it. Install a pre-release version of the CLI npm install -g https://github.com/spark/particle-cli/releases/download/v1.19…

---

## [\[Porting issues\] SparkFun\_APDS9960 (unresolved)](https://community.particle.io/t/porting-issues-sparkfun-apds9960-unresolved/27090)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 2\
**Last updated:** [January 9, 2017, 8:05pm UTC](https://community.particle.io/t/porting-issues-sparkfun-apds9960-unresolved/27090 "2017-01-09T20:05:30Z")

</div>

Link: https://github.com/sparkfun/SparkFun\_APDS-9960\_Sensor\_Arduino\_Library Issue 1: Arduino.h: No such file or directory Fix: added an "Arduino.h" in the lib/src The content is simply: #include "Particle.h" I…

---

## [\[Porting issues\] Adafruit\_Sensor (unresolved)](https://community.particle.io/t/porting-issues-adafruit-sensor-unresolved/27044)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 1\
**Last updated:** [January 9, 2017, 8:05pm UTC](https://community.particle.io/t/porting-issues-adafruit-sensor-unresolved/27044 "2017-01-09T20:05:14Z")

</div>

Link: https://github.com/adafruit/Adafruit\_Sensor Issue 1: Does not follow defined library structure as per libraries 2.0 Status waiting for more inputs/ideas to this contributed as a library

---

## [\[Porting issues\] Adafruit\_LSM9DS0 (unresolved)](https://community.particle.io/t/porting-issues-adafruit-lsm9ds0-unresolved/27045)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 1\
**Last updated:** [January 9, 2017, 8:04pm UTC](https://community.particle.io/t/porting-issues-adafruit-lsm9ds0-unresolved/27045 "2017-01-09T20:04:52Z")

</div>

Link: https://github.com/adafruit/Adafruit\_LSM9DS0\_Library Issue 1: #include \<Adafruit\_LSM9DS0.h\> throws No file in directory Fix: changing to "" worked Issue 2: #includes are not found #include "WProgram.h" #i…

---

## [Libraries 2.0 installation guide](https://community.particle.io/t/libraries-2-0-installation-guide/27970)

<div class="topic-metadata">

**Author:** [@will](https://community.particle.io/u/will)\
**Replies:** 1\
**Last updated:** [December 27, 2016, 4:02pm UTC](https://community.particle.io/t/libraries-2-0-installation-guide/27970 "2016-12-27T16:02:49Z")

</div>

Thanks for helping us test Libraries 2.0, which is currently in beta in each of our three primary development tools: Command Line interface (CLI) Desktop IDE (Dev) Web IDE (Build) Please read this draft documentatio…

---

## [New beta release](https://community.particle.io/t/new-beta-release/27765)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0\
**Last updated:** [December 5, 2016, 7:33pm UTC](https://community.particle.io/t/new-beta-release/27765 "2016-12-05T19:33:12Z")

</div>

Hi all, You can update the CLI to the beta 17 to remove the upgrade message with 1.18.0. As a bonus this beta also supports compiling for the Pi (particle compile pi) npm install -g https://github.com/spark/particle-…

---

## [Libraries 2.0 in Build IDE](https://community.particle.io/t/libraries-2-0-in-build-ide/27359)

<div class="topic-metadata">

**Author:** [@suda](https://community.particle.io/u/suda)\
**Replies:** 4\
**Last updated:** [December 1, 2016, 2:13am UTC](https://community.particle.io/t/libraries-2-0-in-build-ide/27359 "2016-12-01T02:13:12Z")

</div>

As you might noticed the last part of the puzzle of Libraries 2.0 was the web IDE. I'm happy to present the first beta just in time for weekend hacking: https://build-canary.particle.io What's working searching for …

---

## [\[Porting\] General issues](https://community.particle.io/t/porting-general-issues/27039)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 3\
**Last updated:** [November 29, 2016, 4:20pm UTC](https://community.particle.io/t/porting-general-issues/27039 "2016-11-29T16:20:56Z")

</div>

1) Tedious to test a library I wonder how the 3rd part library provider does their test.. It seems like they make a library repo, whack the entire folder in the libraries folder and runs their examples to compile etc. …

---

## [Libraries 2.0 and Logging](https://community.particle.io/t/libraries-2-0-and-logging/27405)

<div class="topic-metadata">

**Author:** [@ScruffR](https://community.particle.io/u/ScruffR)\
**Replies:** 2\
**Last updated:** [November 21, 2016, 4:33pm UTC](https://community.particle.io/t/libraries-2-0-and-logging/27405 "2016-11-21T16:33:55Z")

</div>

If we should encourage people to use the new Logging features (currently available only on 0.6.0+) it would make sense to have Logging available for all systems that will support Libraries 2.0. So will Logging be backpor…

---

## [Feedback for IDE 2.0](https://community.particle.io/t/feedback-for-ide-2-0/25480)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 21\
**Last updated:** [November 8, 2016, 3:56pm UTC](https://community.particle.io/t/feedback-for-ide-2-0/25480 "2016-11-08T15:56:36Z")

</div>

Add user prompt for successful library addition Currently when you do a particle library add neopixel, the command runs and ends there. We should say whether it was added or failed (and the reason)

---

## [\[Usage issue\] Differing .bin generation (resolved)](https://community.particle.io/t/usage-issue-differing-bin-generation-resolved/27081)

<div class="topic-metadata">

**Author:** [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Replies:** 2\
**Last updated:** [November 7, 2016, 4:23pm UTC](https://community.particle.io/t/usage-issue-differing-bin-generation-resolved/27081 "2016-11-07T16:23:27Z")

</div>

I used a flattened structure VS library 2.0 structure for my new project but somehow the .bin file is different. \[image\] The files are all identical though. Let me push the files to a repository for you guys to do …

---

## [Using libraries in Particle Dev](https://community.particle.io/t/using-libraries-in-particle-dev/26978)

<div class="topic-metadata">

**Author:** [@suda](https://community.particle.io/u/suda)\
**Replies:** 9\
**Last updated:** [November 7, 2016, 3:08pm UTC](https://community.particle.io/t/using-libraries-in-particle-dev/26978 "2016-11-07T15:08:01Z")

</div>

---

## [Current state of libraries 2.0](https://community.particle.io/t/current-state-of-libraries-2-0/25357)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 3\
**Last updated:** [November 1, 2016, 7:54pm UTC](https://community.particle.io/t/current-state-of-libraries-2-0/25357 "2016-11-01T19:54:40Z")

</div>

Libraries 2.0 is still in prerelease. What currently works All previous public and private libraries available through the API Private libraries have been assigned unique suffixes like neopixel\_123 Library support i…

---

## [Documentation for libraries 2.0](https://community.particle.io/t/documentation-for-libraries-2-0/25356)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 5:49pm UTC](https://community.particle.io/t/documentation-for-libraries-2-0/25356 "2016-08-25T17:49:43Z")

</div>

Using libraries Applications include the library using #include \<library-name.h\> instead of #include \<library-name/library-name.h\>. Doing particle library add library-name adds the latest version of that library to pr…

---

## [Library search added to CLI](https://community.particle.io/t/library-search-added-to-cli/25780)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 6\
**Last updated:** [September 26, 2016, 7:07pm UTC](https://community.particle.io/t/library-search-added-to-cli/25780 "2016-09-26T19:07:23Z")

</div>

The latest CLI prerelease now has library search with particle library search. Work on library support in Dev is going well and we want to publish a prerelease here shortly. See the updated installation instructions he…

---

## [Libraries depending on other libraries](https://community.particle.io/t/libraries-depending-on-other-libraries/26019)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 4:49pm UTC](https://community.particle.io/t/libraries-depending-on-other-libraries/26019 "2016-09-22T16:49:32Z")

</div>

Thanks to @mdma you'll now be able to have libraries that depend on other libraries! No more copy-pasting of libraries into other libraries! \[:fireworks:\] In order to do this, open a terminal in your library directory …

---

## [Adapter header files for libraries](https://community.particle.io/t/adapter-header-files-for-libraries/26018)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 3:59pm UTC](https://community.particle.io/t/adapter-header-files-for-libraries/26018 "2016-09-22T15:59:26Z")

</div>

One of the user visible changes from libraries 1.0 to libraries 2.0 is that a library header file should be included in user applications without a path. Old way: #include \<InternetButton/InternetButton.h\> New way: #…

---

## [Library add case insensitive](https://community.particle.io/t/library-add-case-insensitive/25534)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 5\
**Last updated:** [September 2, 2016, 5:56am UTC](https://community.particle.io/t/library-add-case-insensitive/25534 "2016-09-02T05:56:55Z")

</div>

You asked for it, you got it: library add is now case insensitive! You can add the HttpClient library with particle library add httpclient and it will correctly capitalize it in project.properties. No need to update th…

---

## [\[SOLVED\] Subdirectories not preserved on Windows](https://community.particle.io/t/solved-subdirectories-not-preserved-on-windows/25407)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 1\
**Last updated:** [August 31, 2016, 5:05pm UTC](https://community.particle.io/t/solved-subdirectories-not-preserved-on-windows/25407 "2016-08-31T17:05:33Z")

</div>

This weekend I tried compiling a project with a library on a Windows machine and got this error: Cannot install library: directory '/workspace' is a 'simple' format project, please change to a 'extended' format. The CL…

---

## [Libraries 2.0 Resources guide](https://community.particle.io/t/libraries-2-0-resources-guide/25353)

<div class="topic-metadata">

**Author:** [@jvanier](https://community.particle.io/u/jvanier)\
**Replies:** 0\
**Last updated:** [August 25, 2016, 5:28pm UTC](https://community.particle.io/t/libraries-2-0-resources-guide/25353 "2016-08-25T17:28:34Z")

</div>

We are excited to share our progress on an improved firmware library system! Please keep in mind that this is work in progress and several features are still missing. Thanks for sending your feedback in the IDE 2.0 cat…
