IOTC Platform  Ver: 4.3.6.2-0-ge1f616e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
st_SInfo Struct Reference

#include <IOTCCommon.h>

Data Fields

uint8_t Mode
 0: P2P mode, 1: Relay mode, 2: LAN mode
 
int8_t CorD
 0: As a Client, 1: As a Device
 
char UID [21]
 The UID of the device.
 
char RemoteIP [47]
 The IP address of remote site used during this IOTC session.
 
uint16_t RemotePort
 The port number of remote site used during this IOTC session.
 
uint32_t TX_Packetcount
 The total packets sent from the device and the client during this IOTC session.
 
uint32_t RX_Packetcount
 The total packets received in the device and the client during this IOTC session.
 
uint32_t IOTCVersion
 The IOTC version.
 
uint16_t VID
 The Vendor ID, part of VPG mechanism.
 
uint16_t PID
 The Product ID, part of VPG mechanism.
 
uint16_t GID
 The Group ID, part of VPG mechanism.
 
uint8_t NatType
 The remote NAT type.
 
uint8_t 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

int8_t CorD

0: As a Client, 1: As a Device

uint16_t GID

The Group ID, part of VPG mechanism.

uint32_t IOTCVersion

The IOTC version.

uint8_t isSecure

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

uint8_t Mode

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

uint8_t NatType

The remote NAT type.

uint16_t PID

The Product ID, part of VPG mechanism.

char RemoteIP[47]

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

uint16_t RemotePort

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

uint32_t RX_Packetcount

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

uint32_t TX_Packetcount

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

char UID[21]

The UID of the device.

uint16_t VID

The Vendor ID, part of VPG mechanism.


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