Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Text Input for an e-paper door sign #55

Open
AlexBollmann opened this issue May 29, 2018 · 0 comments
Open

Text Input for an e-paper door sign #55

AlexBollmann opened this issue May 29, 2018 · 0 comments

Comments

@AlexBollmann
Copy link

Hi,
I love this project and I wanted to use it for my first diy project. Unfortunately, I can't find everything I need in the documentation or in the ct magazine.

My goal is to have a text input on the http page, where you can set your door message. That message should be shown on the display. I startet like this:

`#include <Basecamp.hpp>
Basecamp iot{
};
String doormessage = "Test Message !";
void setup() {

iot.begin();
iot.configuration.set("my-DoorMessage", doormessage);
iot.web.addInterfaceElement("DoorMessageDisplay", "input", "Türschildnachricht:", "#configform", "my-DoorMessage");
iot.web.setInterfaceElementAttribute("my-DoorMessage", "type", "text");
}

void loop() {
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
Serial.println("Türschildnachricht: ");
Serial.println(doormessage);

delay(5000);
}`

I don't think it's the right way, because when I click "Save", it gets resetted to the standard message. Also, I don't want to show the wireless and mqqt settings page, once the wireless has been set up. Not using MQTT for now. How would you do it? Is Basecamp the right base to start from?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant