Hi,
What scons command line options did you use to build for Arduino?  Make sure 
that you do NOT specify

RELEASE=no

Is the server reset only happening when the client does an OBSERVE?  Do you get 
resets if you only do GET or PUT?

--Doug

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of ???
Sent: Sunday, July 26, 2015 1:02 PM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] When observing two resources on one arduino device makes problem


Hello, guys. I have a question.



I made two resource on arduino.



ver. iotivity 0.9.1

Resource 1:

Type: "fire.sensor.temperature"

URI: "/fire/sensor/temperature"



Resource 2:

Type: "fire.sensor.gas"

URI: "/fire/sensor/gas"



And then, my linux client tried to observe those resources.

It successfully found those resources.

But after registered the resources, the arduino board was reset.



This is log messages from arduino board.



1.   INFO: ArduinoServer: Created Gas resource with result: OC_STACK_OK

2.   INFO: ArduinoServer: Created Temperature resource with result: OC_STA

3.   INFO: ArduinoServer: Flag includes OC_REQUEST_FLAG

4.   INFO: ArduinoServer: GET CALLED IN arduino Gas entity!!!!!!!!!!!!!!!!

5.   INFO: ArduinoServer: Received OC_OBSERVE_REGISTER from client

6.   INFO: ArduinoServer: Flag includes OC_REQUEST_FLAG

7.   INFO: ArduinoServer: GET CALLED IN arduino Temperature entity!!!!!!!!

8.   INFO: ArduinoServer: o \0xf0\0xd8DEBUG: ArduinoServer: OCServer is 
starting...

9.   INFO: ArduinoServer: IP Address: 112.108.39.210

10. INFO: ArduinoServer: Created Gas resource with result: OC_STACK_OK



11. INFO: ArduinoServer: Created Temperature resource with result: OC_STA



As you can see at 1,2, Gas resource and Temperature resource was created.

And at 5, OC_OBSERVE_REGISTER method was received.

But after 8, arduino board was blown out and starts again.

After that, the board can't receive requests from client.



What is the cause of this error?



Samsung S/W Membership Software Developer

Hankuk Univ. of Foreign Studies Computer Engineering 11

Insub Im

[http://mail.naver.com/readReceipt/notify/?img=6l%2B5WreqW4vsp6pGWzk0hAJ4KoFCFzFCpAMrpxUqF4kopAuXaxp0FA3SFAMdpzigMX%2B0Moum74lR74lcWNFlbX30WLloWrdQar0T%2Bz0r1B3l7630%2BvIn1BFdbZlGWX3G%2B40dDLlTb4b%3D.gif]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150727/e56fc341/attachment.html>

Reply via email to