homie-ts

View the Project on GitHub ibloat/homie-ts

Home > @ibloat/homie-ts > Device > constructor

Device.constructor method

Constructs a new instance of the Device class

Signature:

constructor({ id, baseTopic, mqtt, onBroadcast, ...attributes }: DeviceOptions);

Parameters

Parameter Type Description
__0 DeviceOptions