Skip to content

Using Loom without LoomManager

Luke Goertzen edited this page Sep 11, 2019 · 2 revisions

In general, we encourage users (especially new users) to make use of the LoomManager class. This class is what allows you to parse JSON configurations and automate most of the repetetive tasks involved with Loom devices, such as iterating over a set of sensors collecting data from each, and then easily use or send that data.

While we try to maintain full functionality of Loom without the use of the manager, development often assumes the manager will be used and there may be some cases where functionality is dependent on the manager. The LoomManager is intended to be a convenience, and replicating a set of operations without it may take substantially more code.

However, we do see two cases in which one might want to forgo the use of the LoomManager. These are either:

  • You want a high degree of customizability and management beyond what the LoomManager provides. In this case, it assumed that you know what you are doing, and minimal support is provided.
  • You want a simple and consistent way to instantiate and interact with the LoomModules. We see this as a way one might use one or more of the LoomModules for basic testing, or for use in a primarily non-Loom project.

Example

A simple example of using Loom without the LoomManager can found here.