For the purposes of debugging, it is desirable to be able to test changes to tpServer.py and tpMonitor.py without direct access to the MS5837 sensor hardware.
Solution
Develop a 'mock' sensor that exposes an identical set of class methods, which return random or static synthetic data.
Problem
For the purposes of debugging, it is desirable to be able to test changes to
tpServer.py
andtpMonitor.py
without direct access to the MS5837 sensor hardware.Solution
Develop a 'mock' sensor that exposes an identical set of class methods, which return random or static synthetic data.