File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2121#include " unity/unity.h"
2222#include " utest.h"
2323#include " tcp_tests.h"
24+ #include " CellularDevice.h"
2425
2526using namespace utest ::v1;
2627
@@ -119,6 +120,15 @@ void rcv_n_chk_against_rfc864_pattern(TCPSocket &sock)
119120void TCPSOCKET_RECV_100K ()
120121{
121122 SKIP_IF_TCP_UNSUPPORTED ();
123+
124+ #ifdef MBED_CONF_APP_BAUD_RATE
125+ int baudrate;
126+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
127+ if (CellularDevice::get_default_instance ()->get_baud_rate (baudrate) == NSAPI_ERROR_OK) {
128+ printf (" \n Baud rate changed to: %d\n " , baudrate);
129+ }
130+ #endif
131+
122132 TCPSocket sock;
123133 if (_tcpsocket_connect_to_chargen_srv (sock) != NSAPI_ERROR_OK) {
124134 TEST_FAIL ();
You can’t perform that action at this time.
0 commit comments