Loading…

方法名称: previous_read_events_method

方法ID: 0x480A

方法标签: Read previous 20 events

方法描述:


  • {
  • char status[3];
  • int transactionnr;
  • int event_pos;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • transactionnr = 0;
  • event_pos = _ivar_value(18509);
  • event_pos = event_pos - 120;
  • if (event_pos < 1)
  • {
  • event_pos = 0;
  • }
  • _iassign(18507,8);
  • while (transactionnr <= 3)
  • {
  • if (transactionnr == 2)
  • {
  • event_pos = _ivar_value(18509);
  • event_pos = event_pos - 120;
  • if (event_pos < 1)
  • {


请登录以获得完整内容