You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Sheela (JIRA)" <ji...@apache.org> on 2017/06/05 17:43:04 UTC

[jira] [Updated] (MYNEWT-742) OIC requires some manual steps to initialize

     [ https://issues.apache.org/jira/browse/MYNEWT-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sheela updated MYNEWT-742:
--------------------------
    Fix Version/s:     (was: v1_1_0_rel)

> OIC requires some manual steps to initialize
> --------------------------------------------
>
>                 Key: MYNEWT-742
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-742
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>            Reporter: Christopher Collins
>            Assignee: Christopher Collins
>
> E.g.,
> {noformat}
> static const oc_handler_t omgr_oc_handler = {
>     .init = omgr_app_init,
> };
> int
> main(int argc, char **argv)
> {
>     /* ... */
>     oc_main_init((oc_handler_t *)&omgr_oc_handler);
>     oc_ble_coap_gatt_srv_init();
> }
> {noformat}
> If possible, it would be good if these calls happened automatically when the OS starts.  Unfortunately, the user will still need to configure the library with an oc_handler.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)