WiFi Access Point Web Sample App

This sample provides a webpage to configure the WiFi Access Point.

This sample app may be included in the default legato build on your target but it is not started by default; it needs to be started manually.

Starting the application will start the webserver on port 8080.
Go to the IP of your module NNN.NNN.NNN.NNN:8080.
The default address of your module should be 192.168.2.2:8080.
The port number of the webserver is set in the application.

Warning
Only use a SIM card without PIN code.

View the app code

Run this to install the sample app:

$ bin/legs
$ cd $LEGATO_ROOT/modules/WiFi/apps/sample/wifiWebAp
$ make wp85
$ update wifiWebAp.wp85.update <ip address>

Use Web App

This is one way to enable the sample web interface:

  1. Connect your target via USB.
  2. Check your targets IP on the USB interface with ifconfig.
  3. Run cm data connect to check that the right interface is configured for your target.
  4. Start the application wifiWebAp
  5. Open a web browser with the IP of your module http://NNN.NNN.NNN.NNN:8080
  6. Set the desired parameters on the webpage and click the "Start WiFi AP" button.
  7. Wait while result page is generated (this will take 15-20 seconds).
  8. You can monitor the progression of the connection by looking at the logs.
  9. Once the message "Waiting for connections..." is displayed, you can try to connect to your WiFi AP.
  10. Connections/Disconnections are visible in the logs as well.
Note
Check with your module vendor to verify interface names before starting the app. (e.g.; wp85 interface is rmnet0 and wp76 interface is rmnet_data0)