This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Monitoring Ness/ELK Alarm Zone Status
#2
The protocol is rather simple, here's a starter example that you can use to decode data further:
Code:
res = socket:receive('*l')
if res then
  data = lmcore.hextostr(res, true)
  st, addr, len, cmd, event, id, area = data:byte(1, 7)
  log(st, addr, len, cmd, event, id, area)
end

Note that the logged event number will be in decimal whereas it is written in hexadecimal in the protocol description.
Reply


Messages In This Thread
RE: Monitoring Ness/ELK Alarm Zone Status - by admin - 14.02.2020, 09:18

Forum Jump: