Fix for HTTP return status code 1.0 in http_tls
Dependencies: ublox-at-cellular-interface
Revision 32:c7ff56f0381f, committed 2019-11-07
- Comitter:
- mudassar0121
- Date:
- Thu Nov 07 12:48:05 2019 +0500
- Parent:
- 31:b85378bb8269
- Child:
- 33:0f6b21dc0274
- Commit message:
- Set modem to airplane mode in test cases after disconnect
Changed in this revision
| TESTS/unit_tests/http/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TESTS/unit_tests/http/main.cpp Wed Nov 06 16:39:43 2019 +0500
+++ b/TESTS/unit_tests/http/main.cpp Thu Nov 07 12:48:05 2019 +0500
@@ -221,6 +221,12 @@
TEST_ASSERT(pDriver->disconnect() == 0);
// Wait for printfs to leave the building or the test result string gets messed up
wait_ms(500);
+
+#ifdef TARGET_UBLOX_C027
+ pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN);
+#else
+ pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_AIRPLANE);
+#endif
}
// Test HTTP with TLS
@@ -268,6 +274,12 @@
TEST_ASSERT(pDriver->disconnect() == 0);
// Wait for printfs to leave the building or the test result string gets messed up
wait_ms(500);
+
+#ifdef TARGET_UBLOX_C027
+ pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN);
+#else
+ pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_AIRPLANE);
+#endif
}
// Allocate max profiles