Compare commits
1 Commits
f01b0bcb19
...
3ff76228eb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ff76228eb |
@@ -613,7 +613,8 @@ function pushSample(measurement, type, value, unit) { // eslint-disable-line no-
|
||||
}
|
||||
|
||||
/** Demo *********************************************************************/
|
||||
(async function demoStationWithPump() {
|
||||
// Only run the demo when this file is executed directly (not when required as a module)
|
||||
if (require.main === module) (async function demoStationWithPump() {
|
||||
const station = new PumpingStation(createPumpingStationConfig("PumpingStationDemo"));
|
||||
const pump = new RotatingMachine(createMachineConfig("Pump1"), createMachineStateConfig());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user