How to use the azure-iot-provisioning-device.PollingStateMachine function in azure-iot-provisioning-device

To help you get started, we’ve selected a few azure-iot-provisioning-device examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-iot-sdk-node / provisioning / transport / http / src / http_transport.ts View on Github external
constructor(idScope: number, httpBase?: Base) {
    super();
    this._pollingHandlers = new HttpPollingHandlers(idScope, httpBase);
    this._stateMachine = new PollingStateMachine(this._pollingHandlers);

    this._stateMachine.on('operationStatus', (eventBody) => {
      this.emit('operationStatus', eventBody);
    });
  }