I use a simple code to connect the device with the Mbed OS network interface (cellular context):
... iface = CellularContext::get_default_instance(); iface->attach(callback(this, &Cellular::cbCellular)); iface->set_default_parameters(); nsapi_error_t retcode = NSAPI_ERROR_OK; retcode = iface->connect(); ...
How can I use the
iface to send custom AT commands to the device, or how can I use the Mbed-OS integrated AT command handler to do that? Any idea where I can found some example code?