Skip to content

Conversation

@gerdlanger
Copy link

@gerdlanger gerdlanger commented Jan 13, 2020

  • ESP8266+ESP32
  • IP-Addresses as type
  • simplified Web-UI, but allows "invisible" and non-editable variables
  • fix for storing values

Copy link
Owner

@Tvde1 Tvde1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the effort you've put in! I'm sorry it took a while before looking at these changes. I don't visit github often and it just slipped my mind.

version=1.0
author=Tvde1
maintainer=Tvde1
version=1.1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version=1.1
version=2.0

It's quite a big change. Maybe use 2.0

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also noticed the version is 1.1 already. If 2.0 doesn't sound good then go with 1.2.


case VT_TEXT:
result += createInput(item.second, "text");
//<input name=\"" + item.first + "\" type=\"text\" value=\"";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some commented out code here and at some other places. If the code won't be needed, remove it. If it could be needed in the future maybe add a comment explaining what it does and why it could be changed.

Serial.println(name + "=" + val);

// skip empty input for values that are not displayed
if (item->second->hideValueInWeb && val == "") {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when item->second->hideValueInWeb is true but the value is not ""? Can that happen?

virtual void serialize(JsonObject*) = 0;
virtual void deserialize(JsonObject*) = 0;
bool hideInWeb = false;
bool hideValueInWeb = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the use cases of hideInWeb and hideValueInWeb? Why add it to the config tool if it won't be changed?

I could see a use case for showing the value but making it read-only (e.g. textbox is greyed out). That way you can show like the hostname/MAC of the ESP which could help in the process of changing the configuration.

@@ -0,0 +1,113 @@
/**
* Test functionality of ConfigTool.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, a unit test! I wonder why I hadn't created one :)

*.pyc
*.pyc


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment for why this is added

@@ -0,0 +1,13 @@
# main class
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This for an IDE?

maintainer=Tvde1
version=1.1
author=Tvde1,gerdlanger
maintainer=gerdlanger
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainer=gerdlanger
maintainer=Tvde1

I very much appreciate the effort you have put in so it's very fair you are listed as author but I think that I should still be listed as the maintainer. I promise I'm not gonna abandon this library anytime soon :)

@@ -1,24 +1,29 @@
/*
Name: ConfigTool.cpp
Author: Tvde1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add yourself here also :)

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

Successfully merging this pull request may close these issues.

2 participants