Skip to content

Add a function to close the serial port #2

@olmerg

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:

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