Ejemplo n.º 1
0
 public int WriteUInt16(DeviceAddress address, ushort value)
 {
     if (IsClosed)
     {
         return(-1);
     }
     return(Tuxeip_Class._WriteLgxData(session, connection, GetAddress(address), LGX_Data_Type.LGX_INT, &value, 1));
 }
Ejemplo n.º 2
0
 public int WriteFloat(DeviceAddress address, float value)
 {
     if (IsClosed)
     {
         return(-1);
     }
     return(Tuxeip_Class._WriteLgxData(session, connection, GetAddress(address), LGX_Data_Type.LGX_REAL, &value, 1));
 }
Ejemplo n.º 3
0
 public int WriteBit(DeviceAddress address, bool bit)
 {
     if (IsClosed)
     {
         return(-1);
     }
     return(Tuxeip_Class._WriteLgxData(session, connection, GetAddress(address), LGX_Data_Type.LGX_BOOL, &bit, 1));
 }
Ejemplo n.º 4
0
 public int WriteBits(DeviceAddress address, byte bits)
 {
     if (IsClosed)
     {
         return(-1);
     }
     return(Tuxeip_Class._WriteLgxData(session, connection, GetAddress(address), LGX_Data_Type.LGX_SINT, &bits, 1));
 }
Ejemplo n.º 5
0
        public unsafe int WriteBytes(DeviceAddress address, byte[] bit)
        {
            if (IsClosed)
            {
                return(-1);

                fixed(void *b = bit)
                {
                    return(Tuxeip_Class._WriteLgxData(session, connection, GetAddress(address), LGX_Data_Type.LGX_BITARRAY, b, 1));
                }
        }