net_write_* 读取值
net_write_bool(entity_id u32,id_index i64,addr i64,value bool);
net_write_float(entity_id u32,id_index i64 ,addr i64,value float);
输入参数
- entity_id: 实体索引
- id_index: 数组索引
- addr: 地址索引
- value: 值
输出参数
- 对应数据类型
例子
// 如读取手爪到位信号写入通信数组
read_io(entity.index,0,0).then(|ok| {
net_write_bool(entity.index,2,0,ok);
});
作者:力博特 创建时间:2025-10-27 17:00
最后编辑:力博特 更新时间:2025-11-11 18:53
最后编辑:力博特 更新时间:2025-11-11 18:53