Loading…

方法名称: sensor_input_method

方法ID: 0x4912

方法标签: 传感器输入

方法描述:


  • {
  • unsigned long point;
  • long status;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • point = 0;
  • do {
  • status = _get_local_var_value(literal_string(1211),0,literal_string(1212));
  • send_command(164);
  • switch (point)
  • {
  • case 0:
  • break;
  • case 1:
  • _get_dev_var_value(literal_string(1213),0,18381);
  • LvlPt01 = level_value_vol_table;
  • send_command_trans(240,0);
  • break;
  • case 2:
  • _get_dev_var_value(literal_string(1213),0,18382);
  • LvlPt02 = level_value_vol_table;
  • send_command_trans(240,0);
  • break;
  • case 3:
  • _get_dev_var_value(literal_string(1213),0,18383);
  • LvlPt03 = level_value_vol_table;
  • send_command_trans(240,1);
  • break;
  • case 4:
  • _get_dev_var_value(literal_string(1213),0,18384);
  • LvlPt04 = level_value_vol_table;
  • send_command_trans(240,1);


请登录以获得完整内容