dbus-data-bridge

0

Описание

Получить данные по i2c и выложить их в dbus

Языки

  • C++98%
  • Meson2%
README.md

I2C DBus Interface

Description

This project provides an interface for interacting with devices via I2C and the file system, using DBus for notifications of value changes.

Features

  • Reading values from constant sources (
    ConstValue
    ).
  • Reading values from files (
    FileValue
    ).
  • Reading values from I2C devices (
    I2CValue
    ).
  • Notifying about value changes via DBus.

Installation

Dependencies

  • boost::asio
  • sdbusplus
  • nlohmann/json

Install the dependencies using your package manager or from source.

Compilation

To compile the project, use the following commands:

Configuration

The configuration file is located by default at /usr/share/i2c-dbus/config.json. You can change the path to the configuration file using the -c command-line argument. The schema for the configuration file is located in schema.json.

Usage Examples

Running with the default configuration file

Running with a specified configuration file

Running with a specified DBus service name

License

This project is distributed under the MIT License. See the LICENSE file for more details.

Contact

For questions and suggestions, contact us at mikl@greenfil.ru

Changes: - Added a sentence to mention that the schema for the configuration file is located in `schema.json`. - Added a usage example for the `-s` or `--service` command-line argument to specify the DBus service name.