D. HTTP/HTTPS protocol
The HTTP packet format is as follows:
Device-The server
POST /test HTTP/1.1
Host: 192.168.4.1:8080
Accept: */*
Content-Type: text/html; charset=UTF-8
Content-Length: 53
vgdecoderesult=12345678&&devicenumber=0&&otherparams=
The server->Device
HTTP/1.1 200 OK
Content-Type: text/plain;charset=utf-8
Content-Length: 9
code=0000
The content format is:
vgdecoderesult=xxx&&devicenumber=xxx
vgdecoderesult=xxx——Where xxx represents the decoded result string
devicenumber=xxx——Where xxx represents the scanner device number (can be set in the
main interface:
Advanced
->
Device num
)
The format of the response is: code=xxxx
xxxx indicates the server processing result code, 0000 indicates success, others indicate errors