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

Add describe endpoint #209

Closed
glynhudson opened this issue Jan 24, 2019 · 1 comment
Closed

Add describe endpoint #209

glynhudson opened this issue Jan 24, 2019 · 1 comment
Assignees

Comments

@glynhudson
Copy link
Contributor

To allow OpenEVSE to be discovered by https://github.com/emoncms/find

void handleDescribe(AsyncWebServerRequest *request) {
  AsyncWebServerResponse *response = request->beginResponse(200, "text/plain", "openevse");
  response->addHeader("Access-Control-Allow-Origin", "*");  
  request->send(response);
}
web_server_setup()
 {
server.on("/emoncms/describe", handleDescribe);
}

e.g. openenergymonitor/EmonESP@839379d?diff=unified

@glynhudson
Copy link
Contributor Author

screenshot 2019-01-24 at 20 08 09

Stef-Sijben pushed a commit to Stef-Sijben/ESP8266_WiFi_v2.x that referenced this issue Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant