mkovatsc / Copper

Copper (Cu) CoAP user-agent (JavaScript implementation)

Home Page:http://people.inf.ethz.ch/mkovatsc/copper.php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no support for ipv6 link local adresses

Wuestenschiff opened this issue · comments

If I try to open an ipv6 link local adress i get an error
e.g.:
coap://[fe80::ba27:ebff:fef9:eea%profi]:5683/.well-known/core -> results in

the address wasn't understood

Firefox doesn't know how to open this address, because one of the following protocols () isn't associated with any program or is not allowed in this context.

    You might need to install other software to open this address.

if I try the same thing in with the californium helloWorld Client everything works fine:
java -jar cf-helloworld-client-1.0.0-SNAPSHOT.jar coap://[fe80::ba27:ebff:fef9:eea%profi]:5683/.well-known/core -> results in

Sep 03, 2015 2:50:58 PM org.eclipse.californium.core.network.config.NetworkConfig createStandardWithFile
INFO: Loading standard properties from file Californium.properties
Sep 03, 2015 2:50:58 PM org.eclipse.californium.core.network.CoAPEndpoint start
INFO: Starting endpoint at 0.0.0.0/0.0.0.0:0
Sep 03, 2015 2:50:58 PM org.eclipse.californium.core.network.EndpointManager createDefaultEndpoint
INFO: Created implicit default endpoint 0.0.0.0/0.0.0.0:40767
2.05
{"Content-Format":"application/link-format"}
</Button1>;title="Button1",</ultra1>;title="ultra1",</LEDred>;title="LEDred",</.well-known/core>

ADVANCED

==[ CoAP Response ]============================================
MID    : 35864
Token  : af939cde
Type   : ACK
Status : 2.05
Options: {"Content-Format":"application/link-format"}
Payload: 96 Bytes
---------------------------------------------------------------
</Button1>;title="Button1",</ultra1>;title="ultra1",</LEDred>;title="LEDred",</.well-known/core>
===============================================================

I assume the problem lies within firefox and not your project, but I could not find any bug related to this in the firefox project so I thought I file one here first.

I beleve Ipv6 is very important for an IoT project and hope there is an easy fix for this.

Sorry, nothing I can do about this from the add-on.
Best you configure proper addresses...