Overview

This section describes how to use the TR50 response handling APIs available to parse TR50 response messages from the deviceWISE Cloud. The API groups and API functions are listed below. For more information on generic and specific usage of these APIs, refer to the section on TR50 Response Handling. All response objects described below extend the base response functions described in the DwOpenGenericResponseclass.


TR50 Alarm

Supported Response Object(s): DwOpenResponse, StringReply, DwOpenAlarmHistory

Class DwOpenAlarmHistory

Constructors

Constructor and Description
DwOpenAlarmHistory() 

Methods

Modifier and Type Method and Description
java.lang.String[] getMessages() 
int[] getStates() 
java.lang.String[] getTimestamps() 
java.util.ArrayList<DwOpenAlarmHistory.values> getValues() 
void setMessages(java.lang.String[] messages) 
void setStates(int[] states) 
void setTimestamps(java.lang.String[] timestamps) 
void setValues(java.util.ArrayList<DwOpenAlarmHistory.values> values) 

TR50 Property

Supported response object(s): DwOpenResponseStringReply, DwOpenPropertyCurrent

Class DwOpenPropertyCurrent

Constructors

Constructor and Description
DwOpenPropertyCurrent() 

Methods

Modifier and Type Method and Description
java.lang.String getCorrId() 
java.lang.String getKey() 
java.lang.String getTs() 
double getValue() 
void setCorrId(java.lang.String corrId) 
void setKey(java.lang.String key) 
void setTs(java.lang.String timestamp) 
void setValue(double value) 

TR50 Location

Supported response object(s): DwOpenResponseStringReply


TR50 Log

Supported response object(s): DwOpenResponseStringReply


TR50 Thing

Supported response object(s): DwOpenResponseStringReplyDwOpenThingAttributeGet

Class DwOpenThingAttributeGet 

Constructors

Constructor and Description
DwOpenThingAttributeGet() 

Methods

Modifier and Type Method and Description
java.lang.String getTs() 
java.lang.String getValue() 
void setTs(java.lang.String ts) 
void setValue(java.lang.String value) 

TR50 Mailbox

Supported response object(s): DwOpenResponseStringReply, DwOpenMailBoxSend

Class DwOpenMailboxSend

Constructors

Constructor and Description
DwOpenMailboxSend() 

Methods

Modifier and Type Method and Description
java.util.LinkedHashMap<java.lang.String,java.lang.Object> getParams()
void setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

TR50 Method

Supported response object(s): DwOpenResponseStringReply, DwOpenMethodExec

Class DwOpenMethodExec

Constructors

Constructor and Description
DwOpenMethodExec() 

Methods

Modifier and Type Method and Description
java.util.LinkedHashMap<java.lang.String,java.lang.Object> getParams() 
void setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)