MTConnect agent response codec (PROTOCORE_ENABLE_MTCONNECT). More...
#include "protocore_config.h"Go to the source code of this file.
MTConnect agent response codec (PROTOCORE_ENABLE_MTCONNECT).
MTConnect (ANSI/MTC1.4) is the manufacturing-equipment read standard: an HTTP agent answers probe, current, sample, and asset requests with XML documents. This builds those response documents into a caller buffer, so the web server is an MTConnect agent over the existing HTTP stack:
A streams document is assembled incrementally: open it, add each observation, close it. The instanceId (an agent-boot id) + a monotonically increasing sequence number give a subscriber the from/count long-poll semantics. Pure text framing, zero heap, no stdlib, host-testable; values are XML-escaped.
Definition in file mtconnect.h.