com.ibm.wiotp.sdk.devicemgmt

Interface DeviceAction

  • All Known Implementing Classes:
    ConcreteDeviceAction


    public interface DeviceAction
    This class encapsulates the device action like reboot and factory reset.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  DeviceAction.Status
      Status of the DeviceAction when there is a failure,
    • Method Detail

      • setStatus

        void setStatus(DeviceAction.Status status)

        Set the failure status of the current device action
        The Device Action handler must use this method to report the failure status back to IBM Watson IoT Platform whenever there is a failure.

        Parameters:
        status - Failure status of the current device action
      • setStatus

        void setStatus(DeviceAction.Status status,
                       String message)

        Set the failure status of the current device action
        The Device Action handler must use this method to report the failure status back to IBM Watson IoT Platform whenever there is a failure.

        Parameters:
        status - Failure status of the current device action
        message - Failure message to be reported
      • getTypeId

        String getTypeId()
      • getDeviceId

        String getDeviceId()
      • setMessage

        void setMessage(String message)

Copyright © 2019. All rights reserved.