ublox-at-cellular-interface-ext
Dependencies: ublox-at-cellular-interface
Diff: TESTS/unit_tests/http/main.cpp
- Revision:
- 30:da746bc48735
- Parent:
- 28:4427f2e6bbab
--- a/TESTS/unit_tests/http/main.cpp Tue Aug 27 12:32:11 2019 +0500 +++ b/TESTS/unit_tests/http/main.cpp Fri Oct 11 15:35:03 2019 +0500 @@ -115,7 +115,21 @@ void test_http_cmd() { int profile; char * pData; - +#ifdef TARGET_UBLOX_C030_R41XM + int mno_profile; + if (pDriver->init(MBED_CONF_APP_DEFAULT_PIN) == false) //init can return false if profile set is SW_DEFAULT + { + TEST_ASSERT(pDriver->get_mno_profile(&mno_profile)); + if (mno_profile == UbloxATCellularInterface::SW_DEFAULT) { + TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU)); + TEST_ASSERT(pDriver->reboot_modem()); + tr_debug("Reboot successful\n"); + wait_ms(5000); + } + } + TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN)); + TEST_ASSERT(pDriver->disable_psm()); +#endif TEST_ASSERT(pDriver->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0);