Transfer data using HTTP protocol#

Note

Only applicable to Barcode Readers that support Wi-Fi transmission, such as DS2800.

Create a REST API#

Brief description#

  • Barcode Reader data upload interface.

Request URL#

  • https://httpbin.org/post

Request mode#

  • POST

Request parameters#

Parameter name

Required

Type

Description

ID

Yes

string

device ID

msg

Yes

string

Scan content

Request example#
1{"id":"04B9023A","msg":"1234567890"}

Return parameters#

See Data Receiving Format for details.

Configure Barcode Reader#

Set Content-Type of Barcode Reader request#

../../_shared/_images/wireless-wifi/application-json.png

Application/JSON#

Set the data format sent by the Barcode Reader#

../../_shared/_images/wireless-wifi/25WFCOMMPM23S1.png

JSON format content#

Configure Wi-Fi and API URL addresses#

Static command instructions

If the interactive HTML tool is unavailable, replace the placeholders as described in this section and verify the command.

AT+URL=<mode>,<host>,<path-and-query>;AT+RAP=<ssid>[,<wifi-password>]