Test for the fork of X_NUCLEO_IDW01M1 at https://developer.mbed.org/users/scsims/code/X_NUCLEO_IDW01M1_AP which just sets up an open WiFi Access Point
Dependencies: NetworkSocketAPI X_NUCLEO_IDW01M1_AP mbed
main.cpp@0:e4560ccdaa13, 2016-06-22 (annotated)
- Committer:
- scsims
- Date:
- Wed Jun 22 15:22:06 2016 +0000
- Revision:
- 0:e4560ccdaa13
Small test app to show the miniAP being enabled for the X_NUCLEO_IDW01M1 (relies on X_NUCLEO_IDW01M1_AP fork of X_NUCLEO_IDW01M1)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
scsims | 0:e4560ccdaa13 | 1 | #include "SPWFInterface.h" |
scsims | 0:e4560ccdaa13 | 2 | #include <mbed.h> |
scsims | 0:e4560ccdaa13 | 3 | |
scsims | 0:e4560ccdaa13 | 4 | Serial pc(SERIAL_TX, SERIAL_RX); //9600,8,n,1,none |
scsims | 0:e4560ccdaa13 | 5 | SpwfSAInterface spwf(PA_9, PA_10, PC_12, PC_8, PA_12, true); |
scsims | 0:e4560ccdaa13 | 6 | |
scsims | 0:e4560ccdaa13 | 7 | int main() { |
scsims | 0:e4560ccdaa13 | 8 | printf("\r\nStarting mini Access Point (no security) with SSID 'mbedMiniAP'..."); |
scsims | 0:e4560ccdaa13 | 9 | spwf.start_access_point("mbedMiniAP", NULL, NSAPI_SECURITY_NONE, 6, 0x4041); // slowest n data rate |
scsims | 0:e4560ccdaa13 | 10 | printf("done\r\n"); |
scsims | 0:e4560ccdaa13 | 11 | while (1); |
scsims | 0:e4560ccdaa13 | 12 | } |