diff options
Diffstat (limited to 'resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp')
-rw-r--r-- | resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp b/resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp index 541329887..71d8d4675 100644 --- a/resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp +++ b/resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp @@ -495,6 +495,7 @@ int main(int argc, char* argv[]) } OC_LOG(DEBUG, TAG, "OCServer is starting..."); + if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK) { OC_LOG(ERROR, TAG, "OCStack init error"); |