63 |
63 |
64 foreach($rows as $item) { |
64 foreach($rows as $item) { |
65 if ($item['direction'] == "IN_BIN") { |
65 if ($item['direction'] == "IN_BIN") { |
66 $sensors[] = array( |
66 $sensors[] = array( |
67 'uuid' => $item['uuid'], |
67 'uuid' => $item['uuid'], |
68 'name' => $item['description']." ".$item['comment'] |
68 'name' => $item['address']." ".$item['comment'] |
69 ); |
69 ); |
70 } |
70 } |
71 } |
71 } |
72 header("Content-type: application/json"); |
72 header("Content-type: application/json"); |
73 exit(json_encode($sensors)); |
73 exit(json_encode($sensors)); |