> On Jun 21, 2018, at 10:59 AM, marko kiiskila <[email protected]> wrote: > >> On Jun 21, 2018, at 2:19 AM, Jan Clement <[email protected]> >> wrote: >> >> Hello you All, >> >> at the moment I am stuck at connecting to the oic server via newtmgr over >> udp. the connection works fine with serial but ip is not. >> >> I added a connection with >> >> newtmgr conn add myudp5683 type=oic_udp connstring=[127.0.0.1]:5683 >> >> the port number is from the documentation, is it the correct one? And where >> could i change it? > > Make sure that you have syscfg knobs OC_TRANSPORT_IP and OC_TRANSPORT_IPV4 > turned on. > > 5683 is the right port. There’s a define in > net/oic/src/port/mynewt/ip4_adaptor.c, if you need to change it. > Making it adjustable with syscfg is ok, if you want to create a PR. >
BTW, here are profiles I’m using for communicating with the server over loopback interface. [marko@IsMyLaptop:~]$ newtmgr conn show v4_lo Connection profiles: v4_lo: type=oic_udp, connstring='[127.0.0.1]:5683' [marko@IsMyLaptop:~]$ newtmgr conn show v6_lo Connection profiles: v6_lo: type=oic_udp, connstring='[::1]:5683'
