Browse Source

Updated tutorials (#652)

* Fix Tutorial_client_firstSteps

Eddited client tutorial, basic client exmpale did not compile
- Changed dir sturcture to be sorted correctly
- Added include to basic client example
- Removed Logger_Stdout parameter from UA_Client_new
- Removed UA_ClientCOnnectionTCP from UA_Client_connect

* Fix client tutorial raw time example

* Added libs: "ua_config_standard.h", <inttypes.h>
* Removed parameters from calls: UA_Client_new, UA_Client_connect

* Update tutorial_client_firstSteps.rst

* Updated client tutorial

*Fix example 3
    *Remove logger header
    *Add config and inttypes header
    *Change parameters of client creation
*Unified space/tab usage, 2 spaces seemed predominant

* Update tutorial_server_firstSteps.rst

Unified space usage

* fix typo

* removed commented headers
Maikel van Vliet 8 years ago
parent
commit
097312f6aa

+ 0 - 3
doc/tutorial_client_firstSteps.rst

@@ -47,7 +47,6 @@ To create a really basic client, navigate back into the myApp folder from the pr
     
     #include "ua_types.h"
     #include "ua_server.h"
-    #include "logger_stdout.h"
     #include "networklayer_tcp.h"
     #include "ua_config_standard.h"
     
@@ -135,7 +134,6 @@ Let us extend the client with with an action reading node's value:
     
     #include "ua_types.h"
     #include "ua_server.h"
-    //#include "logger_stdout.h"
     #include "networklayer_tcp.h"
     #include "ua_config_standard.h"
     #include <inttypes.h>
@@ -190,7 +188,6 @@ As the last step for this tutorial, we are going to convert the raw date value i
     
     #include "ua_types.h"
     #include "ua_server.h"
-    //#include "logger_stdout.h"
     #include "networklayer_tcp.h"
     #include "ua_config_standard.h"
     #include <inttypes.h>

+ 1 - 1
doc/tutorial_noderelations.rst

@@ -219,7 +219,7 @@ Although it is possible to run the compiler this way, it is highly discouraged.
     ${PROJECT_SOURCE_DIR}/tools/schema/namespace0/${GENERATE_NAMESPACE0_FILE} 
     ${PROJECT_BINARY_DIR}/src_generated/ua_namespaceinit_generated
 
-Albeit a bit more complicates then the previous description, you can see that a the namespace 0 XML file is loaded in the line before the last, and that the output will be in ``ua_namespaceinit_generated.c/h``. In order to take advantage of the namespace compiler, we will simply append our nodeset to this call and have cmake care for the rest. Modify the CMakeLists.txt line above to contain the relative path to your own XML file like this::
+Albeit a bit more complicated then the previous description, you can see that a the namespace 0 XML file is loaded in the line before the last, and that the output will be in ``ua_namespaceinit_generated.c/h``. In order to take advantage of the namespace compiler, we will simply append our nodeset to this call and have cmake care for the rest. Modify the CMakeLists.txt line above to contain the relative path to your own XML file like this::
 
   COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/tools/pyUANamespace/generate_open62541CCode.py 
     -i ${PROJECT_SOURCE_DIR}/tools/pyUANamespace/NodeID_AssumeExternal.txt

+ 0 - 0
src/ua_types_encoding_binary.c