Hello ,
I am trying to retrieve CSE with GET request from CoAP Client:
So I have set request ption(256, "admin:admin")); hoping this will set PrimitiveRequest FROM field
[/code]
request.getOptions()
.setContentFormat(MediaTypeRegistry.APPLICATION_XML)
.setAccept(MediaTypeRegistry.APPLICATION_XML)
.addOption(new Option(256, "admin:admin")); // FROM OPTION
But it seem its not setting because RequestPrimitive From is not called from below Code.
here is the Code in CoAPServer.java
switch (optionsList.get(i).getNumber()) {
case CoapOptions.ONEM2M_FR:
requestPrimitive.setFrom(optionsList.get(i).getStringValue());
break;
I have added a hard Coded line in code
requestPrimitive.setFrom("admin:admin");
Then its working able to retrieve CSE info.
Is there a bug fix done for this? I am using released version of OM2M code.
Thanks for the help.
Ashok