AbleCloud PHP SDK  1.8.x
PHP SDK of AbleCloud API
Public 成员函数 | 所有成员列表
ACDevice类 参考

Public 成员函数

 __construct ($deviceId, $physicalId, $name='', $ownerId=0, $aesKey='', $gatewayId=0, $subDomainId=0, $rootId=0, $status=0, $subDomain='')
 
 getId ()
 
 getPhysicalId ()
 
 getName ()
 
 getOwnerId ()
 
 getAesKey ()
 
 getGatewayId ()
 
 getSubDomainId ()
 
 getSubDomainName ()
 
 getRootId ()
 
 getStatus ()
 
 setUserIds ($userIds)
 
 getUserIds ()
 

详细描述

设备信息。

构造及析构函数说明

◆ __construct()

ACDevice::__construct (   $deviceId,
  $physicalId,
  $name = '',
  $ownerId = 0,
  $aesKey = '',
  $gatewayId = 0,
  $subDomainId = 0,
  $rootId = 0,
  $status = 0,
  $subDomain = '' 
)

构造函数。

参数
$deviceIdint 设备的逻辑ID。整数。
$physicalIdstring 设备的物理ID。字符串。
$namestring 设备的名字。
$ownerIdint 设备的管理员用户的ID。整数。
$aesKeystring 设备的AES密钥。字符串。
$gatewayIdint 设备所属的网关的设备逻辑ID。整数。
$subDomainIdint 设备所属的子域的ID。整数。
$rootIdint 整数,设备的RootId。
$statusint 整数,在线状态:0-不在线;1-在线。
$subDomainstring 字符串,是设备所属的子域的名字。

成员函数说明

◆ getAesKey()

ACDevice::getAesKey ( )

◆ getGatewayId()

ACDevice::getGatewayId ( )

◆ getId()

ACDevice::getId ( )

◆ getName()

ACDevice::getName ( )

◆ getOwnerId()

ACDevice::getOwnerId ( )

◆ getPhysicalId()

ACDevice::getPhysicalId ( )

◆ getRootId()

ACDevice::getRootId ( )

◆ getStatus()

ACDevice::getStatus ( )

◆ getSubDomainId()

ACDevice::getSubDomainId ( )

◆ getSubDomainName()

ACDevice::getSubDomainName ( )

◆ getUserIds()

ACDevice::getUserIds ( )

◆ setUserIds()

ACDevice::setUserIds (   $userIds)

该类的文档由以下文件生成: