Station
Extends:
Handles everything a Station should. Brings Serial, data parsing, database saving and the backend connection together.
Constructor Summary
Public Constructor | ||
public |
constructor(name: String) Sets up all relevant class instances (Serial, parsers...) and events listeners. |
Member Summary
Public Members | ||
public |
Backend connector instance. |
|
public |
Classifier instance. |
|
public |
db: PouchDB Database instance, internal to the station. |
|
public |
logDB: PouchDB Log database instance, internal to the station. |
|
public |
Name/ID of the station |
|
public |
Private Members | ||
private |
_log: Bunyan Logger instance. |
Method Summary
Public Methods | ||
public |
Cleanup function to be run before exiting. |
|
public |
Returns a list of available serialports and tries to find which ones are the T-Minus transceiver (sets [portInfo].recommend to true) and sorts them with recommended ones first. |
Public Constructors
Public Members
Private Members
Public Methods
public cleanup(): Promise source
Cleanup function to be run before exiting. Closes the serialport and runs Backend#cleanup.