libmcm 1.4.0
A client library for Moxa Connection Management
mcm-gps.h File Reference

Go to the source code of this file.

Enumerations

enum  { GPS_STATE_UNKNOWN = -1 , GPS_STATE_DISABLED = 0 , GPS_STATE_ENABLED = 1 }
 

Functions

int mcm_gps_control (char *interfaceName, int enabled)
 A helper function to enable/disable GPS. More...
 
int mcm_gps_get_state (char *interfaceName)
 A helper function to get GPS state. More...
 

Detailed Description

This library is for Moxa Connection Management

Function Documentation

◆ mcm_gps_control()

int mcm_gps_control ( char *  interfaceName,
int  enabled 
)

A helper function to enable/disable GPS.

Parameters
interfaceName(input) Interface name.
enabled(input) .
Returns
If gps control success return 0. If fail, return error number.

◆ mcm_gps_get_state()

int mcm_gps_get_state ( char *  interfaceName)

A helper function to get GPS state.

Parameters
interfaceName(input) Interface name.
Returns
If gps control success return 0. If fail, return error number.