You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Christopher Collins (JIRA)" <ji...@apache.org> on 2017/11/14 21:26:00 UTC

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

    [ https://issues.apache.org/jira/browse/MYNEWT-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16252199#comment-16252199 ] 

Christopher Collins commented on MYNEWT-742:
--------------------------------------------

Relevant comment from Marko (made on corresponding PR - https://github.com/apache/mynewt-core/pull/288):

{quote}
I would hold off from this change for now.

The reason is that this would break the existing platforms where OIC runs over IP. When OIC initializes, it joins multicast groups on all existing interfaces. If interfaces come up later, they will not be enabled.

What we should have before this commit is merged is a way for net/oic to notice that interface state has changed (or periodically poll for new interfaces). At the moment we don't have this facility.
{quote}

> 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.4.14#64029)