
Bit
Description
bit8
Optical signalisation is enabled inside the configuration (=1)
bit9
Acoustic is enabled inside the configuration (=1)
bit12
Enabled feature alarm on measurement error (=1)
Message response
Delivered messages to http(s) server needs to be confirmed by following
response:
{
<Result>,
<Message>
}
Parameter
Type
Range
Description
<Result>
BOOL
Response whether incoming message was
successfully processed by the server. In case
of server response is true, message is marked
as successfully sent and message is removed
from cache (if cache feature is not deactivated).
<Message>
STR
100B
length
Optional text message from server. This text
message can be shown at diagnostic log (text
message cannot contain character ").
Example the proper response:
HTTP/1.1 200 OK
Date: Thu, 02 Jul 2020 08:04:30 GMT
Content-length: 75
{
"Result":true,
"Message":"All is OK. Message was successfully processed."
}
JSON and XML via http server
Measured values can be obtained by HTTP GET requests sent to http server
running at WiFi sensor at TCP port 80. Values can be provided in XML or
JSON format via files values.xml and values.json. Feature is independent on
device security. From this reason is feature disabled by default. To be able
utilize this feature, it needs to be intentionally enabled at device setup. When
feature is disabled http error code 403 is returned. Python examples how to
get values via XML and JSON file are available at About / Library section of
webpages.
Responses to GET requests to files values.xml and values.json at port 80
are served by the http 1.0 server with single TCP socket capability. Response
time depends on WiFi signal strength and load of http server. Average