ARMmbed / mbed-client-example-6lowpan

DEPRECATED: Example demonstrating 6LoWPAN mesh networking
https://cloud.mbed.com/docs/current
Other
19 stars 13 forks source link

non conform ipv6 representation #45

Closed thcu-gp closed 8 years ago

thcu-gp commented 8 years ago

in file source/mbedclient.cpp the ipv6 address for the embed server is hard coded. The format is incorrect and confusing due to scheme/port mixing and the port/ipv6 colon mixing

current representation: coap://2607:f0d0:2601:52::20:5684

possible corrections coaps://[2607:f0d0:2601:52::20]:5684 coap://[2607:f0d0:2601:52::20]:5683

ciarmcom commented 8 years ago

ARM Internal Ref: ONME-2237

anttiylitokola commented 8 years ago

Thanks for your report. We will look into this.

MarceloSalazar commented 8 years ago

cc @mlnx

kmdewaal commented 8 years ago

This is documented in RFC3986 paragraph 3.2.2

A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]"). This is the only place where square bracket characters are allowed in the URI syntax.

MarceloSalazar commented 8 years ago

This has been been fixed on this commit: https://github.com/ARMmbed/mbed-client/commit/56b0a6586046ce057acef2ba9f8574973facc9cd