Http Client - Ebyte EBT3002 T6 User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
destination port. Usually used in data transmission scenarios where there is no requirement for
packet loss rate, the data packet is small and the transmission frequency is fast, and the data needs to
be transmitted to the specified IP.
In UDP Client mode, the device will only communicate with the configured (target IP and target
port) remote UDP devices.
In this mode, the target address is set to 255.255.255.255, and the transmitted data will be
broadcasted throughout the entire network segment. However, the transmitting and receiving devices
need to ensure that the ports are consistent, and the devices can also receive broadcast data.
[Note] In UDP mode, the data sent by the network to the device should be less than 512Bit per
packet, otherwise it may cause data loss.

4.4.5 HTTP client

This mode can achieve HTTP automatic packet grouping function, providing two methods: GET
and POST. Customers can configure parameters such as URL and Header on their own, and the
device can group and send packets, achieving fast communication between serial data and HTTP
servers. The URL and Header can support up to 128 bytes of data, and eight channels can
independently enable HTTP client mode without affecting each other.
The HTTP request data should be smaller than the packaging length (512 bytes), otherwise the
device will divide the request data into multiple packets for requests, resulting in abnormal requests.
Support configuring whether to return HTTP protocol headers.
Configuration instructions: Open the upper computer, search for devices, and enter the device
configuration interface. First, configure the "network parameters". It is recommended to use the
DHCP function to avoid device IP anomalies (network segment errors, IP conflicts, etc.) caused by
incorrect configuration. When configuring channels that require the use of HTTP function, support
the simultaneous configuration of HTTP client mode for eight channels, Here is an example of using
GET to request the "Baidu" webpage (URL: blank, HEADER: Host: www.baidu.com, target domain
name: www.baidu.com, target port: 80, and it is recommended to use a random port for the local
port).
POST description: The header data configured as a POST request method does not require a
separate configuration of data length (such as Content length: 2729). The device automatically
calculates the data length and sends it as a package. Other header data needs to be manually
configured, and supports a maximum of 128 bytes of data configuration.
Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
EBT3002 User Manual

Advertisement

Table of Contents
loading

Table of Contents