mbed-os-mbed-os-5.10.4/features/cellular/framework/AT/ATHandler.cpp
// do common checks before sending subparameters
do common checks before sending subparameters
do common checks before sending subparameters
bool ATHandler::check_cmd_send()
{
    if (_last_err != NSAPI_ERROR_OK) {
        return false;
    }
    if (_cmd_start) {
        _cmd_start = false;
    } else {
        if (write(&_delimiter, 1) != 1) {
            return false;
        }
    }
    return true;
}
bool ATHandler :: check_cmd_send ( ) { if ( _last_err != NSAPI_ERROR_OK ) { return false ; } if ( _cmd_start ) { _cmd_start = false ; } else { if ( write ( & _delimiter , 1 ) != 1 ) { return false ; } } return true ; }
do common checks before sending subparameters
do common checks before sending subparameters
// Don't write delimiter if this is the first subparameter // writing of delimiter failed, return. write() already have set the _last_err