Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ofSerial accessable #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

GitBruno
Copy link

@GitBruno GitBruno commented Aug 19, 2024

So we can check the connected devices before connecting. Or check if the device has been disconnected.
At the moment connected will always respond true after first connection.

// Check for disconnection and reconnect when plugged in again
if (deviceListLen != dmx.serial.getDeviceList().size()){
    dmx.disconnect();
};
if (!dmx.isConnected()) {
    dmx.connect(deviceID);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant