Loading…
Loading…
方法名称: set_pressure_units
方法ID: 0x4030
方法标签: Set pressure units
方法描述: Change units of Pressure Value
- {
- long varid[3];
- char status[3];
- long old_unit;
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- varid[0] = resolve_record_ref(resolve_array_ref(172,1),203);
- old_unit = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),203));
- _get_dev_var_value(literal_string(119),0,resolve_record_ref(resolve_array_ref(172,1),203));
- send(44,status);
- if (status[0])
- {
- display_response_status(44,status[0]);
- _iassign(resolve_record_ref(resolve_array_ref(172,1),203),old_unit);
- }
请登录以获得完整内容