Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Tests/Test08.cpp
- Committer:
- ashleymills
- Date:
- 2014-01-29
- Revision:
- 74:e52ac9624f7f
- Parent:
- 66:6b00a764e549
File content as of revision 74:e52ac9624f7f:
#pragma once
#include "Test08.h"
const char gTest08USSDMessage[161] = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
Test08::Test08(VodafoneUSBModem *m) : VodafoneTestCase(m) {}
// virtual
void Test08::setupTest() {
_ussdResponse = (char*)malloc(16*sizeof(char));
}
// virtual
bool Test08::executeTest() {
LOG(gTest08Description);
if(_modem->sendUSSD(gTest08USSDMessage,_ussdResponse,16)!=0) {
LOG("Error sending USSD");
return false;
}
LOG("Expecting \"Unknown Command\". Received USSD response: \"%s\"",_ussdResponse);
return (strcmp(_ussdResponse,"Unknown command")==0);
}
// virtual
void Test08::endTest() {
free(_ussdResponse);
}

