我想用Air202发送报警信息,需要以二进制数据的方式进行发送

local rs_dat={0xfe,0xfe,0x31,0,0xaa,0x55}

if snd(rs_dat,"LOCRPT")then

用上面这条来发送,下载运行提示运行错误,怎么办?

请先 登录 后评论

1 个回答

技术销售Delectate
擅长:IT

local rs_dat={0xfe,0xfe,0x31,0,0xaa,0x55}

local tmp_str

for i =1, #rs_dat do

    tmp_str = tmp_str..rs_dat[i]

end

if snd(tmp_str,"LOCRPT")then

请先 登录 后评论
  • 0 关注
  • 0 收藏,2013 浏览
  • 阿憨 提出于 2018-10-13 12:04

相似问题