-
Notifications
You must be signed in to change notification settings - Fork 124
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
Error from Arduino HTTP Client == Arduino_HTTP_Client::m_http_client' to be of abstract type 'HttpClient' #233
Comments
Now sure why you are installing The rest of the libraries seems to be correct, so I'm not sure why it fails when it attempts to initalize an instance of the HttpClient abstract class. The only thing I could imagine is a naming conflict, but I'm not sure either. Could you attach a simple version of your code? Because with the current information it is not possible to help any further. |
Hi @MathewHDYT My bad, MQTTPubSubClient was my trial and error for this case. The library should not be there. Below i put my code
And the errors were :
Thanks for the help. |
Interesting it seems that the HttpClient is not up to date with the interface. The underlying client interface has an additional method that is pure virtual, meaning it has no implementation and need to be implemented by the abstract class. And that implementation is not done by the HttpClient causing the aformentioned compilation issues. To fix that could you go into the HttpClient and write an implementation for the If that fixed your issue you would probably need to forward this issue in the GitHub issues of the ArduinoHttpClient instead. |
Noted. Thanks for the help but I think I will try another tool first before continuing with thingsboard... |
Hi, I am absolutely newbie in this field can trying to get a grasp about thingsboard. I made several sensors connected using my arduino ide 2.3.3. Currently I am trying to get those data into a dashboard, which i pick thingsboard. I already followed instructions from https://components.espressif.com/components/thingsboard/thingsboard/versions/0.14.0
I even copy pasted the code there and change the access accordingly. but i still get this error
cannot declare field 'Arduino_HTTP_Client::m_http_client' to be of abstract type 'HttpClient'
I found in issues no 17, there are similar case but it seems that those are quite old issues and not related anymore. Can anyone please help me with this issue ?
This is what i installed in arduino IDE 2.3.3:
The text was updated successfully, but these errors were encountered: