Fixed seg fault in simpleclient sample app (Bug IOT-130)
Fixed seg fault in simpleclient sample app (Bug IOT-130)

Arduino server sample uses light representation which is different
from what simpleclient expects. Updated simpleclient to catch
exception in this scenario.


Change-Id: I3d5d2e2f7785a9345655bc347662efb7fd0927a2
Signed-off-by: Sachin Agrawal <e527dde4abdf871552470c254efd4939572046d8@intel.com>
(cherry picked from commit 16aaed92f74fedf975a1631800200b8ffc526f7d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/216
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Sudarshan Prasad <18992b2df49d20c769d3f89a8cc0a9f38a9dccaa@intel.com>

kartben/iotivity,rzr/iotivity,kartben/iotivity,santais/iotivity,iotivity/iotivity,iotivity/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity,rzr/iotivity,santais/iotivity,santais/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,santais/iotivity_1.1,kartben/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,kartben/iotivity,kartben/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,rzr/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,kartben/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,iotivity/iotivity,kartben/iotivity,WojciechLuczkow/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,iotivity/iotivity,rzr/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity,santais/iotivity_1.1.0,iotivity/iotivity