Skip to content

Server updates#17

Open
rgallor wants to merge 4 commits intoastarte-platform:masterfrom
rgallor:feat/server-updates
Open

Server updates#17
rgallor wants to merge 4 commits intoastarte-platform:masterfrom
rgallor:feat/server-updates

Conversation

@rgallor
Copy link
Copy Markdown
Collaborator

@rgallor rgallor commented Nov 27, 2024

Give the possibility to pause/resume the stream and change the math function, the scale and the interval between 2 samples by handling server-owned datastream data.

Closes #4

@rgallor rgallor force-pushed the feat/server-updates branch from 350eacc to 08a76c4 Compare November 27, 2024 11:34
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 51 lines in your changes missing coverage. Please review.

Project coverage is 0.0%. Comparing base (7db1595) to head (3630da0).

Files with missing lines Patch % Lines
src/config.rs 0.0% 27 Missing ⚠️
src/math.rs 0.0% 12 Missing ⚠️
src/shutdown.rs 0.0% 8 Missing ⚠️
src/lib.rs 0.0% 4 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
src/astarte.rs 0.0% <ø> (-8.8%) ⬇️
src/lib.rs 0.0% <0.0%> (ø)
src/shutdown.rs 0.0% <0.0%> (ø)
src/math.rs 0.0% <0.0%> (ø)
src/config.rs 0.0% <0.0%> (ø)

@rgallor rgallor marked this pull request as draft November 29, 2024 09:27
@rgallor rgallor force-pushed the feat/server-updates branch 2 times, most recently from 396cda2 to 6d4e15c Compare November 29, 2024 15:21
@rgallor rgallor marked this pull request as ready for review November 29, 2024 15:22
@rgallor rgallor requested review from harlem88, joshuachp and lucaato and removed request for joshuachp November 29, 2024 15:22
@rgallor
Copy link
Copy Markdown
Collaborator Author

rgallor commented Nov 29, 2024

At the moment the org.astarte-platform.genericsensors.Values interface has a major version 1 and minor 0. Instead, the org.astarte-platform.genericcommands.ServerCommands has major 0 and minor 2. I'm writing it down here to remember changing the version before merging this PR into master

@rgallor rgallor force-pushed the feat/server-updates branch 2 times, most recently from fef4f87 to 0bb15d6 Compare December 2, 2024 11:55
@rgallor rgallor force-pushed the feat/server-updates branch 2 times, most recently from b6532e5 to 3630da0 Compare December 3, 2024 14:52
rgallor added 4 commits May 12, 2025 17:31
Update the math function, the scale and the interval between two samples
through a server-owned datastream interface

Signed-off-by: Riccardo Gallo <riccardo.gallo@secomind.com>
Signed-off-by: Riccardo Gallo <riccardo.gallo@secomind.com>
Now when the stream is paused/resumed the select! macro will not
continue looping at every sleep timeout, but it simply disables the
branch meant to send data to Astarte

Signed-off-by: Riccardo Gallo <riccardo.gallo@secomind.com>
Signed-off-by: Riccardo Gallo <riccardo.gallo@secomind.com>
@rgallor rgallor force-pushed the feat/server-updates branch from 3630da0 to d527652 Compare May 12, 2025 15:33
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.

Support server commands to pause/resume and change streaming parameters

2 participants