On quinta-feira, 14 de julho de 2016 15:03:22 PDT ??? wrote:
> I'm trying to implement android sample application and found an unexpected
> information from OcResource java object. (Upon a resource is found in a
> given network, I can get a corresponding OcResource object in my Android
> sample application) 
> OcResource has an "getHost()" API to get the found resource's address.
> However, it returns a tricky information like
> coap://[fe80::dafe:e3ff:fe00:ebfa%wlan0]:49593 
> Why is "wlan0" appended to IPv6 address? I tried this for IPv4 setting but I
> did not see such a string. 
> Is there any person who knows this happening?

Yes. That's an IPv6 scope ID, though the URL is invalid. The % is not 
permitted there, even under RFC 6874.

There's a bug in the getHost() function.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to