B. TCP protocol
The format of the content sent to the server is: vgdecoderesult=xxx&&devicenumber=xxx
Among them:
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&&desc=xxx
Among them:
code=xxxx——xxx indicates the server processing result code, 0000 indicates success, others
indicate errors
desc=xxx——xxx represents server processing description
For example:
Device->The server
vgdecoderesult=
12345678
&&devicenumber=0
The server->Device
code=0000&&desc=ok
C. HTTP/HTTPS
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: 7
abcdefg
Body content is the original data of the scanned code