Skip to content

About the function to delete and recreate OCF Device programmatically #589

@Askidea

Description

@Askidea

@jkralik @Danielius1922

I'm trying to integrate bridge functionality into iotivity-lite. However, the latest library does not seem to support the ability to dynamically delete and recreate OCF Devices.

As an example, I created an 5 devices, or OCF Client, OCF Bridge and three VODs (Virtual OCF Device) in one android app. Then, when I deleted VOD#1 and tried to create it again, an error occurred and the app crashed.
When I looked at the files/credentials directory of the app package with Android Studio's Device Explorer, I confirmed that u_ids_0~4 (also ael, cred, pstat, ... etc) were created. VOD#1 corresponds to u_ids_2.

In the case of ZigBee VOD, VOD must be dynamically created or deleted during the process of connecting and resetting the ZigBee device. Of course, it is required to manage the VOD index well, but first, I wonder if there will be any problems when dynamically deleting and re-creating the OCF Device (or VOD) in the latest iotivity-lite library.

Can anyone answer this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions