Documentation
Preparing search index...
@ecoflow-api/rest-client
lib/devices/DeviceFactory
deviceFactory
Function deviceFactory
deviceFactory
<
T
extends
string
,
R
=
DeviceFactoryReturnType
<
T
>
>
(
sn
:
T
,
restClient
:
RestClient
,
)
:
R
Factory function to create a device based on the serial number.
Type Parameters
T
extends
string
R
=
DeviceFactoryReturnType
<
T
>
Parameters
sn
:
T
restClient
:
RestClient
Returns
R
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Factory function to create a device based on the serial number.