[IOT-1482] fix getPlatformInfo and getDeviceInfo of C++-SDK sample app.