See <ComponentProps>
A portion of the configuration object to pass to the LogicFloatSenderComponent
constructor.
type LogicFloatSenderComponentPropsV1 = {
updatedValue?: number | undefined;
changedExternally?: number | undefined;
identifier?: number | undefined;
value?: float | undefined;
};
type LogicFloatSenderComponentProps = LogicFloatSenderComponentPropsV1;
updatedValue
(optional, default3171294583
)<number>
changedExternally
(optional, default32
)<number>
identifier
(optional, default0
)<number>
value
(optional, default0
)<float>
Creates a versioned LogicFloatSender
component.
props
<ComponentProps & LogicFloatSenderComponentProps>
Configuration of the component to create.- Returns:
<LogicFloatSenderComponent>
import { LogicFloatSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicFloatSenderComponent({ version: componentVersion });
See Component.fromBinary(reader, version)
Note that the following properties are sorted in order of appearance when decoding component binary data.
See Component.hash
See Component.name
We're not quite sure what this property does.
- Since:
v1
<number>
import { LogicFloatSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicFloatSenderComponent({ version: componentVersion });
const updatedValue = component.updatedValue;
// `updatedValue` is `3171294583`
We're not quite sure what this property does.
- Since:
v1
<number>
import { LogicFloatSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicFloatSenderComponent({ version: componentVersion });
const changedExternally = component.changedExternally;
// `changedExternally` is `32`
The identifier of this LogicFloatSender
that a LogicFloatReceiver
connects to.
- Since:
v1
<number>
import { LogicFloatSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicFloatSenderComponent({ version: componentVersion });
const identifier = component.identifier;
// `identifier` is `0`
The output value of this LogicFloatSender
that a LogicFloatReceiver
reads as its input.
- Since:
v1
<number>
import { LogicFloatSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicFloatSenderComponent({ version: componentVersion });
const value = component.value;
// `value` is `0`
See Component.toBinary(version?)