Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class IoTEnsembleStateContext
import { IoTEnsembleStateContext } from "https://deno.land/x/fathym_atomic_iot@v0.0.50/src/services/IoTEnsembleStateContext.ts";

Constructors

new
IoTEnsembleStateContext(
entLookup: string,
apiRoot: string,
stateRoot: string,
stateActionRoot: string,
env?: string,
usernameMock?: string,
)

Properties

protected
oldState: IoTEnsembleState

Methods

protected
defaultValue()
protected
diffState(reqState: any)
protected
gtagEvent(stateAction: string, eventArgs: any)
protected
loadStateKey(): string
protected
loadStateName(): string
protected
setupReceiveState(groupName: string)
ColdQuery(
startDate?: Date,
endDate?: Date,
pageSize?,
page?,
selectedDeviceIds?: string[],
includeEmulated?,
dataType?: ColdQueryDataTypes,
resultType?: ColdQueryResultTypes,
flatten?,
zip?,
): Promise<object>
IssueDeviceSASToken(deviceName: string, expiryInSeconds?): void
ListAllDeviceNames(childEntLookup: string, filter: string): Promise<object>
RevokeDeviceEnrollment(deviceId: string): void
SendDeviceMessage(deviceName: string, payload: IoTEnsembleTelemetryPayload): void
UpdateConnectedDevicesSync(page: number, pageSize: number)
UpdateTelemetrySync(
refreshRate: number,
page: number,
pageSize: number,
payloadId: string,
)
WarmQuery(
startDate?: Date,
endDate?: Date,
pageSize?,
page?,
selectedDeviceIds?: string[],
includeEmulated?,
): Promise<object>