www/drop_contacts.php

changeset 708
13555c27b592
parent 703
344470c6bb1c
equal deleted inserted replaced
707:b435bf0bf24a 708:13555c27b592
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));

mercurial