com.ibm.wiotp.sdk.devicemgmt

Class DeviceData



  • public class DeviceData
    extends Object

    DeviceData defines the device model.

    The device model describes the metadata and management characteristics of a device. The device database in the Watson IoT Platform is the master source of device information. Applications and managed devices are able to send updates to the database such as a location or the progress of a firmware update. Once these updates are received by the Watson IoT Platform, the device database is updated, making the information available to applications.

    • Method Detail

      • getTypeId

        public String getTypeId()
        Returns the Device type
        Returns:
        returns the typeID
      • getDeviceId

        public String getDeviceId()
        Returns the Device ID
        Returns:
        returns the device ID
      • getDeviceInfo

        public DeviceInfo getDeviceInfo()
        Returns the DeviceInfo object
        Returns:
        DeviceInfo returns the deviceinfo object
      • getDeviceLocation

        public DeviceLocation getDeviceLocation()
        Return the DeviceLocation object
        Returns:
        DeviceLocation returns location of the device
      • getDeviceFirmware

        public DeviceFirmware getDeviceFirmware()
        Returns the DeviceFirmware object
        Returns:
        DeviceFirmware returns the device firmware object
      • getDeviceAction

        public DeviceAction getDeviceAction()
        Returns the device action object
        Returns:
        DeviceAction object or null
      • getCustomAction

        public CustomAction getCustomAction()
        Returns the custom action object
        Returns:
        CustomAction object or null
      • setTypeId

        public void setTypeId(String typeId)
        Set the Device-Type
        Parameters:
        typeId - Device Type to be set
      • setDeviceId

        public void setDeviceId(String deviceId)
        Set Device-ID
        Parameters:
        deviceId - DeviceID to be set
      • getResource

        public Resource getResource(String name)
        Returns the Resource for the given name
        Parameters:
        name - - the name of the resource to be returned
        Returns:
        Resource or null
      • getMetadata

        public DeviceMetadata getMetadata()
        Returns the metadata
        Returns:
        the metadata

Copyright © 2019. All rights reserved.