Ejemplo n.º 1
0
 public static bool SetBinary(this IRtTag tag, byte[] value)
 {
     return(tag.Set(RtValue.Create(value)));
 }
Ejemplo n.º 2
0
 public static bool SetText(this IRtTag tag, string value)
 {
     return(tag.Set(RtValue.Create(value)));
 }
Ejemplo n.º 3
0
 public static bool SetNumeric(this IRtTag tag, double value)
 {
     return(tag.Set(RtValue.Create(value)));
 }
 public static bool SetJson <T>(this IRtConnector conn, string topic, T json, IRtTagOptions options = null)
 {
     return(conn.WriteValue(topic, RtValue.Create(JsonSerializer.Serialize(json)), options));
 }
 public static bool SetBinary(this IRtConnector conn, string topic, byte[] value, IRtTagOptions options = null)
 {
     return(conn.WriteValue(topic, RtValue.Create(value), options));
 }
 public static bool SetNumeric(this IRtConnector conn, string topic, double value, IRtTagOptions options = null)
 {
     return(conn.WriteValue(topic, RtValue.Create(value), options));
 }