-
Notifications
You must be signed in to change notification settings - Fork 2
Small changes #8
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: main
Are you sure you want to change the base?
Conversation
… func for ArduinoJson v7
@mistralbkru, what do you mean? You didn't include And why would you want to remove |
|
I removed LittleFS and moved index.html and style.css into PROGMEM. I replaced some functions in ArduinoJson because they are deprecated in version 7 of ArduinoJson. For example, I replaced device.createNestedArray("cell_voltages") with device["cell_voltages"].to(). I am using PlatformIO, but the changes in jk-bms.ino should also work in the Arduino IDE. Please ignore the fact that I am using it. I thought everything was clear from the diff. If you consider the changes useless, just close the pull request. @Giddy-Up224 , Sorry, I didn’t see your fork. |
@mistralbkru, my apologies! I obviously did not investigate your PR as closely as I should have. I just checked the diff again and see that you did use a raw string literal. (I don't know how I missed that) I'm not this repo's owner or maintainer, I'm just following and your PR caught my interest. @peff74 is the one to approve or reject your PR. If you wish to open a PR with these changes on my fork of it, I would be happy to merge it. Thanks for your contribution! And sorry for reacting without thorough investigation. 😢 |
Giddy-Up224
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.
I've reviewed the changes and compiled and uploaded to my ESP32. All the functionality remains intact from what I can tell. I don't have a BMS to test with right now, so I cannot verify all functions for sure. However, it appears that no functionality has been compromised. It's just gotten easier to upload and go on with life, rather than fiddling with uploading files after every compile and upload. (Yeah, I know there's an Arduino extension that takes care of that for you, but that's another something for a noob to learn. And the .css and .html files aren't in a data folder as required for that method.)
|
Hi, |
@peff74 Understood — thanks for clarifying your intent and for sharing the code. @mistralbkru I won’t be pushing this upstream, but you’re welcome to open a PR on my fork. If you do, consider moving parts of the logic into header files to keep the main file cleaner. Thanks! |

I remove LittleFS, style.css & index.html > main.cpp, change deprecated func for ArduinoJson v7
I use platformio. Tested on esp32 c3 super mini + JK_B2A8S20P. Protocol 19.
Thanks for your great work!