-
-
Notifications
You must be signed in to change notification settings - Fork 117
Make the parser compile for Windows and Linux machines #53
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?
Make the parser compile for Windows and Linux machines #53
Conversation
* Replace the usage of Arduino String with std::string * Add a unit test project to test the parser
This is great! When this is merged, ESPHome can be updated to use the new version. This should finally fix this issue: esphome/issues#3982 |
@LarsStegman, |
Thanks! I will like this PR be tested in ESPHome before pushing a version |
@PolarGoose will you continue the work on this PR? |
I want to finish this pull request. However, I don't know much about |
I have no idea how to do that yet, but I can try. |
@glmnet, could you please help us with the testing when the pull request is finished? |
Hey @PolarGoose & @glmnet I'm more than willing to help and test. Please let me know how I can assist! I'm making esp32 based dsmr devices (but my programming/software skills arent good :) ) |
You make very interesting devices. Very cool. |
Yes, and it works when choosing type Arduino. But lately we get messages that it won't compile due to the size and we should use type esp-idf. But the code doesn't work with that. |
To add context:
This pull request already includes all the necessary code changes, and they have been tested via unit tests.
@zuidwijk, you are actually a What needs to be done:
@glmnet, |
Hey @PolarGoose, no I'm not the code owner, as in short: I've asked @glmnet to make the code and have paid him for that. Than later I've donated it to the community. Therefore I don't see me as owner 😁 @glmnet can you do this together with @PolarGoose ? I can help when testing is needed, got plenty of devices to test it on 😄 |
Maybe it's a bit off-topic, but just wanted to let you know that I'm still reading along with this and arduino-dsmr is still on my mind somewhere, but I just have too much other things on my mind to spend much time on this. If anything is needed on my side (which could be archiving this repository and redirecting to a fork of someone (or a group) that wants to take over maintenance, then I'm open to discuss that as well - maybe best in a separate issue). |
A bit off topic: |
Update: |
Current progress: I will look at how to integrate it into ESPHome. Shouldn't be a problem. I just never worked with ESPHome and very little with PlatformIO, which it uses. |
I have finished the code changes. You can create an FW and test it.. If it works, we can create a pull request to esphome. You are the owner of the code. It should help with the pull request approval. |
I'll try it tomorrow. Otherwise after two weeks due to my vacation. |
I have improved my fork of |
I have created a pull request to the ESPHome project: |
Description
I have tried the proposal from @matthijskooijman and managed to make the parser compile and work on Windows and Linux machines. I have only tested it on Windows, but there shouldn't be any problems with Linux.
This can be very beneficial because the parser can be used on Raspberry Pi and other Linux-based embedded boards, for example.
Content of the pull request