Hi. All,
I have a question on IoTivity v0.9.0.
Iotivity devices can not find Arduino due with wifi shield device.
I developed Arduino due firmware based on <ocserver.cpp>.
(.//resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/ocserver.cpp)
I chcked Arduino due is connected properly and its IP address is
192.168.0.6.
I sent a 'find resource message' from other IoTivity devices and I found
that Arduino due receives this message.
The function that I used...
OCPlatform::findResource("", "coap://192.168.0.6/oc/core?rt=core.light",
onFoundResource);
Below is the logs from Arduino due.
INFO: OCStack: Entering OCProcess
INFO: OCStack: Entering RequestPresence
INFO: OCCoAP: Entering OCProcessCoAP
DEBUG: ocsocket: OCRecvFrom Begin
DEBUG: ocsocket: OCRecvFrom Begin
INFO: OCCoAP: read = 32 // I added this log
INFO: OCCoAP: This is a Multicast<===========
INFO: OCCoAP: call dispatch // I added this log
INFO: OCCoAP: call handlesendqueue // I added this log
But, other IoTivity device couldn't find Arduino due. Below texts are
initializing logs from Arduino due. I think that initializing OC stack and
creating resource procedures are finished successfully.
I can't figure out the problem.
INFO: Arduino: Start arduino firmware
DEBUG: Arduino: Connected to wifi
INFO: Arduino: IP Address: 192.168.0.6
INFO: Arduino: GW Address: 192.168.0.1
INFO: Arduino: SN Address: 255.255.255.0
INFO: OCStack: Entering OCInit
INFO: OCStack: Server mode
INFO: OCCoAP: Entering OCInitCoAP
DEBUG: ocsocket: OCInitUDP Begin
DEBUG: ocsocket: OCInitUDP End
DEBUG: ocsocket: OCInitUDP Begin
DEBUG: ocsocket: OCInitUDP End
INFO: OCStack: Entering OCCreateResource
INFO: OCStack: Entering BindResourceTypeToResource
INFO: OCStack: Entering BindResourceInterfaceToResource
INFO: Arduino: Created DHT resource with result: OC_STACK_OK
Firstly, I wonder arduino due and wifi shield can work with IoTivity v0.9.0.
If it can, I wonder why other IoTivity devices can't receive response or
why Arduino due doesn't send a response.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150703/c632f6b7/attachment.html>