sensord: fix the problem that attribute is not restored properly 86/89186/1
authorkibak.yoon <kibak.yoon@samsung.com>
Wed, 31 Aug 2016 02:45:10 +0000 (11:45 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 22 Sep 2016 13:08:20 +0000 (22:08 +0900)
commitf3e4a49133ebf341100a9c6e9cd9de988c95718a
tree7e75a1d975e6f9bad901bdaf10de44b9631d9304
parent7caf886c98cbb1127aa8dbe8b9e68fe978340f6d
sensord: fix the problem that attribute is not restored properly

if command including "0", e.g., command is "-63, 23, 50, 0, 0, 0, 0", is
sent to sensord, just "-63, 23, 50" command is stored to cache.
because std::string recognize 4th character as NULL termination.
so value and value_len should be stored to cache.

Change-Id: Ib04afa1f9824a679b546ce9c284b91d389172a82
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/client/client.cpp
src/client/sensor_client_info.cpp
src/client/sensor_client_info.h
src/client/sensor_handle_info.cpp
src/client/sensor_handle_info.h