Attributes
UpsertAttributes
Lưu attributes với key, value vào thiết bị với id tương ứng
Thing(id: string).UpsertAttributes(attrs: {[key: string]: any}, {logged: boolean})
GetAttributesLatest
Lấy giá trị của các attributes với keys của thiết bị với id tương ứng, trả về entitiesList
GetAttributesLatest(req: {keys: string[], ids: string[], entityType: string})
Type
entitiesList
{
entitiesList: entity[];
}
entity
{
attributesList: attribute[];
entityId: string;
entityType: string;
}
attribute
{
key: string;
logged: boolean;
ts: number;
value: string | Uint8Array;
valueAsString: string;
valueType: string
}
Last updated