Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Servo X_NUCLEO_IKS01A2 X_NUCLEO_IDW01M1v2 NetworkSocketAPI NDefLib MQTT
Diff: main.cpp
- Revision:
- 6:0d838d564181
- Parent:
- 5:e913a401b174
- Child:
- 8:6df01cb43137
--- a/main.cpp Tue Apr 19 06:29:47 2016 +0000 +++ b/main.cpp Tue Apr 19 07:19:55 2016 +0000 @@ -21,15 +21,7 @@ char * data = "Hello World!\r\n"; uint32_t len = strlen(data); - pc.printf("\r\nX-NUCLEO-IDW01M1 mbed Application\r\n"); - - err = spwf.init(); - if(err!=0) - { - pc.printf("\r\n[APP] error initializing.\r\n"); - return -1; - } - + pc.printf("\r\nX-NUCLEO-IDW01M1 mbed Application\r\n"); pc.printf("\r\n[APP] connecting to AP\r\n"); err = spwf.connect(ssid, seckey, NS_SECURITY_WPA);