$properties
$properties : array
SensorData metadata entity
$range : ?\Iqrf\Repository\Entities\Metadata\SensorRange
__construct(string[] $properties = [], \Iqrf\Repository\Entities\Metadata\SensorRange|null $range = 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. |
fromApiResponse(array{properties?: string[], range?: array{from?: float, to?: 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}} | $response | API response body |
The parsed SensorData object