$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) : 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. |
fromApiResponse(array{properties?: string[], range?: array{from?: float, to?: float}, decimalPlaces?: int} $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} | $response | API response body |
The parsed SensorData object
jsonSerialize() : array{properties?: string[], range?: array{from?: float, to?: float}, decimalPlaces?: int}
Serializes ActionRecord entity into JSON
JSON-serialized ActionRecord entity