Example #1
0
 def groupswrite(self,dst,val):
   '''Submit group address and new value'''
   con = EIBSocketURL(self.eibd)
   grp = EIBOpenT_Group(con,readgaddr(dst),1)
   if grp == -1: return grp
   res = EIBSendAPDU(con,self.int2hex(val | 0x80,2))
   EIBClose(con)
   return res
Example #2
0
 def groupswrite(self, dst, val):
     '''Submit group address and new value'''
     con = EIBSocketURL(self.eibd)
     grp = EIBOpenT_Group(con, readgaddr(dst), 1)
     if grp == -1: return grp
     res = EIBSendAPDU(con, self.int2hex(val | 0x80, 2))
     EIBClose(con)
     return res
Example #3
0
 def raw_cache_read_sync(self,dst):
   con = EIBSocketURL(self.eibd)
   res = EIB_Cache_Read_Sync(con,readgaddr(dst),0)
   EIBClose(con)
   return res
Example #4
0
 def raw_cache_read_sync(self, dst):
     con = EIBSocketURL(self.eibd)
     res = EIB_Cache_Read_Sync(con, readgaddr(dst), 0)
     EIBClose(con)
     return res