Table of Contents

Class Gsm7

Namespace
Iot.Device.AtModem.CodingSchemes
Assembly
Iot.Device.AtModem.dll

Encode / decode GSM 7-bit strings.

public class Gsm7
Inheritance
Gsm7

Constructors

Gsm7()

public Gsm7()

Fields

DataCodingSchemeCode

GSM 7-bit Data Coding Scheme code.

public const byte DataCodingSchemeCode = 0

Field Value

byte

Methods

Decode(byte[])

Decodes a GSM 7-bit encoded byte array.

public static string Decode(byte[] data)

Parameters

data byte[]

The GSM 7-bit encoded byte array.

Returns

string

The decoded string.

Decode(string)

Decodes a GSM 7-bit encoded string.

public static string Decode(string strGsm7bit)

Parameters

strGsm7bit string

The GSM 7-bit encoded string.

Returns

string

The decoded string.

Encode(byte[])

Encodes a byte array to GSM 7-bit format.

public static string Encode(byte[] data)

Parameters

data byte[]

The byte array to encode.

Returns

string

The GSM 7-bit encoded string.

Encode(string)

Encodes a string to GSM 7-bit format.

public static string Encode(string text)

Parameters

text string

The string to encode.

Returns

string

The GSM 7-bit encoded string.