Google Cloud IoT Core V1 Client - Class DeviceState (1.5.12)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class DeviceState.

The device state, as reported by the device.

Generated from protobuf message google.cloud.iot.v1.DeviceState

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ update_time
Google\Protobuf\Timestamp

[Output only] The time at which this state version was updated in Cloud IoT Core.

↳ binary_data
string

The device state data.

getUpdateTime

[Output only] The time at which this state version was updated in Cloud IoT Core.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

[Output only] The time at which this state version was updated in Cloud IoT Core.

Parameter
Name
Description
Returns
Type
Description
$this

getBinaryData

The device state data.

Returns
Type
Description
string

setBinaryData

The device state data.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: