2024-05-24 19:23:58 +00:00
|
|
|
<a name="module_lib/devices"></a>
|
|
|
|
|
|
|
|
## lib/devices
|
|
|
|
|
|
|
|
* [lib/devices](#module_lib/devices)
|
|
|
|
* [~Devices](#module_lib/devices..Devices)
|
|
|
|
* [new Devices()](#new_module_lib/devices..Devices_new)
|
|
|
|
* [.init()](#module_lib/devices..Devices+init)
|
|
|
|
* [.listen()](#module_lib/devices..Devices+listen)
|
|
|
|
* [.listener()](#module_lib/devices..Devices+listener)
|
|
|
|
* [.enumerate()](#module_lib/devices..Devices+enumerate)
|
|
|
|
* [.favor()](#module_lib/devices..Devices+favor)
|
|
|
|
* [.distinguish()](#module_lib/devices..Devices+distinguish)
|
|
|
|
* [.fakeProjector()](#module_lib/devices..Devices+fakeProjector)
|
|
|
|
* [.fakeCamera()](#module_lib/devices..Devices+fakeCamera)
|
|
|
|
* [.fakeLight()](#module_lib/devices..Devices+fakeLight)
|
|
|
|
* [.fakeCapper()](#module_lib/devices..Devices+fakeCapper)
|
|
|
|
* [.connectDevice()](#module_lib/devices..Devices+connectDevice)
|
|
|
|
* [.all()](#module_lib/devices..Devices+all)
|
|
|
|
* [.remember()](#module_lib/devices..Devices+remember)
|
|
|
|
* [.ready()](#module_lib/devices..Devices+ready)
|
|
|
|
|
|
|
|
<a name="module_lib/devices..Devices"></a>
|
|
|
|
|
|
|
|
### lib/devices~Devices
|
|
|
|
Class representing the device discovery features.
|
|
|
|
|
|
|
|
**Kind**: inner class of [<code>lib/devices</code>](#module_lib/devices)
|
|
|
|
|
|
|
|
* [~Devices](#module_lib/devices..Devices)
|
|
|
|
* [new Devices()](#new_module_lib/devices..Devices_new)
|
|
|
|
* [.init()](#module_lib/devices..Devices+init)
|
|
|
|
* [.listen()](#module_lib/devices..Devices+listen)
|
|
|
|
* [.listener()](#module_lib/devices..Devices+listener)
|
|
|
|
* [.enumerate()](#module_lib/devices..Devices+enumerate)
|
|
|
|
* [.favor()](#module_lib/devices..Devices+favor)
|
|
|
|
* [.distinguish()](#module_lib/devices..Devices+distinguish)
|
|
|
|
* [.fakeProjector()](#module_lib/devices..Devices+fakeProjector)
|
|
|
|
* [.fakeCamera()](#module_lib/devices..Devices+fakeCamera)
|
|
|
|
* [.fakeLight()](#module_lib/devices..Devices+fakeLight)
|
|
|
|
* [.fakeCapper()](#module_lib/devices..Devices+fakeCapper)
|
|
|
|
* [.connectDevice()](#module_lib/devices..Devices+connectDevice)
|
|
|
|
* [.all()](#module_lib/devices..Devices+all)
|
|
|
|
* [.remember()](#module_lib/devices..Devices+remember)
|
|
|
|
* [.ready()](#module_lib/devices..Devices+ready)
|
|
|
|
|
|
|
|
<a name="new_module_lib/devices..Devices_new"></a>
|
|
|
|
|
|
|
|
#### new Devices()
|
2024-05-24 03:36:51 +00:00
|
|
|
Constructor assigns arduino, settings, UI browser window and cam objects
|
|
|
|
locally to this class for reference.
|
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
<a name="module_lib/devices..Devices+init"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.init()
|
2024-05-24 03:36:51 +00:00
|
|
|
Initialize the log for "devices". Establish an ipc connection to the UI.
|
|
|
|
Start listening on that ipc connection.
|
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+listen"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.listen()
|
2024-05-24 03:36:51 +00:00
|
|
|
Listen to the "profile" channel for messages from the UI.
|
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+listener"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.listener()
|
2024-05-24 03:36:51 +00:00
|
|
|
The "profile" channel callback. If a profile is changed, set it in the
|
|
|
|
local settings object.
|
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+enumerate"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.enumerate()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+favor"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.favor()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+distinguish"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.distinguish()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+fakeProjector"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.fakeProjector()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+fakeCamera"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.fakeCamera()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+fakeLight"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.fakeLight()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+fakeCapper"></a>
|
2024-05-24 03:36:51 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.fakeCapper()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+connectDevice"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.connectDevice()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+all"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.all()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+remember"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.remember()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|
|
|
|
<a name="module_lib/devices..Devices+ready"></a>
|
2019-03-22 01:03:03 +00:00
|
|
|
|
2024-05-24 19:23:58 +00:00
|
|
|
#### devices.ready()
|
|
|
|
**Kind**: instance method of [<code>Devices</code>](#module_lib/devices..Devices)
|