fix(esp_modem): Read module name with AT commands

This fixes basic IDF test case which supplied dummy module name.
This commit is contained in:
David Cermak
2021-11-25 16:24:49 +01:00
parent 5f0832a0ad
commit 8417e232aa
4 changed files with 6 additions and 22 deletions

View File

@ -37,6 +37,10 @@ TEST_CASE("DCE AT parser", "[esp_modem]")
CHECK(dce->set_pin("1234") == command_result::OK);
CHECK(dce->read_pin(pin_ok) == command_result::OK);
CHECK(pin_ok == true);
std::string model;
CHECK(dce->get_module_name(model) == command_result::OK);
CHECK(model == "0G Dummy Model");
}