IOTC Platform: st_SInfo Struct Reference

| IOTC Platform Ver: 2.1.0.25 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Fields
st_SInfo Struct Reference

`#include <IOTCAPIs.h>`

## Data Fields

unsigned char | Mode
| 0: P2P mode, 1: Relay mode, 2: LAN mode
char | CorD
| 0: As a Client, 1: As a Device
char | UID [21]
| The UID of the device.
char | RemoteIP [17]
| The IP address of remote site used during this IOTC session.
unsigned short | RemotePort
| The port number of remote site used during this IOTC session.
unsigned int | TX_Packetcount
| The total packets sent from the device and the client during this IOTC session.
unsigned int | RX_Packetcount
| The total packets received in the device and the client during this IOTC session.
unsigned int | IOTCVersion
| The IOTC version.
unsigned short | VID
| The Vendor ID, part of VPG mechanism.
unsigned short | PID
| The Product ID, part of VPG mechanism.
unsigned short | GID
| The Group ID, part of VPG mechanism.
unsigned char | NatType
| The remote NAT type.
unsigned char | isSecure
| 0: The IOTC session is in non-secure mode, 1: The IOTC session is in secure mode

## Detailed Description

IOTC session info, containing all the information when a IOTC session is established between a device and a client. Users can use IOTC_Session_Check() to get IOTC session information.

## Field Documentation

char CorD

0: As a Client, 1: As a Device

unsigned short GID

The Group ID, part of VPG mechanism.

unsigned int IOTCVersion

The IOTC version.

unsigned char isSecure

0: The IOTC session is in non-secure mode, 1: The IOTC session is in secure mode

unsigned char Mode

0: P2P mode, 1: Relay mode, 2: LAN mode

unsigned char NatType

The remote NAT type.

unsigned short PID

The Product ID, part of VPG mechanism.

char RemoteIP[17]

The IP address of remote site used during this IOTC session.

unsigned short RemotePort

The port number of remote site used during this IOTC session.

unsigned int RX_Packetcount

The total packets received in the device and the client during this IOTC session.

unsigned int TX_Packetcount

The total packets sent from the device and the client during this IOTC session.

char UID[21]

The UID of the device.

unsigned short VID

The Vendor ID, part of VPG mechanism.

The documentation for this struct was generated from the following file:

- IOTCAPIs.h