Code Monkey home page Code Monkey logo

decentralized-automation-networks_virtual-input-node's Introduction

Decentralized Automation Networks - Virtual Input Note

This is a Rust-based program that emulates an input node of an automation network. It will send out a message to a specific target every <interval> milliseconds.
The input node is tied to a specific automation/flow, by which the incoming message will be processed.
The input node accepts control commands on a specific UDP port. Right now this is used to specify a new target for the node (needed to transfer an automation), and to perform a UDP ping.

Usage

All options can either be specified as CLI args, or inside a yaml-based config file (take a look at the provided sample configuration).
Any option that has a default value can be omitted from the config file to allow setting it using a CLI arg during startup.

$ cargo run -- --help  
A simple application emulating a physical input node

Usage: decentralized-automation-networks_virtual-input-node.exe [OPTIONS]

Options:
  -a, --area <AREA>
          area name
  -f, --flow <FLOW>
          flow name
  -t, --target-ip <TARGET_IP>
          The initial target ip
  -p, --target-port <TARGET_PORT>
          The initial target port
  -o, --outbound-port-data <OUTBOUND_PORT_DATA>
          The outgoing port for sending data
      --outbound-port-acks <OUTBOUND_PORT_ACKS>
          The outgoing port for sending ACKs [default: 0]
  -i, --inbound-port <INBOUND_PORT>
          The incoming port
      --interval <INTERVAL>
          data interval (ms) [default: 1000]
      --inbound-poll-interval <INBOUND_POLL_INTERVAL>
          inbound poll interval (ms) [default: 10]
  -c, --config <CONFIG>
          config file
  -h, --help
          Print help
  -V, --version
          Print version

decentralized-automation-networks_virtual-input-node's People

Contributors

chaphasilor avatar

Watchers

 avatar

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.