XML/ HTTP(s) protocol can be treated as file-based M2M API protocol, where the NETIO device is a HTTP(s) server and the client downloads or uploads one text file document in the xml format to control the NETIO power outputs (230V power sockets or IEC-320 power outlets 110/230V).
- If device support metering, the protocol also includes energy metering values.
- The XML protocol must be enabled first in the WEB configuration of the respective device. For details, see the “NETIO WEB configuration” chapter.
- This protocol is HTTP(s) based. If you want use different port than is used for device web configuration, you can enable and use the M2M HTTP(s) port
- Username and password to access the file is hidden in the HTML header. There can be different username & password for the read and write access.
- With write (netio.xml file upload by http post) the device send you back the current (updated) xml answer content in the same structure as the netio.xml file.
XML stands for eXtensible Markup Language. It is a language that uses tags in a defined structure. XML is designed for data files; primarily for data exchange among applications and for publishing documents, where it is used to describe the structure of the contents, separately from visual appearance.
Standard NETIO XML API
Download the Protocol description in PDF: NETIO XML API
AN20: XML HTTP(s) protocol to control NETIO smart power sockets 110/230V
The AN20 Application Note demonstrates how to control NETIO 4x smart sockets using the XML protocol. The XML protocol transfers a text file with a xml structure over http(s). NETIO devices contain built-in tools to easily test the protocol by the user. The XML protocol is supported by all NETIO 4x devices (NETIO 4 / 4All / 4C).