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

Server datastreams with explicit timestamp transmitted with no timestamp #938

Open
sorru94 opened this issue May 8, 2024 · 1 comment
Open
Labels
API This issue or pull request is about API (e.g. unclear API, new API, API change, deprecation) app:appengine_api This issue or pull request is about astarte_appengine_api application discussion This issue needs to be investigated/discussed (it might be already fixed, invalid or duplicated) user experience This issue is about user experience

Comments

@sorru94
Copy link
Contributor

sorru94 commented May 8, 2024

Server-owned datastreams are transmitted to devices with no timestamp in the BSON file even when the explicit_timestamp is set in the interface definition.

Replicate transmitting a boolean type using CURL:

        curl -v -X PUT -H "Accept: application/json" -H "Content-Type: application/json" \
        -H "Authorization: Bearer $APPENGINE_TOKEN" \
        https://$APPENGINE_URL/v1/$REALM/devices/$DEVICE_ID/interfaces/$INTERFACE/boolean_endpoint \
        --data '{"data" :true}'

The received BSON is the following:

09 00 00 00 08 76 00 00 00

Which in human readable form is:

{ "v": false }

Interface definition to use to replicate this issue: datastream_individual_interface.json

Tested with Astarte v1.1.1.

@Annopaolo
Copy link
Collaborator

See also #785 (TL;DR: does explicit_timestamp make sense on server-owned interfaces, as AppEngine API do not provide a way to set it?)

@Annopaolo Annopaolo added discussion This issue needs to be investigated/discussed (it might be already fixed, invalid or duplicated) user experience This issue is about user experience API This issue or pull request is about API (e.g. unclear API, new API, API change, deprecation) app:appengine_api This issue or pull request is about astarte_appengine_api application labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API This issue or pull request is about API (e.g. unclear API, new API, API change, deprecation) app:appengine_api This issue or pull request is about astarte_appengine_api application discussion This issue needs to be investigated/discussed (it might be already fixed, invalid or duplicated) user experience This issue is about user experience
Projects
Status: No status
Development

No branches or pull requests

2 participants