重庆标签
采集烟雾状态
for(idx=0; idx<Max_TCBUS_dev_count;idx++)
{
if((tcbus_online[idx].dev_type==1) || (tcbus_online[idx].dev_type==2))//只要有烟雾或烟温一体的就退出
break;
}
if(idx==Max_TCBUS_dev_count)
{
resp[pos++] = DT_NULL;//没有连接
resp[pos++] = DAR_OBJECT_UNAVAILABLE;
break;
}
resp[pos++] = 1;//结果类型是数据
resp[pos++] = DT_BITSTRING;
resp[pos++] = 0x10;//选择类型long还是double long这些东西。注意位串的长度是指bit
resp[pos++] = smoke_alarm_state;
resp[pos++] = 0;