HTTP protocol description:
I. card reader parameter configuration:
2. Illustration of instance interface:
HTTP Send the interface:mcardsea.php
Request format: http:// server address /qa/ McArdsep.php (this suffix is changed by docking service language, default PHP)? Cardid = & malq =1& calq =463D5361&status=11&time=UTC(time)
cardid Card number or qr code content 。
mjihao Gate number
cjihao Equipment series no. (8-bit)
status High indicates whether the usage is normal or legal (1 is normal, 0 is not illegal to transmit high), low indicates the type of output (1 in, 0 out), and the default is 11.
The server returns status=0 and status=1 twice
Server data return
Format:
cardid= Card number sent throughh WG;
status= 0 illegal, 1 legal;
output= 1.WG26, 2.WG34;
time = Server time (the difference is greater than 1 minute to synchronize)
MQTT: sending a message;
mcardsea.asp(this suffix is changed by docking
service language, default PHP
cardid=123&mjihao=1&cjihao=10294&status=11&time=UTC