src.sensorClient
index
/var/lib/jenkins/workspace/resmon_sensor_doc/src/sensorClient.py

Module with SensorClient class

 
Modules
       
json
src
threading
time

 
Classes
       
builtins.object
SensorClient

 
class SensorClient(builtins.object)
    Main class for Sensor Client.
It is responsible for establish connection and send gathered data
 
  Methods defined here:
__init__(self, address, interval, bufferSize, nameId)
Constructor which takes essential parameters for establish
secure connection with server and adjust data interval sending
gatherAndSendData(self)
Gather buffered data and send it
getJsonString(self, data, isMeta=False)
Wrape data in order to distinguish
data and meta and generate JSON string
sendMetaData(self)
Sends meta data to server
sendingThreadFunction(self, data)
Thread function used for sending data
startClient(self)
Start Sensor Client by establishing connection

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)