Security

GSM_Error GSM_EnterSecurityCode(GSM_StateMachine * s, GSM_SecurityCode * Code)

Enters security code (PIN, PUK,...) .

GSM_Error GSM_GetSecurityStatus(GSM_StateMachine * s, GSM_SecurityCodeType * Status)

Queries whether some security code needs to be entered.

GSM_SecurityCodeType enum

Definition of security codes.

Values:

  • SEC_SecurityCode = 0x01 -

    Security code.

  • SEC_Pin -

    PIN.

  • SEC_Pin2 -

    PIN 2.

  • SEC_Puk -

    PUK.

  • SEC_Puk2 -

    PUK 2.

  • SEC_None -

    Code not needed.

  • SEC_Phone -

    Phone code needed.

  • SEC_Network -

    Network code needed.

struct GSM_SecurityCode
#include <gammu-security.h>

Security code definition.

Public Members

GSM_SecurityCodeType Type

Type of the code.

char Code[GSM_SECURITY_CODE_LEN+1]

Actual code.

char NewPIN[GSM_SECURITY_CODE_LEN+1]

New PIN code.

Some phones require to set PIN on entering PUK, you can provide it here.

Previous topic

Ringtone

Next topic

Settings

This Page