From: Jim D. <ji...@du...> - 2013-04-21 13:05:15
|
On 04/20/2013 04:44 PM, Eloy Paris wrote: > You could even make the "N6Z$payload_length" format just "N6Z" since it > seems like you do not need to specify a count for the Z format. Thanks for the help Eloy. After reading your comments and trying some of them, I discovered what was necessary. First I used "N6Z$payload_length". Second, I change the call to _ToServer to this: $self->_ToServer($path,length($payload)+1, $msg_write, $value_length, 0, $payload); All of this code was a direct port from OWNet.pm (owfs). I noticed that the _ToServer read calls had length($payload)+1 but the writes did not. Using +1 on writes solved my problem. This might be a bug with owfs OWNet.pm too, but for some reason it works outside of misterhouse with direct use of OWNet.pm In any event, I fell comfortable with these fixes and solve my problem. Regards, Jim |