스케쥴러 시작/정기 기능 추가
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
$modbus_polling_threads ||= []
|
||||
|
||||
Rails.application.config.after_initialize do
|
||||
Modbus::PollingService.start
|
||||
end
|
||||
|
||||
@@ -14,9 +14,8 @@ Rails.application.routes.draw do
|
||||
|
||||
resources :modbus do
|
||||
collection do
|
||||
get "start"
|
||||
get "stop"
|
||||
get "status"
|
||||
post "start"
|
||||
post "stop"
|
||||
get "schedule_edit"
|
||||
post "schedule_edit_update"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user