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

conflicting return type specified for virtual int Client::read(uint8_t *buf, size_t size) #38

Open
dberenguer opened this issue Aug 27, 2018 · 2 comments

Comments

@dberenguer
Copy link

Client inherits from Stream but read is declared in Client.h as:

virtual int read(uint8_t *buf, size_t size) = 0;

whilst the parent declaration in Stream.h is:

virtual size_t read(uint8_t *buffer, size_t size);

Using the Adafruit_MQTT library generates the above error. Changing from int to size_t as the return type in Client.h fixes the problem.

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 27, 2018 via email

@dberenguer
Copy link
Author

Perfect. I created a pull request, in case you want to merge.

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

No branches or pull requests

2 participants