@iotile/iotile-device
Version:
A typescript library for interfacing with IOTile BLE devices
21 lines (20 loc) • 783 B
TypeScript
import { SignedListReport } from "./iotile-reports";
/**
* A class that can merge two signed list reports into one. This
* is used to create a combined report from a separate user and system
* report before uploading to iotile.cloud. This class attempts to
* check as best it can that the reports are valid and both a user
* and system report before merging them.
*/
export declare class SignedListReportMerger {
mergeReports(user: SignedListReport, system: SignedListReport): SignedListReport;
private checkReportsForMerging;
private insertMergedHeader;
/**
* Merge two reports together, keeping all of their readings in order.
*/
private mergeReadings;
private pickNextReading;
private insertReading;
private insertMergedFooter;
}