Back to project page BLE-Heart-rate-variability-demo.
The source code is released under:
MIT License
If you think the Android project BLE-Heart-rate-variability-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sample.hrv.info; //from w w w. ja v a2s. com import java.util.HashMap; /** * Created by steven on 10/7/13. * Modified by olli on 3/28/2014. */ public class BleInfoServices { private static HashMap<String, BleInfoService> SERVICES = new HashMap<String, BleInfoService>(); static { final BleGattService gapSerivce = new BleGattService(); final BleGapService gattSerivce = new BleGapService(); final BleDeviceInfoService deviceInfoSerivce = new BleDeviceInfoService(); SERVICES.put(gapSerivce.getUUID(), gapSerivce); SERVICES.put(gattSerivce.getUUID(), gattSerivce); SERVICES.put(deviceInfoSerivce.getUUID(), deviceInfoSerivce); } public static BleInfoService getService(String uuid) { return SERVICES.get(uuid); } }