Git Product home page Git Product logo

Comments (2)

shomaglasang avatar shomaglasang commented on August 12, 2024

@NubeDev there's probably more than 1 tokens in the JSON body. The supported tokens can be specified in the config file instead of having them static.

Example:

bacnet_client:
 --
  tokens:
    - txn_source
    - txn_number

from driver-bacnet.

shomaglasang avatar shomaglasang commented on August 12, 2024

Sample results.
Read Request:

mqtt pub -h 104.219.42.42 -p 1883 -t bacnet/cmd/read_value -m '{"objectType":"0","objectInstance":"1","property":"85","deviceInstance":"5678","mac":"10.104.0.11:47900", "txn_source":"abcde", "txn_number":"123"}'

Read Reply:

bacnet/cmd_result/read_value/ai/1/pv: { "value" : "123.500000" , "deviceInstance" : "5678" , "mac" : "10.104.0.11:47900" , "txn_source" : "abcde", "txn_number" : "123"}

Write Request:

mqtt pub -h 104.219.42.42 -p 1883 -t bacnet/cmd/write_value -m '{"objectType":"0","objectInstance":"1","property":"85","deviceInstance":"5678","mac":"10.104.0.11:47900", "value":"123.50", "txn_source":"abcd","txn_number":"123"}'

Write Reply:

bacnet/cmd_result/write_value/ai/1/pv: { "value" : "123.50" , "deviceInstance" : "5678" , "mac" : "10.104.0.11:47900" , "txn_source" : "abcd", "txn_number" : "123"}

Whois Request:

mqtt pub -h 104.219.42.42 -p 1883 -t bacnet/cmd/whois -m '{"txn_source":"abcd","txn_number":"123"}'

Whos Reply:

bacnet/cmd_result/whois: { "value" : [  ], "txn_source" : "abcd", "txn_number" : "123" }

from driver-bacnet.

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.