Page 923 - 3-2
P. 923
public static String textTemp;
ListItem Item;
static String detector="";
static String addr="";
static String room="";
static String fire="";
static String spark="";
static String gas="";
static String temp="";
static int det1 =0;
String[] notDetector = new String[4];
String[] notAddr = new String[4];
String[] notRoom = new String[4];
String[] notFire = new String[4];
String[] disRoom = new String[4];
String[] notSpark = new String[4];
String[] notGas = new String[4];
String[] notTemp = new String[4];
int ja1;
int notFlag=0;
public void onCreate(){
super.onCreate();
Thread myThread = new Thread(this);
myThread.start();
}
@Override
public IBinder onBind(Intent intent) {
// TODO: Return the communication channel to the service.
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public void run() {
while (true){
StringBuilder jsonHtml = new StringBuilder();
// String us ="301";
Vector<ListItem> listItem = new Vector<ListItem>();
try {
try {
URL url = new URL("http://192.168.0.101/data4.php");
// 서버의 라즈베리파이 IP 주소와 그 안에 있는 php 파일
// 연결 url 설정
- 923 -