Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / examples / OCWrapper / testClient.cpp
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6
7 #include <WrapperFactory.h>
8 #include <OCApi.h>
9 #include <IServerWrapper.h>
10 #include <IClientWrapper.h>
11
12 using namespace OC;
13
14 void testClient()
15 {
16         PlatformConfig cfg;
17     cfg.ipAddress = "192.168.1.5";
18     cfg.port = 8080;
19     cfg.mode = ModeType::Client;
20     cfg.serviceType = ServiceType::InProc;
21         
22         IWrapperFactory::Ptr pFactory = std::make_shared<WrapperFactory>();
23         IClientWrapper::Ptr pWrapper = pFactory->CreateClientWrapper(cfg);
24 }
25
26 int main()
27 {
28         testClient();
29 }