debugging lines suppressed
This commit is contained in:
parent
922904935b
commit
b7d2b8def5
@ -96,8 +96,8 @@ while(1)
|
||||
//test if the last tag is completed or not
|
||||
if ($key === $lastKey)
|
||||
{
|
||||
print("repere 1");
|
||||
var_dump($token);
|
||||
//print("repere 1");
|
||||
//var_dump($token);
|
||||
if (isset($token[0]))
|
||||
{
|
||||
logger(DEBUG, _("ẗoken[0] is set"));
|
||||
@ -150,12 +150,12 @@ function mkLinkyDatas($data)
|
||||
{
|
||||
static $started = false;
|
||||
static $linkyDatas;
|
||||
echo $data[0] . EOL;
|
||||
//echo $data[0] . EOL;
|
||||
logger(DEBUG, _("function mkLinkyDatas"));
|
||||
if (!$started)
|
||||
{
|
||||
logger(DEBUG, _("Array not started"));
|
||||
echo "is ADSC ?" . $data[0] .EOL;
|
||||
//echo "is ADSC ?" . $data[0] .EOL;
|
||||
if ($data[0] == "ADSC")
|
||||
{
|
||||
logger(DEBUG, _("ADSC found, i start making array"));
|
||||
@ -163,7 +163,7 @@ function mkLinkyDatas($data)
|
||||
//$linkyDatas[][$data[0]] = $data[1];
|
||||
$linkyDatas = "{";
|
||||
json_add($data, $linkyDatas);
|
||||
echo $data[0] . "=>" . $data[1] .EOL;
|
||||
//echo $data[0] . "=>" . $data[1] .EOL;
|
||||
}
|
||||
}else
|
||||
{
|
||||
@ -176,14 +176,14 @@ function mkLinkyDatas($data)
|
||||
$linkyDatas = "{"; //Reinitialisation of array
|
||||
//$linkyDatas[][$data[0]] = $data[1];
|
||||
json_add($data, $linkyDatas);
|
||||
echo $data[0] . "=>" . $data[1] .EOL;
|
||||
//echo $data[0] . "=>" . $data[1] .EOL;
|
||||
}else
|
||||
{
|
||||
logger(DEBUG, _("Adding data to array"));
|
||||
//$linkyDatas[][$data[0]] = $data[1];
|
||||
$linkyDatas.= ",";
|
||||
json_add($data, $linkyDatas);
|
||||
echo $data[0] . "=>" . $data[1] . EOL;
|
||||
//echo $data[0] . "=>" . $data[1] . EOL;
|
||||
}
|
||||
}
|
||||
//echo $linkyDatas[array_key_last($linkyDatas)][$data[0]] ." => " . $linkyDatas[array_key_last($linkyDatas)][$data[1]];
|
||||
|
@ -40,7 +40,7 @@ function messageReceived($message)
|
||||
{
|
||||
$topic = explode ("/", $message->topic, 2); // get topic name
|
||||
$fnTree = explode ("/" , $topic[1]); // get friendlyname
|
||||
echo $topic[0] . " => " . $topic[1] . EOL;
|
||||
//echo $topic[0] . " => " . $topic[1] . EOL;
|
||||
logger(INFO, print_r(json_decode($message->payload), true));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user