Reputation: 1
I use VBA to communicate with ZK UA300 and everything is fine, but the problem is that anyone has the device's IP Add., can do anything they want to the device. I do not want anyone to be able to connect to the devise except those who have the CommPassword. I use the example below, but where in the code can I put the password?
So if I set the device's communication password, how will the code be?
bconn = CZKEM1.Connect_Net(CStr(txtIP.value), CLng(txtPort.value))
Upvotes: 0
Views: 1086
Reputation: 336
You just need to call the method SetCommPassword before calling Connect_Net
CZKEM1.SetCommPassword(yourpassword)
bconn = CZKEM1.Connect_Net(CStr(txtIP.value), CLng(txtPort.value))
Upvotes: 1