Some more testing
Added basics for schedule
Can now start server with port as input.
Server start listener and schedule_worker.
Schedule_worker is now functioning properly
Still need to implement main feature.
Some small code changes 
Picture for the flow_chart
Test client
Works with the server, Input is i.e. (ip/host, port, DATA) where
data is a colon separated list of units i.e. "testID1:testID2".
The client will then send mockupdata to the server for each unit each
10sec.
Can now handle binary data
Registers the process id for each process as Atom.
Fixed a small bug
Fixed a small bug
The client now successfully send every 10sec
Fixed the loop 
Now send message every 5minutes insted of inf messages after 5 min.
Fixed the link to the ODBC unit
The listener now correctly handles multiple messages on each socket.
The client now works but it has a serious memory leak.
Might have been corrected with the catch all safeguard in the loop.
I hope the server now works as it should.
Safe guard in loop to prevent memory leak from unhandled messages.
Removed unused code.
Trying to fix the randomizer.
Something wrong with the states and such.
Added catch all case in receive.
The client should now be able to send random data.
But it crashes when trying to generate random numbers for some reason,
the same method is used elsewhere and works why not here.