Function nrfxlib::at::send_at_command[][src]

pub fn send_at_command<F>(command: &str, function: F) -> Result<(), Error> where
    F: FnMut(&str), 
Expand description

Sends an AT command to the modem and calls the given closure with any indications received. Indications have any whitespace or newlines trimmed.

Creates and destroys a new NRF_AF_LTE/NRF_PROTO_AT socket. Will block until we get ‘OK’ or some sort of error response from the modem.