This is an issue I'd fixed before actually...  the problem was in the
CSDK stack.  The issue was the logic being used AFTER the 'comma' when a
resource was filtered out.  YOu can see in the payload that there is a
trailing comma, implying another object is coming.  This confuses the
parser.

There was a JIRA ticket for it that I was assigned (perhaps 6 weeks ago
or so?) and managed to fix it.  However, I cannot seem to find it!


Jake: It seems that this is the 0.9.1 or so release, right?  It is a bug
that is fixed in newer versions of the code.  Also, the 0.9.2 branch
gets rid of the JSON entirely, so it will not have this problem either.

Thanks,
Erich




On Mon, 2015-07-20 at 14:21 +0000, Lankswert, Patrick wrote:
> Jake,
> 
>  
> 
> Hi!
> 
>  
> 
> Can you confirm that the problem exists using the stack API? This
> would help to determine if this is in the core framework or the Things
> Manager layers.
> 
>  
> 
> Pat
> 
>  
> 
> From: iotivity-dev-bounces at lists.iotivity.org
> [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of ???
> Sent: Saturday, July 18, 2015 3:18 PM
> To: iotivity-dev at lists.iotivity.org
> Subject: [dev] Two resources on one arduino device make problem
> 
> 
>  
> 
> Hello, guys. I have a question.
> 
>  
> 
> 1. Can I make two or more resources on one arduino mega 2560 board?
> 
>  
> 
> I tested it just now.
> 
> I made two resource on arduino. 
> 
>  
> 
> Resource 1:
> 
> Type: fire.sensor
> 
> URI: /sensor/gas
> 
>  
> 
> Resource 2: 
> 
> Type: fire.sensor
> 
> URI: /sensor/temperature
> 
>  
> 
> And then, my linux client tried to find resources using
> findCandidateResource function in ThingsManager class.
> 
> But client couldn't find resources. It just print this error message.
> 
>  
> 
> 0: listenCallback failed to parse a malformed message: rapidjson
> internal assertion failure: IsObject()
> 
>  
> 
> 0:
> {"oc":[{"href":"/sensor/gas","sid":"bf078bb6-3ce5-ed31-4c84-9c8a89755f29","prop":{"rt":["fire.sensor"],"if":["oic.if.baseline"],"obs":1}},]}
> 
>  
> 
> 0: 0
> 
>  
> 
> 
> What is the cause of this error?
> 
> 
>  
> 
> Samsung S/W Membership Software Developer
> Sungkyunkwan Univ. Computer Engineering 08
> B.E.S.T. House Team & Side Of House 
> Jake Kim
> 
> 
> 
> 
> 
> 
>  
> 
> 
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to