> On 15 Oct 2016, at 15:23, Henry Pootel <henry.poo...@regall.net> wrote:
>
> root@CONSTANT:~> owwrite -s 172.19.19.10 /relay_setting/RELAY_SET `cat ee`
I see a couple of problems here.
First, owwrite seems to have problems with nul characters in his arguments, but
please wait for confirmation by Jan.
Second, assuming you are using bash, the command should be
$ owwrite -s 172.19.19.10 /relay_setting/RELAY_SET "$(< ee)"
Brief explanation
$(command) is preferred over `command` see
http://mywiki.wooledge.org/BashFAQ/082
$(<pathname) is a shortcut for $(cat pathname) see bash manpage
double quotes are necessary because command substitution is subjected to word
splitting, if not protected by double quotes.
In other words with your command the shell will split the content of ‘ee' at
whitespace, thus causing further problems.
You can confirm that owserver is functioning properly with pyownet
http://pyownet.readthedocs.io/en/latest/
<http://pyownet.readthedocs.io/en/latest/>
>>> data = open('ee', 'rb').read()
>>> from pyownet import protocol
>>> owp = protocol.proxy(host=‘172.19.19.10’)
>>> owp.write('/relay_setting/RELAY_SET', data)
From my experiments, with pyownet+owserver the data is transmitted cleanly.
Stefano
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers