Closed thcu-gp closed 8 years ago
ARM Internal Ref: ONME-2237
Thanks for your report. We will look into this.
cc @mlnx
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.
This has been been fixed on this commit: https://github.com/ARMmbed/mbed-client/commit/56b0a6586046ce057acef2ba9f8574973facc9cd
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