SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
In the following POST example, once the user clicks on the submit button the POST request includes the profiles_add.html as the action resource and the variables __SL_P_P.A and __SL_P_P.B with the values that the user requested.
<form method="POST" name="SimpleLink Configuration" action="profiles_add.html">
<tr>
<td dir=LTR> SSID: </td>
<td dir=LTR><input type="text" maxlength="32" name="__SL_P_P.A" /> Enter any value of up
to 32 characters</td>
</tr>
<tr>
<td dir=LTR> Security Type: </td>
<td dir=LTR> <input type="radio" name="__SL_P_P.B" value="0" checked />Open
<input type="radio" name="__SL_P_P.B" value="1" />WEP
<input type="radio" name="__SL_P_P.B" value="2" />WPA1
<input type="radio" name="__SL_P_P.B" value="3" />WPA2</td>
</tr>
<tr>
<td colspan=2 align=center><input type="submit" value="Add"/></td>
</tr>
</form>
When the page is displayed in the following example (HTTP GET), the __SL_G_N.A is replaced by the HTTP web server with the current IP address value, displayed in the input box. When the user changes and submits the IP address, the new value is sent with the __SL_P_N.A variable.
<form method="POST" name="SimpleLink Configuration action" action="ip_config.html">
<tr>
<td dir=LTR> IP Address: </td>
<td dir=LTR><input type="text" maxlength="15" name="__SL_P_N.A" value="__SL_G_N.A"/></td>
</tr>
<tr>
<td colspan=2 align=center><input type="submit" value="Apply"/></td>
</tr>
</form>