mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
32_yowsup.pm: added sent reading
git-svn-id: https://svn.fhem.de/fhem/trunk@8802 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2d3ef78eee
commit
e9bb81092c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user