GithubHelp home page GithubHelp logo

Comments (1)

bburns avatar bburns commented on July 20, 2024

Oh, messages require an additional field. From https://github.com/mtconnect/cppagent#adapter-agent-protocol-version-17 -

The next special format is the Message. There is one additional field, native_code, which needs to be included: 2014-09-29T23:59:33.460470Z|message|CHG_INSRT|Change Inserts

For now I just did like so - in future we can try the DATA_SET representation -

  - key: dev_msg
    category: EVENT
    type: MESSAGE
    value: "Object.entries(<status-faults>).map(([id, fault]) => fault.description).join(', ')"
    nativeCode: NativeCode

Agent shows eg

<Message dataItemId="pa1-dev_msg" nativeCode="NativeCode" sequence="138" timestamp="2021-08-06T09:25:45.538Z">hard fault 1</Message>

For Agent debugging, the trace level includes the shdr inputs - https://github.com/mtconnect/cppagent#logger_config-configuration-items

logger_config {
   logging_level = trace
}

agent | 583479 TRACE [3] input.connector: (Port:53511) Received line: '2021-08-06T09:25:04.370Z|pa2-feed_message|NativeCode|printer service required, take up motor timeout, low ribbon'


I used ag to help debug it (like grep but colors matches) -

sh/start ccs-pa adapter broker play agent | ag message

from ladder99.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.