스케쥴러 시작/정기 기능 추가

This commit is contained in:
2025-04-17 06:42:51 +09:00
parent 4b9c59b6e0
commit f9cdd77e7a
7 changed files with 47 additions and 14 deletions

View File

@@ -1,6 +1,17 @@
class ModbusController < ApplicationController
def index
@schedule = Schedule.all
@modbus_running = Modbus::PollingService.running?
end
def start
Modbus::PollingService.start
redirect_to modbus_index_path
end
def stop
Modbus::PollingService.stop
redirect_to modbus_index_path
end
def schedule_edit