I have tried to reproduce this, and cannot. Below is my run of
simplecient on 0.9.2-RC3. You can see that state goes from false to
true, and that the variables are being changed on both sides.
-Erich
[ekeane1 at ekeane1-desk1 examples]$ ./simpleclient
---------------------------------------------------------------------
Usage : simpleclient <ObserveType>
ObserveType : 1 - Observe
ObserveType : 2 - ObserveAll
---------------------------------------------------------------------
<===Setting ObserveType to Observe and ConnectivityType to IP===>
Finding Resource...
Finding Resource for second time...
In foundResource
Found resource 7ed4e220-1461-4585-9ee6-f18c65893d05/a/light for the
first time on server with ID: 7ed4e220-1461-4585-9ee6-f18c65893d05
DISCOVERED Resource:
URI of the resource: /a/light
Host address of the resource: coap://134.134.161.69:59605
List of resource types:
core.light
core.brightlight
List of resource interfaces:
oic.if.baseline
oic.if.ll
Getting Light Representation...
0: listenCallback(): failed to create resource. clientResponse: 33
In foundResource
Found resource 7ed4e220-1461-4585-9ee6-f18c65893d05/a/light again!
Found another resource, ignoring
0: listenCallback(): failed to create resource. clientResponse: 33
GET request was successful
Resource URI: /a/light
state: false
power: 0
name: John's light
Putting light representation...
PUT request was successful
state: true
power: 15
name: John's light
Posting light representation...
POST request was successful
Uri of the created resource: /a/light1
Posting light representation...
POST request was successful
state: true
power: 55
name: John's light
On Mon, 2015-08-10 at 09:38 +0000, ??? wrote:
> Hi All,
>
>
>
> Recently I found some issues in RC3 branch, when there is a request of
> bool type's data between OIC Server and Client.
>
>
>
> For examle, I could not see any log changed in state value(which type
> is bool), even though there is a code about changing state value.
>
> (like m_state = false to m_state = true)
>
> The problem is occurred not only this simpleserver/simpleclient
> app, but also other sample app, such as roomserver/roomclient.
>
>
>
> To sum up the issue, Integer type's value is working well (I mean the
> Integer value is changed well), but bool type's value isn't.
>
> Also, I am not sure that other types of value (except integer
> type) would be working well or not.
>
>
>
>
>
> Thanks.
>
>
>
> Best Regards,
>
> Soyoung Youn.
>
>
>
>
>
>
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev