C8yMeasurement
public struct C8yMeasurement : Codable
Represents a collection of c8y measurements, refer to c8y API Reference Guide for more info
-
Undocumented
Declaration
Swift
public private(set) var id: String? { get } -
Undocumented
Declaration
Swift
public private(set) var source: String { get } -
Undocumented
Declaration
Swift
public private(set) var type: String? { get } -
Undocumented
Declaration
Swift
public private(set) var time: Date { get } -
Undocumented
Declaration
Swift
public private(set) var measurements: Dictionary<String, [MeasurementValue]>? { get } -
Creates a new measurement wrapper for a set of measurements for the associated
C8yManagedObjectDeclaration
Swift
public init(fromSource source: String, type: String) -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Adds a measurement value of the given type
Declaration
Swift
public mutating func addValues(_ values: [MeasurementValue], forType type: String)Parameters
forTypefree form text to categorise the given measurement values
-
A specific measurable value including a human readable label and unit of measure
See moreDeclaration
Swift
public struct MeasurementValue : Encodable
View on GitHub
C8yMeasurement Structure Reference