You should please first confirm that this is a bug of OWNET C# and not a general problem. Please try to issue a
$ owread /1F.0F6305000000/aux/28.CBEDC8010000/temperature from the shell, when you get the error with C#. If no error occurs with owread then it should be a C# issue. However, from your debug output it seems to be that same issue I had with my own pyonwet and fixed with the help of Johan Ström. Please see this pull request https://github.com/miccoli/pyownet/pull/1 When a read requires to much time, owserver will return a ping frame instead of the actual value. The C# library should handle this by simply discarding the empty ping frame and keep waiting for the actual response. Stefano > On 16 Jun 2015, at 11:45, Jim Russell <jim.russ...@live.com> wrote: > > Hi, > > I have a OWFS 3.1p0 compiled on a Windows Server 2012 x64 using Cygwin. > OWSERVER is running and with OWHTTPD running and connected. I am able to > browse my devices using OWHTTPD and see settings and temperature readings as > normal. I am also able to do this remotely (over a VPN). So the server part > appears to be operating normally. > > However, I am trying to develop a small application using Visual Studio and > the OWNET C# library provided by Viktor Vorobjov > (https://github.com/straga/owfs.ownet > <https://github.com/straga/owfs.ownet>). So far my application connects > fine, and I can read all of the directories: > > OUTPUT: > 81.14D52D000000 > 1F.746205000000 > 1F.826205000000 > 1F.1A6305000000 > 1F.1D6305000000 > 1F.0F6305000000 > 1F.6F6205000000 > bus.0 > uncached > settings > system > statistics > structure > > As well, I’m able to read many variables from different devices with no > problems. However, when I try to read a temperature, the return value is > NULL: > > READ: > Path="/1F.0F6305000000/aux/28.CBEDC8010000/temperature" > > DEBUG: > 1:05:37 PM Thursday, June 11, 2015 :* OWNET DEBUG [sendPacket] : > version:0, payload:49, function/ret:2, flags:263, datalen:4096, offset/owtap > flags:0 > ------------------------------- > 1:05:40 PM Thursday, June 11, 2015 :* OWNET DEBUG [getPacket (Server > Persistance support: False)] : > version:0, payload:-1, function/ret:0, flags:0, datalen:0, offset/owtap > flags:0 > > I’ve tried modifying various parameters (DataLen, Persistance, Timeout) and > using “uncached” with no success. > > I know that C# is not part of this project but I seem to remember having the > same issue when messing around with the OWNET.py code. > > Any ideas? > > Thanks. > > ------------------------------------------------------------------------------ > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > <mailto:Owfs-developers@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/owfs-developers > <https://lists.sourceforge.net/lists/listinfo/owfs-developers>
------------------------------------------------------------------------------
_______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers