C++ Agent toolkit - Pre-built binaries, visit: https://github.com/mtconnect/cppagent/releases Docker images available at https://hub.docker.com/repositories/mtconnect
For websockets you need to connect to the server and then send requests:
{
"id": "ABC",
"request": "probe"
}
The id
and request
are required.
I have added a few other properties to support the response document,format
and pretty
. format
can have a value of xml
or json
. The default format is xml
.
{
"id": "ABC",
"request": "probe",
"format": "json"
}
All the properties except request
and id
are the same as the properties you get from the swagger
interface. Make a request to /swagger
from the agent to find all the possible properties.
http://localhost:5000/swagger
When an interval is given for sample
or current
, they will publish. A request
of cancel
will stop a request.
Some examples:
{"id": 1,"request": "probe", "format": "json"}
{"id": 2,"request": "current"}
{"id": 3, "request": "sample", "interval": 1000, "format": "json"}
{"id": 4, "request": "current", "interval": 5000 }
{"id": 3, "request": "cancel"}
There is no additional protocol level header. The results are chunked per the websockets spec as individual messages.
Added support for initial value that sets the data item's observation whenever the device becomes available.
Validation = true
configurationquality
attribute in the observationsSee issue: MTConnect Projects Issue 3159
This release is mainly a bug fix release related to some behavior associated with changing uuids, dynamic updates to the device model. One other change is reducing the log level for the file search so the logs are not so noisy on startup.
* uuid
command handling in agent not as expected by @wsobel in https://github.com/mtconnect/cppagent/pull/426
debug
. Issue #417 by @wsobel in https://github.com/mtconnect/cppagent/pull/427
DataItem
in Devices.xml
file by @mnoomnoo in https://github.com/mtconnect/cppagent/pull/424
Full Changelog: https://github.com/mtconnect/cppagent/compare/v2.3.0.3...v2.3.0.4
deviceModel
and uuid
documentation for SHDR protocol.MqttWs = true
in agent.cfg for the MQTT adapter.Full Changelog: https://github.com/mtconnect/cppagent/compare/v2.3.0.2...v2.3.0.3
2.2.0.17 is mainly a bug fix release, along with updating urns in stylesheets to match the schema version.
styles/old
to .dockerignore
by @ottobolyos in https://github.com/mtconnect/cppagent/pull/376
CDATA
xml generation fix by @wsobel in https://github.com/mtconnect/cppagent/pull/401