Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ipcamera] Fix multiple parts handling for Dahua events #12964

Merged
merged 2 commits into from
Jun 23, 2022

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Jun 19, 2022

Sometimes the data received by channelRead contains multiple parts. This PR splits them up and processes all the parts.

Resolve #11391 - this issue was mentioned in #11391 (comment)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng force-pushed the ipcam-dahuaevents branch from 28034ce to 92c3e7a Compare June 19, 2022 13:43
@jimtng jimtng marked this pull request as ready for review June 19, 2022 13:44
@jimtng jimtng requested a review from Skinah as a code owner June 19, 2022 13:44
@jimtng jimtng changed the title [ipcamera] Fix multiple part handling for Dahua events [ipcamera] Fix multiple parts handling for Dahua events Jun 19, 2022
@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Jun 20, 2022
@lolodomo
Copy link
Contributor

lolodomo commented Jun 22, 2022

To have this fix included in 3.3, we would need your feedback and review quickly, @Skinah Of course if this is possible. If not, this will be for 3.4.

Copy link
Contributor

@Skinah Skinah left a comment

Choose a reason for hiding this comment

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

Yes the spelling error is in the firmware code and API documentation. I use copy paste heavily so it does not need to change.

Thanks for the suggested changes and I am a little hesitant rushing changes through for a stable build due to my lack of java experience. I can test the changes with multiple cameras tomorrow night, but after a quick look I think i am happy if the suggested change is accepted.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Copy link
Contributor

@Skinah Skinah left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the contribution, it will be a great change to have. @lolodomo I don't have merge rights so if your happy making these changes please do so and thanks for the mention.

Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM

@lolodomo lolodomo merged commit 075170e into openhab:main Jun 23, 2022
@lolodomo lolodomo added this to the 3.3 milestone Jun 23, 2022
@jimtng jimtng deleted the ipcam-dahuaevents branch June 23, 2022 23:00
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
* [ipcamera] Fix multiple part handling for Dahua events
* [ipcamera] Call processSettings only when data contains no boundary

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ipcamera] Add channel to show adv event and object detection data
3 participants