redbear / Duo

Resources for the RedBear Duo IoT development board.
http://redbear.cc/duo
227 stars 108 forks source link

SoftAP HTTP Endpoint Documentation #33

Open mdgagne opened 7 years ago

mdgagne commented 7 years ago

Greetings,

I'm trying to interact with the RedBear DUO using Postman (popular HTTP client) to understand the DUO's endpoints before building a programmatic interface. The GET endpoints work welll; however, when attempting to use POST against the configure-ap or connect-ap endpoints I don't receive a response from the device.

Can you tell me what (if any) headers should be included in the POST? I noticed that I receive not response to GET requests if I include a Content-Type header; however, a do receive a Content-Type header in the GET response.

Thanks, I'm following the information list here: https://github.com/redbear/Duo/blob/master/docs/listening_mode_setup_protocol.md#wifi-softap

TechplexEngineer commented 7 years ago

This might provide some insight? https://github.com/spark/firmware/blob/develop/hal/src/photon/soft-ap.md