mirror of https://github.com/ARMmbed/mbed-os.git
17 lines
386 B
C++
17 lines
386 B
C++
|
#include "mbed.h"
|
||
|
#include "greentea-client/test_env.h"
|
||
|
#include "unity.h"
|
||
|
#include "utest.h"
|
||
|
#include "wifi_tests.h"
|
||
|
|
||
|
using namespace utest::v1;
|
||
|
|
||
|
void wifi_connect(void)
|
||
|
{
|
||
|
WiFiInterface *wifi = get_interface();
|
||
|
|
||
|
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_UNSECURE_SSID, NULL));
|
||
|
|
||
|
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->connect());
|
||
|
}
|