Skip to content

Commit aec5b2f

Browse files
Version 1.0.0 (#1)
- Initial version --------- Co-authored-by: Roy Gollub <roy.gollub@sick.de> Co-authored-by: golluroSICKAG <45095769+golluroSICKAG@users.noreply.github.com>
1 parent 70de858 commit aec5b2f

19 files changed

Lines changed: 7107 additions & 710 deletions

CHANGELOG.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## Release 0.1.0
4+
## Release 1.0.0
55
- Initial commit
6-
7-
### New features
8-
- ...
9-
10-
### Improvements
11-
- ...
12-
13-
### Bugfix
14-
- ...

CSK_Module_MultiTCPIPServer/pages/pages/CSK_Module_MultiTCPIPServer/CSK_Module_MultiTCPIPServer.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
margin: 6px;
66
}
77

8-
.myCustomCssClass_CSK_Module_MultiTCPIPServer {
8+
.myCustomMarginTop_CSK_Module_MultiTCPIPServer {
9+
margin-top: 1.5rem
10+
}
11+
12+
.myCustomMinHeight200px_CSK_Module_MultiTCPIPServer {
13+
min-height: 200px;
914
}

CSK_Module_MultiTCPIPServer/pages/pages/CSK_Module_MultiTCPIPServer/CSK_Module_MultiTCPIPServer.html

Lines changed: 816 additions & 99 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
export function convertToList(value) {
22
return JSON.parse(value)
3-
}
3+
}
4+
5+
export function bool2str(newbool){
6+
var myString: string = String(newbool);
7+
return myString
8+
}
9+
10+
export function num2str(newnum){
11+
return String(newnum)
12+
}
13+
14+
export function str2num(newstr){
15+
return Number(newstr)
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
document.addEventListener('sopasjs-ready', () => {
2+
setTimeout(() => {
3+
document.title = 'CSK_Module_MultiTCPIPServer'
4+
}, 500);
5+
})

CSK_Module_MultiTCPIPServer/project.mf.xml

Lines changed: 457 additions & 44 deletions
Large diffs are not rendered by default.

CSK_Module_MultiTCPIPServer/scripts/CSK_Module_MultiTCPIPServer.lua

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
-- If app property "LuaLoadAllEngineAPI" is FALSE, use this to load and check for required APIs
3232
-- This can improve performance of garbage collection
3333

34-
-- _G.availableAPIs = require('Communication/MultiTCPIPServer/helper/checkAPIs') -- can be used to adjust function scope of the module related on available APIs of the device
34+
_G.availableAPIs = require('Communication/MultiTCPIPServer/helper/checkAPIs') -- can be used to adjust function scope of the module related on available APIs of the device
3535
-----------------------------------------------------------
3636
-- Logger
3737
_G.logger = Log.SharedLogger.create('ModuleLogger')
@@ -60,31 +60,6 @@ multiTCPIPServerController.setMultiTCPIPServer_Instances_Handle(multiTCPIPServer
6060
--**********************Start Function Scope *******************************
6161
--**************************************************************************
6262

63-
--[[
64-
--- Function to show how this module could be used
65-
local function startProcessing()
66-
67-
CSK_MultiTCPIPServer.setSelectedInstance(1) --> select instance of module
68-
CSK_MultiTCPIPServer.doSomething() --> preparation
69-
70-
-- Option A --> prepare an event to trigger processing via this one
71-
--Script.serveEvent("CSK_MultiTCPIPServer.OnNewTestEvent", "MultiTCPIPServer_OnNewTestEvent") --> Create event to listen to and process forwarded object
72-
--CSK_MultiTCPIPServer.setRegisterEvent('CSK_MultiTCPIPServer.OnNewTestEvent') --> Register processing to the event
73-
74-
--Script.notifyEvent('OnNewTestEvent', data)
75-
76-
-- Option B --> trigger processing via function call
77-
local result = CSK_MultiTCPIPServer.processSomething(data)
78-
79-
end
80-
end
81-
82-
-- Call processing function after persistent data was loaded
83-
--Script.register("CSK_MultiTCPIPServer.OnDataLoadedOnReboot", startProcessing)
84-
]]
85-
86-
--OR
87-
8863
--- Function to react on startup event of the app
8964
local function main()
9065

@@ -99,7 +74,6 @@ local function main()
9974
-- Can be used e.g. like this
10075
----------------------------------------------------------------------------------------
10176

102-
--startProcessing() --> see above
10377
CSK_MultiTCPIPServer.pageCalled() -- Update UI
10478

10579
end

0 commit comments

Comments
 (0)