<% if flash[:notice] %>
<%= flash[:notice] %>
<% elsif flash[:alert] %>
<%= flash[:alert] %>
<% end %>
<% @schedule.each do |s| %> <% end %>
시간 온도
<%= s.hour %>시 <%= s.temperature %> °C
<%= button_to "스케쥴러 시작", start_modbus_index_path, method: :post, class: "btn bg-accept" %> <%= button_to "스케쥴러 정지", stop_modbus_index_path, method: :post, class: "btn bg-danger" %>
스케쥴러 상태: <% if @modbus_running %> 실행 중 <% else %> 정지됨 <% end %>
<%= link_to "수정", "/modbus/schedule_edit", class: "btn bg-default-slate" %>