-
Notifications
You must be signed in to change notification settings - Fork 94
This version can change Serial by user. #14
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
base: master
Are you sure you want to change the base?
Conversation
Don't .begin() if baudrate is negative
stephane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't remove the information about contributions.
|
|
||
| static void reply(uint16_t *tab_reg, uint16_t nb_reg, uint8_t *req, | ||
| uint8_t req_length, uint8_t _slave) | ||
| static uint32_t reply(uint16_t *tab_reg, uint16_t nb_reg, uint8_t *req, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change about return of reply should be in another PR
| static uint32_t reply(uint16_t *tab_reg, uint16_t nb_reg, uint8_t *req, | ||
| uint8_t req_length, uint8_t _slave, Stream* _port) | ||
| { | ||
| uint32_t backnum = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find the backnum term explicit.
| -2 for MODBUS_EXCEPTION_ILLEGAL_FUNCTION | ||
| etc */ | ||
| return rc; | ||
| // if(rc > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove.
| public: | ||
| ModbusinoSlave(uint8_t slave); | ||
| void setup(long baud); | ||
| ModbusinoSlave(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you change the API here?
| - addr: index of the start address | ||
| Else, t always is 0*/ | ||
|
|
||
| 1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing of information about contributing!
This version can change Serial by user. And update the examples.