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

After delete specific subscription, How can i create subscription automatically without restarting OCB #32

Open
janaka1984 opened this issue Feb 15, 2019 · 0 comments

Comments

@janaka1984
Copy link

janaka1984 commented Feb 15, 2019

Hi,

We have a setup with Fiware Orion Service, OCB and OpenMTC.
In this setup, we register a device via OpenMTC.

After registering the device, it creates entity and subscription at the fiware service.

Now, we delete the subscription via

self._request(self.host + "/v2/subscriptions/" + subscription_id,
                      method='delete',
                      headers={"fiware-service": fiware_service},
                      raw=True)

But OpenMTC still keeps the containers in a temporary python set() in onem2m.py.
How can I delete the specific container from the set()?

If I restart OCB then the set() is cleared but that is not the solution I’m looking for.
I want to programmatically delete a container from the set().

Regards
Janaka

@janaka1984 janaka1984 changed the title After delete specific subscription, How can i create subscription automatically wihtout restarting OCB After delete specific subscription, How can i create subscription automatically without restarting OCB Feb 15, 2019
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

No branches or pull requests

1 participant