le,line=readbyte(line)
da,line=readbyte(line)
sa,line=readbyte(line)
- if sd==gf.DATA_REQUEST and da==0xFE:
+ if sd==gf.DATA_REQUEST and da==gf.DA_BROADCAST_CONNECT:
typ="CONNECTION_REQUEST ===>"
- if sd==gf.DATA_REQUEST and da==0xFF:
+ if sd==gf.DATA_REQUEST and da==gf.DA_BROADCAST_REQUEST:
typ="DATA_REQUEST ===>"
- if sd==gf.DATA_MESSAGE and da==0xF7:
+ if sd==gf.DATA_MESSAGE and da==gf.DA_BROADCAST_MESSAGE:
typ="DATA_MESSAGE ===>"
print(typ)
print("Length:",le,"Destination Addr:",da,"Source Addr:",sa)
tmp,line=readbyte(line)
val[i]=(val[i]<<8)+tmp
if size1>0 and size2>0:
- print("Id:",ids[i],repr(gf.params[cl][ids[i]]),"=",val[i])
+ print("Id:",ids[i],repr(gf.params[cl][ids[i]]),"=",val[i])
elif size1>0:
- print("Id:",ids[i],repr(gf.params[cl][ids[i]]))
+ print("Id:",ids[i],repr(gf.params[cl][ids[i]]))
elif size2>0:
print("=",val[i])
return ids,val,line