iCoAP icon indicating copy to clipboard operation
iCoAP copied to clipboard

Coap is not responding with file having special character in response.

Open mohitmangla2091 opened this issue 9 years ago • 4 comments

Hello Stuffrabbit,

I am having a file which is having a name with 2 or more special characters. When I send request JSON I don't get the proper response (response is nil).

Could you please give me some solution in this case?

mohitmangla2091 avatar Jun 13 '16 09:06 mohitmangla2091

Hi, sorry for the late answer. It is hard to tell what the exact problem might be. Does your server receive the request? Can you debug your server's answer? Have you tried to send the same message with help of my SwiftCoAP library? https://github.com/stuffrabbit/SwiftCoAP

stuffrabbit avatar Jun 21 '16 07:06 stuffrabbit

HI,

Yes, server receives the request and updates the name but it does not send the response (response is null). We are working on Objective-C so we cant switch to swift in this project. Can you please verify the problem and if you get something please let me know.

mohitmangla2091 avatar Jun 22 '16 08:06 mohitmangla2091

Hi, so are you sure that your server works correctly? It should generate a response in any case. And what special characters are we talking about, btw?

stuffrabbit avatar Jun 22 '16 08:06 stuffrabbit

Hello,

Any kind of special character more than 2 i.e. "!@#$%^&*()_+{}|":?><" . When we send 2 or more than 2 special characters in payload, coap writes it in its file system but when we ping coap to read the file it send the null response.

mohitmangla2091 avatar Jun 23 '16 05:06 mohitmangla2091