Command Write Configure - WIFI_TCP_UDP

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘W’

‘v’

Infor 1

Infor 2

Infor 3

Infor 4

...



 

 

Name CFG : WIFI_TCP_UDP

Number of field values : 9

 

Payload

Index

Type value

Min

Value

Max

Value

Default

Value

Min Length

Max Length

Describe

Unit

PL2

INTEGER

0

5

0

-

-

Type Protocol

 

PL3

PRINT

-

-

ESPRTK_WF

1

40

WiFi SSID / Hotspot’s name

 

PL4

PASS_A

-

-

12345678

0

40

WiFi Password

 

PL5

STRING

-

-

192.168.4.2

1

40

IP Connect

 

PL6

INTEGER

0

65535

4001

-

-

Port Connect

 

PL7

STRING

-

-

192.168.4.1

1

40

Local IP

 

PL8

INTEGER

0

65535

4000

-

-

Local Port

 

PL9

STRING

-

-

192.168.4.0

1

40

Gateway

 

PL10

STRING

-

-

255.255.255.0

1

40

Subnet

 





PL0

PL1

PL2

Type Protocol

Unit

‘W’

‘e’

0

TCP Server Access Point

 

 

 

1

TCP Server Station

 

 

 

2

TCP Client Station

 

 

 

3

UDP Server Access Point

 

 

 

4

UDP Server Station

 

 

 

5

UDP Client Station

 

 



 



Elements require

TCP

Server

AP

TCP

Server

STA

TCP

Client

STA

UDP

Server

AP

UDP

Server

STA

UPD Client

STA

WIFI SSID (Name)

WiFi Password

IP Connect to

Port Connect to

Local IP

Local Port

Gateway IP

Subnet IP

 

 

 

Main Action select

Feature support

TCP

Server

AP

TCP

Server

STA

TCP

Client

STA

UDP

Server

AP

UDP

Server

STA

UPD Client

STA

No Main Action

UART_to_Bluetooth

UART_Base_to_UART_Rover

ignore !

MQTT_Base

NTRIP_Base

MQTT_Rover

NTRIP_Rover

Internet via WiFi

Internet via Ethernet/2G/3G/4G




MQTT_Rover_Repeater

NTRIP_Rover_Repeater

Radio_Rover_Repeater

Radio repeater via WiFi

Internet via WiFi / Ethernet / 2G/3G/4G




Radio repeater via LoRa

Internet via WiFi

Internet via Ethernet

Internet via 2G/3G/4G

Radio_Base

Radio_Rover

UART_to_RF_Base

UART_to_RF_Rover

Bluetooth_to_RF_Base

Bluetooth_to_RF_Rover

Radio Wireless bridge via WiFi

Radio Wireless bridge via LoRa

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘v’

STRING

-

-

1

1

ID Configure : WIFI_TCP_UDP

 

 

PL3

INTEGER

0

1

-

-

Status Configure

 

0

Error: Failed to save , please try again

1

OK : Saved configure success

 

PL4

STRING

-

-

-

-

Describe Status Configure in text string format

 



Example

Message :

HOST Send

$ESP_OK|85|W|v|2|ESPRTK_WF|12345678|192.168.1.3|4001|192.168.1.4|4000|192.168.4.1|255.255.255.0|*3635

ACK Respond

$ESP_OK|46|W|v|1|( ID : WIFI_TCP_UDP ) : Saved Success .|*3C06

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

Command Read configure - WIFI_TCP_UDP

ESPrtk Respond

The index / range of values / data types is similar to the index / range of values / data types of payloads when configured.

Example

Message :

HOST Send

$ESP_OK|5|R|v||*702A

ACK Respond

$ESP_OK|85|R|v|2|ESPRTK_WF|12345678|192.168.1.3|4001|192.168.1.4|4000|192.168.4.1|255.255.255.0|*3330

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

 


Polaroid