mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Working gammu adapter
This commit is contained in:
parent
47e4f5a900
commit
99bb1bd46c
3 changed files with 91 additions and 2 deletions
|
@ -81,6 +81,7 @@ namespace controllers\internals;
|
|||
$adapter = new $adapter_classname($phone['number'], $phone['adapter_datas']);
|
||||
|
||||
//Try send a message
|
||||
/*
|
||||
$destination = '+33669529042';
|
||||
$text = "Coucou c'est pour un test !";
|
||||
$flash = false;
|
||||
|
@ -89,8 +90,12 @@ namespace controllers\internals;
|
|||
if (!$uid)
|
||||
{
|
||||
echo "Cannot send message to $destination\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
echo "Send a message to $destination with uid $uid \n";
|
||||
*/
|
||||
$smss = $adapter->read();
|
||||
var_dump($smss);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue