Iclock adms download6/12/2023 ![]() ![]() Return HttpResponse("OK", content_type='text/plain')ĭevice do not use any authentification to communicate with server ! I'm pretty sure that's a big security issue. connect () disable device, this method ensures no activity on the device while the process is. from zk import ZK, const conn None create ZK instance zk ZK ( '192.168.1.201', port4370, timeout5, password0, forceudpFalse, ommitpingFalse ) try : connect to device conn zk. Return HttpResponse("OK", type='http', auth="public", csrf=False) The following is an example code block how to use pyzk. Here is an exemple of implementation with Python type='http', auth="public", csrf=False) the third part is clock-in if value=0 and clock-out if value=1.The data sent by device on HTTP data buffer looks like 2\t 16:00:20\t1\t15\t\t0\t0\t\t\t43\nĪs you can see you parse this string with '\t' as the separator of informations User logs (clock_in / clock_out) Device request POST /iclock/cdata?SN=XXXXXXXXXX
0 Comments
Leave a Reply. |