func (sm *StateMachine) IsConnected() bool { return C.GSM_IsConnected(sm.g) != 0 }
// Checks if phone is connected func (g *GSM) IsConnected() bool { return int(C.GSM_IsConnected(g.sm)) != 0 }