NDMonitor.StartNewServer.PressureServer

class PressureServer(name_id)[source]

Bases: object

Desciption of a pressure server class

Methods

log_the_data

Log the data to a file

on_new_client

This function is called in a separate thread from start() function! Waits for incoming message from client and sends back pressure string.

start

Main functions of server: 1.

update_pressure_thread

start reading from device using driver file

Attributes

name_id

find out parameters for the given server name_id

driver

configure initial logging

driver

configure initial logging

log_the_data()[source]

Log the data to a file

name_id

find out parameters for the given server name_id

on_new_client(client_socket)[source]

This function is called in a separate thread from start() function! Waits for incoming message from client and sends back pressure string.

start()[source]

Main functions of server: 1. start server waiting for clients to connect, if connected - send values 2. start reading from device using driver file 3. log the data

update_pressure_thread()[source]

start reading from device using driver file