|
@@ -42,7 +42,6 @@ public class BeaconService extends Service implements BeaconConsumer, RangeNotif
|
|
public static final String NURSE_NAME_KEY = BeaconService.class.getName() + ".NURSE_NAME_KEY";
|
|
public static final String NURSE_NAME_KEY = BeaconService.class.getName() + ".NURSE_NAME_KEY";
|
|
|
|
|
|
private static final String UPDATE_BEACON_INFO_URL = "http://id.wdklian.com:10018/api/Beacon/UpdateBeaconPosition";
|
|
private static final String UPDATE_BEACON_INFO_URL = "http://id.wdklian.com:10018/api/Beacon/UpdateBeaconPosition";
|
|
-
|
|
|
|
private static final String BEACON_FORMAT = "m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24";
|
|
private static final String BEACON_FORMAT = "m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24";
|
|
|
|
|
|
private static final ExecutorService BEACON_HANDLER = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), new BeaconThreadFactory());
|
|
private static final ExecutorService BEACON_HANDLER = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(), new BeaconThreadFactory());
|
|
@@ -147,7 +146,7 @@ public class BeaconService extends Service implements BeaconConsumer, RangeNotif
|
|
Log.e(TAG,"obj "+obj.toString());
|
|
Log.e(TAG,"obj "+obj.toString());
|
|
final Request request = new Request.Builder()
|
|
final Request request = new Request.Builder()
|
|
.url(UPDATE_BEACON_INFO_URL)
|
|
.url(UPDATE_BEACON_INFO_URL)
|
|
- .put(RequestBody.create(obj.toString(), MediaType.parse("application/json")))
|
|
|
|
|
|
+ .post(RequestBody.create(obj.toString(), MediaType.parse("application/json")))
|
|
.build();
|
|
.build();
|
|
|
|
|
|
okHttpClient.newCall(request).execute();
|
|
okHttpClient.newCall(request).execute();
|