Upvoted! At Particle we are really keen for this feature too, so you won’t have to wait very long.
Our expected direction is to expose the access point functionality as a new library -
AP that parallels the existing
WiFi functionality. Something like this:
AP.setCredentials(SSID, SecurityType, password);
That brings up the access point using the given SSID, security type and password.
Then all our networking related APIs will take an additional parameter to describe which network they operate on. E.g.
TCPServer server(80, AP); <-- creates on the AP network interface
TCPClient client = server.available();
To enable WPS connection, the
AP.listen() command can be used.
// wait up to 30 seconds for a client to connect via WPS
That’s my outline thoughts for now, I hope it helps show the direction we are considering Feedback welcome!