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