Skip to content

Commit

Permalink
Merge pull request #112 from sale3/107-gateway-cleanup-code-to-delete…
Browse files Browse the repository at this point in the history
…-existing-hard-coded-logic

Code cleanup
  • Loading branch information
novicatepic authored Sep 12, 2024
2 parents 9c648b7 + 370e0aa commit 31663da
Show file tree
Hide file tree
Showing 9 changed files with 378 additions and 2,487 deletions.
6 changes: 3 additions & 3 deletions exe_script.bat
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ echo Cloud App ready!

cd src

echo Starting Sensors Client...
start "Sensor Dispatcher" python.exe "sensor_devices.py"
echo Sensors Started!
echo Starting CAN Client...
start "CAN Dispatcher" python.exe "can_service.py"
echo CAN Started!

echo Starting IoT Gateway...
start "IoT Gateway" python.exe "app.py"
Expand Down
6 changes: 3 additions & 3 deletions shutdown_script.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title Windows Shutdown Script

set sensors_mosquitto_window_title=Sensors Mosquitto
set gateway_mosquitto_window_title=Gateway Mosquitto
set sensor_dispatcher_window_title=Sensor Dispatcher
set can_dispatcher_window_title=CAN Dispatcher
set cloud_window_title=Cloud App
set gateway_window_title=IoT Gateway
set rest_window_title=REST API
Expand All @@ -18,8 +18,8 @@ if %errorlevel% equ 0 ( echo %sensors_mosquitto_window_title% shut down! )
taskkill /FI "WINDOWTITLE eq %gateway_mosquitto_window_title%" /F >nul 2>&1
if %errorlevel% equ 0 ( echo %gateway_mosquitto_window_title% shut down! )

taskkill /FI "WINDOWTITLE eq %sensor_dispatcher_window_title%" /F >nul 2>&1
if %errorlevel% equ 0 ( echo %sensor_dispatcher_window_title% shut down! )
taskkill /FI "WINDOWTITLE eq %can_dispatcher_window_title%" /F >nul 2>&1
if %errorlevel% equ 0 ( echo %can_dispatcher_window_title% shut down! )

taskkill /FI "WINDOWTITLE eq %cloud_window_title%" /F >nul 2>&1
if %errorlevel% equ 0 ( echo %cloud_window_title% shut down! )
Expand Down
Loading

0 comments on commit 31663da

Please sign in to comment.