Back to project page LeBlue.
The source code is released under:
Apache License
If you think the Android project LeBlue 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 houtbecke.rs.le; //from ww w . j ava 2 s. c om import java.util.HashMap; import java.util.Map; public enum LeGattStatus { SUCCESS, READ_NOT_PERMITTED, WRITE_NOT_PERMITTED, INSUFFICIENT_AUTHENTICATION, REQUEST_NOT_SUPPORTED, INSUFFICIENT_ENCRYPTION, INVALID_OFFSET, INVALID_ATTRIBUTE_LENGTH, FAILURE; public static LeGattStatus fromString(String status) { for (LeGattStatus leGattStatus: LeGattStatus.values()) if (leGattStatus.toString().equals(status)) return leGattStatus; return null; } }