Connection Manager library for u-blox cellular modules. It manages the modem for keeping data connection always active.

Dependents:   C027_demo_ConnMan

CNReg.h

Committer:
msinig
Date:
2016-01-12
Revision:
0:86284a262735
Child:
1:29ad1d1ac1f9

File content as of revision 0:86284a262735:

#pragma once 

#include "CNManager.h"
#include "CNUtil.h"

//! Registration Status
typedef enum{
    REG_NOT_REGISTERED = 0,   //!< Not registered
    REG_REGISTERED = 1,       //!< Registered
} RegStatus;

/** Reg Init 
  This function has to be called prior to cnRegLoop
 */
void cnRegInit();

/** Loop registration module
  \param lib pointer to CN library
  \param regStatus [output] registration status
 */
CNResp cnRegLoop(CNLib* lib, RegStatus* status);

/** Reset
 */
void cnRegReset();

/** Set if Roaming is allowed
  \param enabled if true rooming is allowed, false it is not
 */
void cnRegSetRoaming(bool enabled);