Skip to content

Problem with . open() running only once. #42

@ghoumatn

Description

@ghoumatn

Hi,
I encounter this annoying result: the open method executed just once.
The resulting part of the code "Do actions" would only be performed once because mPhysicaloid no longer wants to open.

mPhysicaloid = new Physicaloid(mContext);
if (!mPhysicaloid.isOpened()) { /* if not opened */
    if(mPhysicaloid.open()){
       /* open connection */
    }
}
if (mPhysicaloid.isOpened()) {
    /* Do actions */
}

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