Class: AutomateEm::DatagramBase
- Inherits:
-
Object
- Object
- AutomateEm::DatagramBase
- Includes:
- DeviceConnection, Utilities
- Defined in:
- lib/automate-em/device/datagram_server.rb
Instance Method Summary collapse
Methods included from DeviceConnection
#add_to_queue, #call_connected, #config=, #default_send_options=, #do_process_response, #do_receive_data, #do_send_command, #initialize, #logger, #process_next_send, #process_response, #process_response_complete, #process_result, #process_send, #received_lock, #sending_timeout, #shutdown
Methods included from Utilities
array_to_str, byte_to_hex, hex_to_byte, schedule, str_to_array, task
Instance Method Details
#do_send_data(data) ⇒ Object
11 12 13 14 15 |
# File 'lib/automate-em/device/datagram_server.rb', line 11 def do_send_data(data) EM.defer do $datagramServer.do_send_data(DeviceModule.lookup(@parent), data) end end |
#error? ⇒ Boolean
17 18 19 |
# File 'lib/automate-em/device/datagram_server.rb', line 17 def error? false end |