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

How to use create_pull_point_subscription and pull_messages #107

Open
asuper0 opened this issue Aug 8, 2023 · 2 comments
Open

How to use create_pull_point_subscription and pull_messages #107

asuper0 opened this issue Aug 8, 2023 · 2 comments

Comments

@asuper0
Copy link
Contributor

asuper0 commented Aug 8, 2023

The method schema::event::create_pull_point_subscription() return a struct schema::event::CreatePullPointSubscriptionResponse

pub struct CreatePullPointSubscriptionResponse {
    // Endpoint reference of the subscription to be used for pulling the
    // messages.
    #[yaserde(prefix = "tev", rename = "SubscriptionReference")]
    pub subscription_reference: wsa::EndpointReferenceType,

    // Current time of the server for synchronization purposes.
    #[yaserde(prefix = "wsnt", rename = "CurrentTime")]
    pub current_time: wsnt::CurrentTime,

    // Date time when the PullPoint will be shut down without further pull
    // requests.
    #[yaserde(prefix = "wsnt", rename = "TerminationTime")]
    pub termination_time: wsnt::TerminationTime,
}

As described in the comment, the field is needed when pulling. However, arguments of schema::event::pull_messages() do not contain the subscription_reference.
I've tried to use create_pull_point_subscription(), it's OK. But when I use pull_messages(), the camera response 500 Internal Server Error.

@ozdoganoguzhan
Copy link
Contributor

Hi, I'm trying to do the same thing. Did you have any luck finding if it's possible?

@ozdoganoguzhan
Copy link
Contributor

I have created this PR: #108

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

No branches or pull requests

2 participants