Firmware/src/at_commands.c
int nsocr_eol(void *ctx, struct buf *rb, bool is_urc)
{
    if (!is_urc && rb->size > 2)
    {
        int *sockfd = (int *)ctx;
        *sockfd = atoi((const char *)rb->data);
    }
    return 0;
}
// Decode NSCR responses. This is fairly straightforward since there's only
// a single digit that is returned. We'll pass the pointer to the return
// function as the context and assign it when the line ends.
Decode NSCR responses. This is fairly straightforward since there's only
a single digit that is returned. We'll pass the pointer to the return
function as the context and assign it when the line ends.
Decode NSCR responses . This is fairly straightforward since there ' s only a single digit that is returned . We ' ll pass the pointer to the return function as the context and assign it when the line ends .
int nsocr_eol(void *ctx, struct buf *rb, bool is_urc)
{
    if (!is_urc && rb->size > 2)
    {
        int *sockfd = (int *)ctx;
        *sockfd = atoi((const char *)rb->data);
    }
    return 0;
}
int nsocr_eol ( void * ctx , struct buf * rb , bool is_urc ) { if ( ! is_urc && rb -> size > 2 ) { int * sockfd = ( int * ) ctx ; * sockfd = atoi ( ( const char * ) rb -> data ) ; } return 0 ; }
Decode NSCR responses.
Decode NSCR responses .