$properties
$properties : array
SensorData metadata entity
$range : ?\Iqrf\Repository\Entities\Metadata\SensorRange
__construct(string[] $properties = [], \Iqrf\Repository\Entities\Metadata\SensorRange|null $range = null, int|null $decimals = null, float|null $resolution = null) : mixed
Constructs SensorData metadata object.
| string[] | $properties | Array of keywords representing additional properties of a sensor. |
| \Iqrf\Repository\Entities\Metadata\SensorRange|null | $range | Lower and upper bounds of measurable values. |
| int|null | $decimals | Number of decimal places used for rounding of measured values. |
| float|null | $resolution | Sensor resolution |
fromApiResponse(array{properties?: string[], range?: array{from?: float, to?: float}, decimalPlaces?: int, resolution?: float} $response) : \Iqrf\Repository\Entities\Metadata\SensorData
Parses the provided response data into a SensorData object
| array{properties?: string[], range?: array{from?: float, to?: float}, decimalPlaces?: int, resolution?: float} | $response | API response body |
The parsed SensorData object
jsonSerialize() : array{properties?: string[], range?: array{from?: float, to?: float}, decimalPlaces?: int, resolution?: float}
Serializes ActionRecord entity into JSON
JSON-serialized ActionRecord entity