Daniel Lee / Mbed OS mbed-os-example-cellular-TPB23

SERCOMM/TPB23/SERCOMM_TPB23_CellularContext.h

Committer:
Daniel_Lee
Date:
2019-08-08
Revision:
46:387c2d922a4a
Parent:
45:63eba30af193

File content as of revision 46:387c2d922a4a:

/*
 * Copyright (c) 2018, Arm Limited and affiliates.
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef SERCOMM_TPB23_CELLULARCONTEXT_H_
#define SERCOMM_TPB23_CELLULARCONTEXT_H_

#include "AT_CellularContext.h"

namespace mbed {

class SERCOMM_TPB23_CellularContext: public AT_CellularContext {
public:
    SERCOMM_TPB23_CellularContext(ATHandler &at, CellularDevice *device, const char *apn, bool cp_req = false, bool nonip_req = false);
    virtual ~SERCOMM_TPB23_CellularContext();

protected:
#if !NSAPI_PPP_AVAILABLE
    virtual NetworkStack *get_stack();
#endif // #if !NSAPI_PPP_AVAILABLE
};

} /* namespace mbed */

#endif // SERCOMM_TPB23_CELLULARCONTEXT_H_