The available messages are built with one or more fields separated with blank spaces (
= blank space):
<TYPE> [PARAM1]
The first field (TYPE) defines the message type and then, the required parameters for it
(each kind of message requires a given number of parameters). The field
these values:
•
SYSTEM
•
GET
•
SET
•
INC
•
DEC
•
SUBSCRIBE
•
UNSUBSCRIBE
•
DATA
•
ERROR
At the end of this document you'll find all the available messages and their parameters
for each model of the EclerNet compatible devices.
The
SYSTEM, GET, SET, INC, DEC, SUBSCRIBE
sent from the client to the EclerNet device. The
from the device to the client. The only exception is the
SYSTEM
type message that is sent from the EclerNet device when the initial message
from the client to the device was
The communication (using UDP or RS-232) starts when a client sends the message
SYSTEM CONNECT
to the EclerNet device. As far as the UDP communication requires
no connection (unlike the TCP), the EclerNet device stores this client's IP address, and
then uses it as the destination IP address for the messages that it generates
ERROR). After receiving the
configuration using several consecutive
The communication can be terminated by two methods:
• Manually: when the client sends the
all the subscriptions and stopping the
• Automatically: in case the initial message was
and the client didn't get any
seconds (presuming a communication breakdown)
[PARAM2]
[PARAM3]
DATA
SYSTEM CONNECT
SYSTEM CONNECT
message, the device dumps its entire
DATA
messages.
SYSTEM DISCONNECT
DATA
SYSTEM PONG
23
[PARAM4][LF]
TYPE
&
UNSUBSCRIBE
messages can be
&
ERROR
messages can be sent
SYSTEM PING
message, that is a
PINGPONG.
message, cancelling
&
ERROR
messages
SYSTEM CONNECT PINGPONG
message in a period longer than 10
can have
(DATA
&