You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been a couple years since building some devices and I thought I would create a few more. Tried original code I had with original setup in vscode with pio. Had it working great at one point. Would not compile. vscode is ridiculous and pio only adds to that. Anyway, I uninstalled all the libraries, reinstalled and updated everything. went through all information on all dependencies and now I am almost there but this library is throwing something I have not encountered before.
this is the output when I try now:
.pio\libdeps\d1_mini\LeifHomieLib\src\HomieNode.cpp: In member function 'void HomieProperty::OnMqttMessage(char*, char*, AsyncMqttClientMessageProperties&, size_t, size_t, size_t)':
.pio\libdeps\d1_mini\LeifHomieLib\src\HomieNode.cpp:387:15: error: aggregate 'std::string temp' has incomplete type and cannot be defined
387 | std::string temp;
| ^~~~
Compiling .pio\build\d1_mini\FrameworkArduino\WString.cpp.o
*** [.pio\build\d1_mini\lib225\LeifHomieLib\HomieNode.cpp.o] Error 1
Any insight on this would be great. This project worked so well once compiled and has been in several lighting setups in my home with openhab and the auto discovery through the homie setup. Would prefer to try and use this again.
The text was updated successfully, but these errors were encountered:
I went down a rabbit hole over the past 4 hours and found something to grab at. Had no idea it would be needed or why because I did not write this library but, I had to declare #include for it to resolve itself. it compiled after that but I have no idea why the rest of the std lines worked without issue.
It has been a couple years since building some devices and I thought I would create a few more. Tried original code I had with original setup in vscode with pio. Had it working great at one point. Would not compile. vscode is ridiculous and pio only adds to that. Anyway, I uninstalled all the libraries, reinstalled and updated everything. went through all information on all dependencies and now I am almost there but this library is throwing something I have not encountered before.
this is the output when I try now:
.pio\libdeps\d1_mini\LeifHomieLib\src\HomieNode.cpp: In member function 'void HomieProperty::OnMqttMessage(char*, char*, AsyncMqttClientMessageProperties&, size_t, size_t, size_t)':
.pio\libdeps\d1_mini\LeifHomieLib\src\HomieNode.cpp:387:15: error: aggregate 'std::string temp' has incomplete type and cannot be defined
387 | std::string temp;
| ^~~~
Compiling .pio\build\d1_mini\FrameworkArduino\WString.cpp.o
*** [.pio\build\d1_mini\lib225\LeifHomieLib\HomieNode.cpp.o] Error 1
Any insight on this would be great. This project worked so well once compiled and has been in several lighting setups in my home with openhab and the auto discovery through the homie setup. Would prefer to try and use this again.
The text was updated successfully, but these errors were encountered: