Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX read c #

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    KNX read c #

    Hallo,
    I need to know how can I read initial values from sensors in c#. I found an example that give the new values ( after the value is changed ) but I need also the first values.
    L G
    Fariz

    #2
    You would have to ask for them with a GroupValueRead Telegram. There has to be one Communication object with the Read flag set. After you issue the GroupValueRead the device with the Read flag will send a GroupValueResponse telegram.
    Depending on your example this telegram can be read just like if it was a new value (which would normally be a GroupValueWrite).

    Kommentar


      #3
      Zitat von meti Beitrag anzeigen
      You would have to ask for them with a GroupValueRead Telegram. There has to be one Communication object with the Read flag set. After you issue the GroupValueRead the device with the Read flag will send a GroupValueResponse telegram.
      Depending on your example this telegram can be read just like if it was a new value (which would normally be a GroupValueWrite).
      Thank you , but this I did not find in C# , which library?

      Kommentar


        #4
        Sorry I don't know anything about C#. This is just the way the KNX protocol works.

        Kommentar


          #5
          Falcon provides for .NET (C#) ReadValue function for this. Here's an example from Falcon Help:
          Code:
          using (Bus bus = new Bus(UsbConnectorParameters.FromAddress("1.1.200")))      
          {
              bus.Connect();
              bool oneBitValue = (bool)bus.ReadValue("1/1/2");
          }
          Winston Churchill hat mal gesagt: "Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance.“

          Kommentar


            #6
            Zitat von xrk Beitrag anzeigen
            Falcon provides for .NET (C#) ReadValue function for this. Here's an example from Falcon Help:
            Code:
            using (Bus bus = new Bus(UsbConnectorParameters.FromAddress("1.1.200")))
            {
            bus.Connect();
            bool oneBitValue = (bool)bus.ReadValue("1/1/2");
            }

            Super. Thanks

            Kommentar

            Lädt...
            X