Skip to content

Conversation

@dariuszzbyrad
Copy link
Member

@dariuszzbyrad dariuszzbyrad commented Dec 30, 2024

This PR introduces a proposed API to support 1-Wire devices in the Pi4J library. The current state includes only the API definition, with implementation in the LinuxFS plugin and a mock version still pending.

New API

The API is available at the following location:
OneWireFileDataReaderWriter

Example Usage

An example demonstrating how to use this API with DS18B20 and DS2413 devices can be found here:
OneWireTest.java

Status

  • API definition
  • Implementation in the LinuxFS plugin
  • Create a mock implementation for testing purposes
  • Verify functionality with real devices.
  • Extend the documentation to cover the new API and its usage.

Next Steps

The PR is mostly complete, and I have tested it locally. However, merging it to the develop branch and performing further testing will only be possible after the release of version 2.7.1. Once that release is finalized, the next version can be set to 3.0.0-SNAPSHOT, allowing this PR to move forward.

@FDelporte @taartspi @eitch Feedback on the API design and usability is particularly welcome at this stage.

@dariuszzbyrad dariuszzbyrad changed the title DRAFT [DRAFT] Add Support for 1-Wire Protocol Dec 30, 2024
Copy link
Member

@eitch eitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API looks quite well and sure should implement a basic 1-wire api to use. I have no objections, thanks @dariuszzbyrad

@eitch eitch requested a review from FDelporte January 6, 2025 12:04
@FDelporte FDelporte mentioned this pull request Mar 28, 2025
4 tasks
# Conflicts:
#	pi4j-core/src/main/java/com/pi4j/io/IOType.java
#	plugins/pi4j-plugin-linuxfs/src/main/java/com/pi4j/plugin/linuxfs/LinuxFsPlugin.java
#	plugins/pi4j-plugin-linuxfs/src/main/java/module-info.java
@FDelporte
Copy link
Member

@dariuszzbyrad I updated this branch to fix conflicts with the develop branch. What is the status from your point of view? Can we merge this now into V3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants