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

[serialport] Allow baudrate change at run time #675

Merged
merged 8 commits into from Aug 27, 2020

Conversation

Orfait
Copy link
Contributor

@Orfait Orfait commented Aug 26, 2020

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Allow baudrate modification during run time of the flow.
https://discourse.nodered.org/t/node-red-node-serialport-change-baudrate-on-the-fly/4313

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run grunt to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@jsf-clabot
Copy link

jsf-clabot commented Aug 26, 2020

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Aug 26, 2020

Coverage Status

Coverage remained the same at 47.69% when pulling 982806b on Orfait:master into ea72954 on node-red:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 47.69% when pulling 8ba7666 on Orfait:master into ea72954 on node-red:master.

@@ -249,6 +277,7 @@ module.exports = function(RED) {
return payload;
},
write: function(m,cb) { this.serial.write(m,cb); },
update: function(m,cb) { this.serial.update(m,cb); },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

io/serialport/25-serial.js Outdated Show resolved Hide resolved
io/serialport/25-serial.js Outdated Show resolved Hide resolved
io/serialport/25-serial.js Outdated Show resolved Hide resolved
@dceejay dceejay merged commit 53f32ec into node-red:master Aug 27, 2020
@dceejay
Copy link
Member

dceejay commented Aug 27, 2020

Thanks

@Orfait
Copy link
Contributor Author

Orfait commented Aug 28, 2020

Hi @dceejay
I forgot to change the version on the node (actually 0.10.3). Is it needed ?
Maybe this is done when making a release ?

@dceejay
Copy link
Member

dceejay commented Aug 28, 2020

no need - yes I will change it... - I also want to update the underlying serialport lib so have included that and am testing before release.

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.

None yet

4 participants