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.

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

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