Hello,

If you are using the below function to provide security database to your server:

FILE* server_fopen(const char *path, const char *mode)
{
    return fopen(SECURITY_DATABSE_FILE , mode);
}

 

Then, please replace the below with your existing code:

FILE* server_fopen(const char *path, const char *mode)
{
    if (0 == strcmp(path, OC_INTROSPECTION_FILE_NAME))
    {
        return fopen(INTROSPECTION_SWAGGER_FILE, mode);
    }
    else
    {
        return fopen(SECURITY_DATABSE_FILE , mode);
    }
}

 

here,

SECURITY_DATABSE_FILE = encrypted security database filename with path

INTROSPECTION_SWAGGER_FILE = Swagger json filename(containing introspection info) with path

 

I will try to find an appropriate section where this information can be merged.

 

- Thanks & Regards,

Mushfiqul Islam Antu

 

 

 

--------- Original Message ---------

Sender : Morrow, Joseph L <[email protected]>

Date : 2017-07-22 00:00 (GMT+6)

Title : [dev] Who can document how to use introspection on the wiki?

 

I’m just reviewing the 1.3-rel branch and saw that some samples apps return almost nothing useful in the introspection resource, while others return much more useful information.

Is it possible for someone to write a nice how-to for this and any other considerations and best known methods? I find this necessary since the IoTivity CSDK is creating an introspection resource whether apps utilize it or not.

Thanks,

Joey
_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

 


_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to