Skip to content

Add a function to close the serial port #2

Description

@olmerg

The object to close the serial port is not accesible , os will be good have a function for close the port.

        function close_port(obj)
      % tells if msg is an ip address, returns the ip and port if so.
        if obj.connection_type == 'serial'
          fclose(obj.connection);
        endif
    endfunction

Maybe also is important to review is the port is open (during constructor) to generate this error an not
error: Invalid call to arduino. Correct usage is:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions