Table 96. setvalue api command response – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 386

Advertising
background image

Section 8. Operation

386 

 

 

SetValueEx Response

The SetValueEx

format

parameter determines the format of the response.. If a

format is not specified, the format defaults to HTML For more detail concerning
data response formats, see the Data File Formats

section.

Responses contain two fields. In the XML output, the fields are attributes.

Table 96. SetValu

e API
Command
Response

outcome

0 — An unrecognized failure occurred
1 — Success
5 — Read only
6 — Invalid table name
7 — Invalid fieldname
8 — Invalid fieldname subscript
9 — Invalid field data type
10 — Datalogger communication failed
12 — Blocked by datalogger security
15 — Invalid web client authorization

description

A text description of the outcome code.

 

HTML Response

When

html

is entered in the SetValueEx

format

parameter, the response will be

HTML Following are example responses.

HTML tabular response:

HTML page source:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>SetValueExResponse</title>
</head>

<body>
<h1>SetValueExResponse</h1>

<table border="1">
<tr>
<td>outcome</td>
<td>outcome-code</td>
</tr>
<tr>
<td>description</td>
<td>description-text</td>

Advertising