Skip to content
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

#1 - basic functionality #1

Closed
maximiliani opened this issue Sep 11, 2020 · 6 comments · Fixed by #12
Closed

#1 - basic functionality #1

maximiliani opened this issue Sep 11, 2020 · 6 comments · Fixed by #12

Comments

@maximiliani
Copy link
Member

  • WiFi login via captive portal
  • Switching relays
  • Detecting touch buttons
  • Configuration of the input and output pins via captive Portal
@maximiliani
Copy link
Member Author

maximiliani commented Sep 11, 2020

Ports are saved in ports.txt as JSON: "{"ports":[{"port":port, "function":function, "topic":topic},{ ...}]}"
Port is either "D4","D5",... or "16","18",...
Function is a struct, because of the upgradeability --> #5
topic is the decrypted MQTT-topic e.g. "/1", "/2", ...

@maximiliani maximiliani added this to the First working version milestone Oct 30, 2020
@maximiliani
Copy link
Member Author

maximiliani commented Oct 30, 2020

As mentioned in the comment in the WebGUI issue #3, we only want to implement three necessary configuration options. The other ones are going to be configured via encrypted MQTT.

@maximiliani
Copy link
Member Author

maximiliani commented Nov 13, 2020

Ports are saved in ports.txt as JSON: "{"ports":[{"port":port, "function":function},{ ...}]}"
Port is either "D4","D5",... or "16","18",...
Function is a struct, because of the upgradeability --> #5

Function struct is identified in JSON by the IDs:

  • 1 = OUTPUT (High or Low)
  • 2 = INPUT (e.g. Button, ... --> High or Low)
    more modes are coming later ...

@maximiliani
Copy link
Member Author

Ports are saved in ports.txt as JSON: "{"ports":[{"port":port, "function":function},{ ...}]}"
Port is either "D4","D5",... or "16","18",...
Function is a struct, because of the upgradeability --> #5

The maximum length of the JSON is 32 ports.

@maximiliani
Copy link
Member Author

maximiliani commented Dec 29, 2020

The maximum amount of ports, which can be configured is 64. This is due to the length of the array configured ports, which is defined in jsonHandler.cpp and jsonHandler.h.

@maximiliani
Copy link
Member Author

maximiliani commented Mar 4, 2021

The new configuration JSON has to be published in /home/config/<ID of the main device (5 chars)><Port-SubID(1 char)>/ and has to look like: {"port":<Number` of the hardware Port as uint8_t>, "analog":<analog port? 1 or 0>, "output":<output port? 1 or 0>}

@maximiliani maximiliani linked a pull request Apr 20, 2021 that will close this issue
Merged
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 a pull request may close this issue.

1 participant