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

Kuksa Client: Subscription not providing Updates for Array Types #26

Closed
wba2hi opened this issue May 7, 2024 · 0 comments · Fixed by #27
Closed

Kuksa Client: Subscription not providing Updates for Array Types #26

wba2hi opened this issue May 7, 2024 · 0 comments · Fixed by #27
Assignees

Comments

@wba2hi
Copy link
Contributor

wba2hi commented May 7, 2024

Based on this issue: eclipse-kuksa/kuksa-databroker#15

Run Databroker
docker run -it --rm ghcr.io/eclipse-kuksa/kuksa-databroker:main --port 55556

Run two Kuksa Clients:
docker run -it --rm --net=host ghcr.io/eclipse-kuksa/kuksa-python-sdk/kuksa-client:main grpc://192.168.5.2:55556

In Kuksa Client 1 - Subscribe to Vehicle.OBD

     ⢀⣤⣶⣾⣿⢸⣿⣿⣷⣶⣤⡀
    ⣴⣿⡿⠋⣿⣿   ⠈⠙⢿⣿⣦
   ⣾⣿⠋  ⣿⣿  ⣶⣿  ⠙⣿⣷
  ⣸⣿⠇   ⣿⣿⠠⣾⡿⠃   ⠸⣿⣇  ⣶ ⣠⡶⠂ ⣶  ⢰⡆ ⢰⡆⢀⣴⠖ ⢠⡶⠶⠶⡦   ⣰⣶⡀
  ⣿⣿    ⠿⢿⣷⣦⡀     ⣿⣿  ⣿⢾⣏   ⣿  ⢸⡇ ⢸⡷⣿⡁  ⠘⠷⠶⠶⣦  ⢠⡟⠘⣷
  ⢹⣿⡆   ⣿⣶⠈⢻⣿⡆   ⢰⣿⡏  ⠿ ⠙⠷⠄ ⠙⠷⠶⠟⠁ ⠸⠇⠈⠻⠦ ⠐⠷⠶⠶⠟ ⠠⠿⠁ ⠹⠧
   ⢿⣿⣄  ⣿⣿  ⠿⣿  ⣠⣿⡿
    ⠻⣿⣷⡄⣿⣿   ⢀⣠⣾⣿⠟    kuksa-client CLI
     ⠈⠛⠇⢿⣿⣿⣿⣿⡿⠿⠛⠁     0.4.2.post16+git.bfa9205d


Connecting to VSS server at 192.168.5.2 port 55556 using KUKSA GRPC protocol.
TLS will not be used.
INFO 2024-05-07 07:27:06,490 kuksa_client.grpc No Root CA present, it will not be possible to use a secure connection!
INFO 2024-05-07 07:27:06,490 kuksa_client.grpc.aio Establishing insecure channel
gRPC channel connected.
Test Client> subscribe Vehicle.OBD
{
    "subscriptionId": "91758c6c-d9b4-4a8b-9843-3cbc33338716"
}

In Kuksa Client 2 - Publish new Data for Vehicle.OBD.DTCList


     ⢀⣤⣶⣾⣿⢸⣿⣿⣷⣶⣤⡀
    ⣴⣿⡿⠋⣿⣿   ⠈⠙⢿⣿⣦
   ⣾⣿⠋  ⣿⣿  ⣶⣿  ⠙⣿⣷
  ⣸⣿⠇   ⣿⣿⠠⣾⡿⠃   ⠸⣿⣇  ⣶ ⣠⡶⠂ ⣶  ⢰⡆ ⢰⡆⢀⣴⠖ ⢠⡶⠶⠶⡦   ⣰⣶⡀
  ⣿⣿    ⠿⢿⣷⣦⡀     ⣿⣿  ⣿⢾⣏   ⣿  ⢸⡇ ⢸⡷⣿⡁  ⠘⠷⠶⠶⣦  ⢠⡟⠘⣷
  ⢹⣿⡆   ⣿⣶⠈⢻⣿⡆   ⢰⣿⡏  ⠿ ⠙⠷⠄ ⠙⠷⠶⠟⠁ ⠸⠇⠈⠻⠦ ⠐⠷⠶⠶⠟ ⠠⠿⠁ ⠹⠧
   ⢿⣿⣄  ⣿⣿  ⠿⣿  ⣠⣿⡿
    ⠻⣿⣷⡄⣿⣿   ⢀⣠⣾⣿⠟    kuksa-client CLI
     ⠈⠛⠇⢿⣿⣿⣿⣿⡿⠿⠛⠁     0.4.2.post16+git.bfa9205d


Connecting to VSS server at 192.168.5.2 port 55556 using KUKSA GRPC protocol.
TLS will not be used.
INFO 2024-05-07 07:26:44,516 kuksa_client.grpc No Root CA present, it will not be possible to use a secure connection!
INFO 2024-05-07 07:26:44,516 kuksa_client.grpc.aio Establishing insecure channel
gRPC channel connected.
Test Client> setValue Vehicle.OBD.DTCList 1,2,3,4,5
OK

In Kuksa Client 1 - Update not received - verify current value:

Test Client> getValue Vehicle.OBD.DTCList
{
    "path": "Vehicle.OBD.DTCList",
    "value": {
        "value": {
            "values": [
                "1",
                "2",
                "3",
                "4",
                "5"
            ]
        },
        "timestamp": "2024-05-07T07:28:33.104737+00:00"
    }
}
@wba2hi wba2hi self-assigned this May 7, 2024
wba2hi added a commit to boschglobal/kuksa-python-sdk that referenced this issue May 8, 2024
erikbosch pushed a commit that referenced this issue May 8, 2024
* Fix Subscription not providing Updates for Array Types

closes: #26
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 a pull request may close this issue.

1 participant