From 36e293786d76be88551d26ffbe4439b3a0aac8e3 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Mon, 22 Jun 2015 19:20:36 +0000 Subject: [PATCH] 32_yowsup.pm: added sent reading git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8802 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/32_yowsup.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fhem/FHEM/32_yowsup.pm b/fhem/FHEM/32_yowsup.pm index 6b6dd9596..3fb04d84a 100644 --- a/fhem/FHEM/32_yowsup.pm +++ b/fhem/FHEM/32_yowsup.pm @@ -246,6 +246,8 @@ yowsup_Set($$@) } elsif( $cmd eq 'send' ) { return "MASTER not connected" if( !$phash->{PID} ); + readingsSingleUpdate( $hash, "sent", join( ' ', @args ), 1 ); + return yowsup_Write( $phash, "/message send $hash->{NUMBER} '". join( ' ', @args ) ."'" ); return undef; @@ -266,6 +268,8 @@ yowsup_Set($$@) return undef; } elsif( $cmd eq 'send' ) { + readingsSingleUpdate( $hash, "sent", join( ' ', @args ), 1 ); + return yowsup_Write( $hash, "/message send ". shift(@args) ." '". join( ' ', @args ) ."'" ); return undef;