Back to project page BleSensorTag.
The source code is released under:
MIT License
If you think the Android project BleSensorTag 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 sample.ble.sensortag.info; //from www . j av a 2 s . c o m import java.util.HashMap; /** * Created by steven on 10/7/13. */ public class TiInfoServices { private static HashMap<String, TiInfoService> SERVICES = new HashMap<String, TiInfoService>(); static { final TiGattSerivce gapSerivce = new TiGattSerivce(); final TiGapSerivce gattSerivce = new TiGapSerivce(); final TiDeviceInfoSerivce deviceInfoSerivce = new TiDeviceInfoSerivce(); SERVICES.put(gapSerivce.getUUID(), gapSerivce); SERVICES.put(gattSerivce.getUUID(), gattSerivce); SERVICES.put(deviceInfoSerivce.getUUID(), deviceInfoSerivce); } public static TiInfoService getService(String uuid) { return SERVICES.get(uuid); } }