위치 전송 주기를 10초에서 5초로 변경
This commit is contained in:
2
App.tsx
2
App.tsx
@@ -15,7 +15,7 @@ import BackgroundTimer from 'react-native-background-timer';
|
||||
import axios from 'axios';
|
||||
|
||||
const WEBSITE_URL = 'https://logistream.kpslp.kr';
|
||||
const LOCATION_UPDATE_INTERVAL = 10000; // 10초마다 위치 업데이트
|
||||
const LOCATION_UPDATE_INTERVAL = 5000; // 5초마다 위치 업데이트
|
||||
const API_ENDPOINT = 'https://logistream.kpslp.kr/api/location'; // 서버 API 엔드포인트
|
||||
|
||||
interface LocationData {
|
||||
|
||||
Reference in New Issue
Block a user