-
Notifications
You must be signed in to change notification settings - Fork 5
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
Prototype a JSON API using ESP8266 Async HTTP server #77
Comments
is done, is available on: http://192.168.4.1/scan
|
the task related to network service publishing/discovery could be split in another ticket (is it already ?) I am now looking for an appropriate package that can list the service in javascript. regarding the API, I was able to use the following endpoints with Curl : the API calls did not work with Postman however. |
API calls from JS working fine. |
service discovery working great with: https://github.com/taoyuan/nbonjour |
There is no way to validate the password that the user posts without disconnecting. So a success response means the password is stored successfully. But not that it is a valid password for that network. |
How about PUT & DELETE ? We need to be able to update or delete WiFis ... current @Kameeno implemented a resetWiFi method for that purpose. |
I'd expect an error (4xx client error) when asking the board to forget to a Wifi but the board being actually connected to the same wifi. Correct ? |
@nlsdvl yes, i'm not arriving to reconnect to another wifiNetwork without crashing... |
timebox: 2d
Todo
get the current WiFi status
request:
GET /wifi/status
response code:
200 OK
response body:
scan WiFi networks
request URI:
PUT /wifi/scan
response code:
200 OK
response:
list all saved networks
request URI:
GET /wifi/saved/
response code:
200 OK
response body:
save a new wifi network to the board
request:
POST /wifi/saved
request body:
response code:
201 CREATED
response body:
forget all WiFi networks
request uri:
DELETE /wifi/saved
response code:
204 NO CONTENT
forget one WiFi network
request uri:
DELETE /wifi/saved:bssid
response code:
204 NO CONTENT
(edited)
connect to a saved wifi network
request uri:
PUT /wifi/saved/:bssid/connect
response code:
202 ACCEPTED
response body:
SSE
see this link for reference or this one at Mozilla
SSE endpoint:
/sse
https://github.com/me-no-dev/ESPAsyncWebServer
The text was updated successfully, but these errors were encountered: