     {:noreply, state}
   end
 
-  def handle_call(_code, _from, state) do
-    # str = GCODE.encode(code)
-    r = :ok
-    # r = UartDefaultAdapter.write(state.uart, str)
+  def handle_call(code, _from, state) do
+    str = GCODE.encode(code)
+    r = UartDefaultAdapter.write(state.uart, str)
     {:reply, r, state}
   end
 

  This is the mechanism that official Farmbot's communicate with
  official Farmbot-Arduino-Firmware's over.
  """
  alias FarmbotFirmware.{
    GCODE,
    UartDefaultAdapter
  }

  use GenServer
  require Logger


    end
  end

  def open(uart_pid, device_path, opts) do
    UartDefaultAdapter.open(uart_pid, device_path, opts)
  end
end
