Dear All,

I am very interested Iotivity Project.
So, i try test between Arduino Due and Anrdroid via BLE.
(example: SimpleClientServer)

Arduino environment:  Arduino Due + RedBearLab BLE Shield v2.1.
Android environment: Andorid 5.1

I have a question.

I registered two resources.
Example)

OCStackResult createLightResource() {
    Light.power = false;
    OCStackResult res = OCCreateResource(&Light.handle,
                    "core.light",
                    "core.rw",
                    "/a/light",
                    0,
                    OC_DISCOVERABLE|OC_OBSERVABLE);
    return res;
}

OCStackResult createSwitchResource() {
    Switch.state = false;
    OCStackResult res = OCCreateResource(&Switch.handle,
                    "core.switch",
                    "core.rw",
                    "/a/switch",
                    0,
                    OC_DISCOVERABLE|OC_OBSERVABLE);
    return res;
}

Step 1) Android begin discover "light resource" to arduino.
      ==> Connection success.
Step 2) Android requests "GET" to arduino.
      ==> Response success.
Step 3) Android requests "OBSERVE" to arduino.
      ==> Response success.
      ==> Run observe operation.
Step 4) Android begin discover "switch resource" to arduino.
      ==> Connection success.
      In this case, previous light observing is stopped.
      This operation is correct ?

As i know, light observing isn't stopped between android to android.
arduino why not ?

I need your help.

Best regards,
Roy Kang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160123/63eb1c8f/attachment.html>

Reply via email to