diff --git a/Arduino/bousole/bousole.ino b/Arduino/bousole/bousole.ino new file mode 100644 index 0000000..558eb81 --- /dev/null +++ b/Arduino/bousole/bousole.ino @@ -0,0 +1,113 @@ +#include +#include +#include + +//#define debug true + +#define PIN 5 + +//Assign unique ID to the sensor +LSM303 mag; +compass.m_min = (LSM303::vector){-363, -647, -609}; +compass.m_max = (LSM303::vector){+880, +1120, +638}; + +//initiate wheel +Adafruit_NeoPixel strip = Adafruit_NeoPixel(27, PIN, NEO_GRB + NEO_KHZ800); + +// assign pixels to directions +const int[] N = {23, 0, 1}; +const int[] NE = { 2, 3, 4}; +const int[] E = { 5, 6, 7}; +const int[] SE = { 8, 9,10}; +const int[] S = {11,12,13}; +const int[] SW = {14,15,16}; +const int[] W = {17,18,19}; +const int[] NW = {20,21,22}; + +// variable de la valeur initiale de "Nord" +int[] indicators = {23, 0, 1}; +//luminosité +const byte level = 10; + +float heading; + +void setup() { + + strip.begin(); + strip.show(); + + #ifdef debug + Serial.begin(9600); + Serial.println("Magnetometer Test"); + Serial.println(""); + + if(!mag.begin()){ + Serial.println("Ooops, pas de LSM303 détecté ... Vérifiez vos cablages!"); + while(1); + } + #endif + + if(mag.begin()){ + colorWipe(strip.Color(55,0,0),50); + } +} + +void loop() { + + sensors_event_t event; + mag.getEvent(&event); + + const float Pi = 3.14159; + + heading = (atan2(event.magnetic.y, event.magnetic.x) * 180) / Pi; + + if (heading < 0) { + heading = 360 + heading; + } + + #ifdef debug + Serial.print("Compass Heading : "); + Serial.println(heading); + #endif + + setIndicator(); + showIndicator(); + delay(50); +} + +void setIndicator(){ + if ((heading >= 22.5)&&(heading < 112.5)){ // NE et E + if ((heading >= 22.5)&&(heading < 67.5)){ //NE + indicators = NE; + } // end NE + if ((heading >= 67.5)&&(heading < 112.5)){//E + indicators = E; + } // end E + } // end NE et E + if ((heading >= 112.5) && (heading < 202.5)){ // SE et S + if ((heading >= 112.5) && (heading < 157.5)){//SE + indicators = SE; + } // end SW + if ((heading >= 157.5) && (heading < 202.5)){//S + indicators = S; + } // end S + } // end SE et S + if ((heading < 202.5) && (heading > 292.5)){ // SW et W + if ((heading < 202.5) && (heading > 247.5){//SW + indicators = SW; + } // end SW + if ((heading < 247.5) && (heading > 292.5){//W + indicators = W; + } // end W + } // end SW et W + if ((heading >= 292.5) || (heading < 22.5)){ // NW et N + if ((heading >= 292.5) && (heading < 337.5)){//NW + indicators = NW; + } // end NW + if ((heading >= 337.5) || (heading < 22.5)){//N + indicators = N; + } // end N + } // end NW et N +} //end setIndicator() + + diff --git a/Arduino/fonction-packets-reader/fonction-packets-reader.ino b/Arduino/fonction-packets-reader/fonction-packets-reader.ino new file mode 100644 index 0000000..ee250d6 --- /dev/null +++ b/Arduino/fonction-packets-reader/fonction-packets-reader.ino @@ -0,0 +1,144 @@ +#include +#include +#include + +#define NEOPIXEL_VERSION_STRING "Neopixel v2.0" + +#define MAXCOMPONENTS 4 +uint8_t *pixelBuffer = NULL; +uint8_t width = 0; +uint8_t height = 0; +uint8_t stride; +uint8_t componentsValue; +bool is400Hz; +uint8_t components = 3; // only 3 and 4 are valid values + +Adafruit_NeoPixel neopixel = Adafruit_NeoPixel(); + +// BLE Service +BLEDis bledis; +BLEUart bleuart; + +String direction; +int distance; + +void setup() +{ + Serial.begin(115200); + Serial.println("Adafruit Bluefruit Neopixel Test"); + Serial.println("--------------------------------"); + + Serial.println(); + Serial.println("Please connect using the Bluefruit Connect LE application"); + + // Config Neopixels + neopixel.begin(); + + // Init Bluefruit + Bluefruit.autoConnLed(true); + Bluefruit.begin(); + // Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4 + Bluefruit.setTxPower(4); + Bluefruit.setName("Bluefruit52"); + Bluefruit.setConnectCallback(connect_callback); + + // Configure and Start Device Information Service + bledis.setManufacturer("Adafruit Industries"); + bledis.setModel("Bluefruit Feather52"); + bledis.begin(); + + // Configure and start BLE UART service + bleuart.begin(); + + // Set up and start advertising + startAdv(); +} + +void startAdv(void) +{ + // Advertising packet + Bluefruit.Advertising.addFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE); + Bluefruit.Advertising.addTxPower(); + + // Include bleuart 128-bit uuid + Bluefruit.Advertising.addService(bleuart); + + // Secondary Scan Response packet (optional) + // Since there is no room for 'Name' in Advertising packet + Bluefruit.ScanResponse.addName(); + + /* Start Advertising + * - Enable auto advertising if disconnected + * - Interval: fast mode = 20 ms, slow mode = 152.5 ms + * - Timeout for fast mode is 30 seconds + * - Start(timeout) with timeout = 0 will advertise forever (until connected) + * + * For recommended advertising interval + * https://developer.apple.com/library/content/qa/qa1931/_index.html + */ + Bluefruit.Advertising.restartOnDisconnect(true); + Bluefruit.Advertising.setInterval(32, 244); // in unit of 0.625 ms + Bluefruit.Advertising.setFastTimeout(30); // number of seconds in fast mode + Bluefruit.Advertising.start(0); // 0 = Don't stop advertising after n seconds +} + +void connect_callback(uint16_t conn_handle) +{ + char central_name[32] = { 0 }; + Bluefruit.Gap.getPeerName(conn_handle, central_name, sizeof(central_name)); + + Serial.print("Connected to "); + Serial.println(central_name); + + Serial.println("Please select the 'Neopixels' tab, click 'Connect' and have fun"); +} + +void loop() { + + if ( Bluefruit.connected() && bleuart.notifyEnabled() ) { + + int command = bleuart.read(); + + switch (command) { + case 'D': { // Set Direction + setDirection(); + break; + } + case 'L': { // Set Distance + setDistance(); + break; + } + } + } +} + +String readData(){ //read sent data + String buffer; + while(bleuart.available()){ + buffer += (char) bleuart.read(); + } + return buffer; +} + +int readDataAsNumber() { + String buffer; + while(bleuart.available()){ + buffer += bleuart.read() - 48; + } + return buffer.toInt(); +} + +void setDirection() { + Serial.print("setDirection : "); + direction = readData(); + Serial.println("Data : " + direction); +} + +void setDistance(){ + Serial.print("setDistance : "); + distance = readData().toInt(); + Serial.println("Data: " + distance ); +} + + + diff --git a/Arduino/packets-reader/packets-reader.ino b/Arduino/packets-reader/packets-reader.ino index 307ebf3..c511a82 100644 --- a/Arduino/packets-reader/packets-reader.ino +++ b/Arduino/packets-reader/packets-reader.ino @@ -57,37 +57,27 @@ void startAdv(void){ } void loop() { - - while(Serial.available()){ //envoie de donnees - delay(2); - uint8_t buf[64]; - int count = Serial.readBytes(buf,sizeof(buf)); - Serial.print("TX: "); - for(int i=0; i - + + diff --git a/Ble_Scan_Connect_App/app/src/main/java/com/example/mrquentin/ble_scan_connect_app/MainActivity.java b/Ble_Scan_Connect_App/app/src/main/java/com/example/mrquentin/ble_scan_connect_app/MainActivity.java index eac5a69..540712c 100644 --- a/Ble_Scan_Connect_App/app/src/main/java/com/example/mrquentin/ble_scan_connect_app/MainActivity.java +++ b/Ble_Scan_Connect_App/app/src/main/java/com/example/mrquentin/ble_scan_connect_app/MainActivity.java @@ -7,6 +7,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; +import android.content.pm.PackageManager; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; @@ -31,7 +32,6 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte ListView lvNewDevices; - // Create a BroadcastReceiver for ACTION_FOUND private final BroadcastReceiver mBroadcastReceiver1 = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/LICENSE b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/LICENSE new file mode 100644 index 0000000..6b156fe --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/LICENSE @@ -0,0 +1,675 @@ +GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + {one line to give the program's name and a brief idea of what it does.} + Copyright (C) {year} {name of author} + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + {project} Copyright (C) {year} {fullname} + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/README.md b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/README.md new file mode 100644 index 0000000..08d483a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/README.md @@ -0,0 +1,226 @@ +| Why? +| Features +| Getting Started +| Licensing +| Wiki +| Toolbox + + + + +

+
+ + + +

+Why? +==== + +Android's BLE stack has some...issues... + +* https://github.com/iDevicesInc/SweetBlue/wiki/Android-BLE-Issues +* https://code.google.com/p/android/issues/detail?id=58381 +* http://androidcommunity.com/nike-blames-ble-for-their-shunning-of-android-20131202/ +* http://stackoverflow.com/questions/17870189/android-4-3-bluetooth-low-energy-unstable + +SweetBlue is a blanket abstraction that shoves all that troublesome behavior behind a clean interface and gracefully degrades when the underlying stack becomes too unstable for even it to handle. + +It’s built on the hard-earned experience of several commercial BLE projects and provides so many transparent workarounds to issues both annoying and fatal that it’s frankly impossible to imagine writing an app without it. It also supports many higher-level constructs, things like atomic transactions for coordinating authentication handshakes and firmware updates, flexible scanning configurations, read polling, transparent retries for transient failure conditions, and, well, the list goes on. The API is dead simple, with usage dependence on a few plain old Java objects and link dependence on standard Android classes. It offers conveniences for debugging and analytics and error handling that will save you months of work - last mile stuff you didn't even know you had to worry about. + +Features +======== + +* Full-coverage API documentation: http://idevicesinc.com/sweetblue/docs/api +* Sample applications. +* Battle-tested in commercial apps. +* Plain old Java with zero API-level dependencies. +* Rich, queryable state tracking that makes UI integration a breeze. +* Automatic service discovery. +* Full support for server role including advertising. +* Easy RSSI tracking with built-in polling and caching, including distance and friendly signal strength calculations. +* Highly configurable scanning with min/max time limits, periodic bursts, advanced filtering, and more. +* Continuous scanning mode that saves battery and defers to more important operations by stopping and starting as needed under the hood. +* Atomic transactions for easily coordinating authentication handshakes, initialization, and firmware updates. +* Automatic striping of characteristic writes greater than [MTU](http://en.wikipedia.org/wiki/Maximum_transmission_unit) size of 20 bytes. +* Undiscovery based on last time seen. +* Clean leakage of underlying native stack objects in case of emergency. +* Wraps Android API level checks that gate certain methods. +* Verbose [logging](https://github.com/iDevicesInc/SweetBlue/wiki/Logging) that outputs human-readable thread IDs, UUIDs, status codes and states instead of alphabet soup. +* Wrangles a big bowl of thread spaghetti behind a nice asynchronous API - make a call on main thread, get a callback on main thread a short time later. +* Internal priority job queue that ensures serialization of all operations so native stack doesn’t get overloaded and important stuff gets done first. +* Optimal coordination of the BLE stack when connected to multiple devices. +* Detection and correction of dozens of BLE failure conditions. +* Numerous manufacturer-specific workarounds and hacks all hidden from you. +* Built-in polling for read characteristics with optional change-tracking to simulate notifications. +* Transparent retries for transient failure conditions related to connecting, getting services, and scanning. +* Comprehensive callback system with clear enumerated reasons when something goes wrong like connection or read/write failures. +* Distills dozens of lines of boilerplate, booby-trapped, native API usages into single method calls. +* Transparently falls back to Bluetooth Classic for certain BLE failure conditions. +* On-the-fly-configurable reconnection loops started automatically when random disconnects occur, e.g. from going out of range. +* Retention and automatic reconnection of devices after BLE off->on cycle or even complete app reboot. +* One convenient method to completely unwind and reset the Bluetooth stack. +* Detection and reporting of BLE failure conditions that user should take action on, such as restarting the Bluetooth stack or even the entire phone. +* Runtime analytics for tracking average operation times, total elapsed times, and time estimates for long-running operations like firmware updates. + + +Getting Started +=============== +1. If using **Android Studio** or **Gradle**... + 1. [Download](http://idevicesinc.com/sweetblue/#tryit) the latest release to a subfolder of your project such as `MyApp/src/main/lib/`. This ZIP contains several samples, precompiled JARS, and API docs and is preferable to downloading from GitHub, which only contains the raw source. + 2. Open the app module's `build.gradle` file. + 3. If building with source, your gradle file should look something like this: + + ``` + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.3' + + defaultConfig { + minSdkVersion 18 + targetSdkVersion 25 + ... + } + + sourceSets { + main.java.srcDirs += 'src/main/lib/sweetblue/src' + main.res.srcDirs += 'src/main/lib/sweetblue/res' + ... + } + ... + } + + ``` + + 4. If you're building with source from github, the sourceSet path is a bit different: + + ``` + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.3' + + defaultConfig { + minSdkVersion 18 + targetSdkVersion 25 + ... + } + + sourceSets { + main.java.srcDirs += 'src/main/lib/sweetblue/library/src/main/java' + main.res.srcDirs += 'src/main/lib/sweetblue/library/src/main/res' + ... + } + ... + } + + ``` + + 5. Else if building with JAR, it should look something like this: + + ``` + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.3' + + defaultConfig { + minSdkVersion 18 + targetSdkVersion 25 + ... + } + + dependencies { + compile fileTree(dir: 'libs', include: '*.jar') + ... + } + ... + } + + ``` + +2. Now add these to the root of `MyApp/AndroidManifest.xml`: + + ``` + + + + + + + + + + + ``` + +3. From your `Activity` or `Service` or `Application` instance, this is all it takes to discover a device, connect to it, and read a characteristic: + ``` + // A ScanFilter decides whether a BleDevice instance will be created from a + // BLE advertisement and passed to the DiscoveryListener implementation below. + final ScanFilter scanFilter = new ScanFilter() + { + @Override public Please onEvent(ScanEvent e) + { + return Please.acknowledgeIf(e.name_normalized().contains("my_device")) + .thenStopScan(); + } + }; + + // New BleDevice instances are provided through this listener. + // Nested listeners then listen for connection and read results. + // Obviously you will want to structure your actual code a little better. + // The deep nesting simply demonstrates the async-callback-based nature of the API. + final DiscoveryListener discoveryListener = new DiscoveryListener() + { + @Override public void onEvent(DiscoveryEvent e) + { + if( e.was(LifeCycle.DISCOVERED) ) + { + e.device().connect(new StateListener() + { + @Override public void onEvent(StateEvent e) + { + if( e.didEnter(BleDeviceState.INITIALIZED) ) + { + e.device().read(Uuids.BATTERY_LEVEL, new ReadWriteListener() + { + @Override public void onEvent(ReadWriteEvent e) + { + if( e.wasSuccess() ) + { + Log.i("", "Battery level is " + e.data_byte() + "%"); + } + } + }); + } + } + }); + } + } +}; + + // This class helps you navigate the treacherous waters of Android M Location requirements for scanning. + // First it enables bluetooth itself, then location permissions, then location services. The latter two + // are only needed in Android M. This must be called from an Activity instance. + BluetoothEnabler.start(this, new DefaultBluetoothEnablerFilter() + { + @Override public Please onEvent(BluetoothEnablerEvent e) + { + if( e.isDone() ) + { + e.bleManager().startScan(scanFilter, discoveryListener); + } + + return super.onEvent(e); + } + }); + ``` + + +Licensing +========= + +SweetBlue is released here under the [GPLv3](http://www.gnu.org/copyleft/gpl.html). Please visit http://idevicesinc.com/sweetblue for proprietary licensing options. In a nutshell, if you're developing a for-profit commercial app you may use this library for free for evaluation purposes, but most likely your use case will require purchasing a proprietary license before you can release your app to the public. See the [FAQ](https://github.com/iDevicesInc/SweetBlue/wiki/FAQ) for more details and https://tldrlegal.com/license/gnu-general-public-license-v3-%28gpl-3%29 for a general overview of the GPL. +

diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/aar/sweetblue-release.aar b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/aar/sweetblue-release.aar new file mode 100644 index 0000000..3672cfb Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/aar/sweetblue-release.aar differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-frame.html new file mode 100644 index 0000000..381fccd --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-frame.html @@ -0,0 +1,297 @@ + + + + + +All Classes (SweetBlue) + + + + + +

All Classes

+
+ +
+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-noframe.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-noframe.html new file mode 100644 index 0000000..60af1df --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/allclasses-noframe.html @@ -0,0 +1,297 @@ + + + + + +All Classes (SweetBlue) + + + + + +

All Classes

+
+ +
+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.Option.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.Option.html new file mode 100644 index 0000000..beeaf8f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.Option.html @@ -0,0 +1,468 @@ + + + + + +BleAdvertisingPacket.Option (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleAdvertisingPacket.Option

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleAdvertisingPacket.Option[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleAdvertisingPacket.Option c : BleAdvertisingPacket.Option.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleAdvertisingPacket.Option valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + +
        +
      • +

        or

        +
        public int or(BitwiseEnum state)
        +
        Description copied from interface: BitwiseEnum
        +
        Does a bitwise OR for this state and the given state.
        +
        +
        Specified by:
        +
        or in interface BitwiseEnum
        +
        +
      • +
      + + + +
        +
      • +

        or

        +
        public int or(int bits)
        +
        Description copied from interface: BitwiseEnum
        +
        Does a bitwise OR for this state and the given bits.
        +
        +
        Specified by:
        +
        or in interface BitwiseEnum
        +
        +
      • +
      + + + +
        +
      • +

        bit

        +
        public int bit()
        +
        Description copied from interface: Flag
        +
        Returns the bit (0x1, 0x2, 0x4, etc.) this enum represents based on the Flag.ordinal().
        +
        +
        Specified by:
        +
        bit in interface Flag
        +
        +
      • +
      + + + +
        +
      • +

        overlaps

        +
        public boolean overlaps(int mask)
        +
        Description copied from interface: BitwiseEnum
        +
        Convenience method for checking if (Flag.bit() & mask) != 0x0.
        +
        +
        Specified by:
        +
        overlaps in interface BitwiseEnum
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.html new file mode 100644 index 0000000..a67d4f2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingPacket.html @@ -0,0 +1,898 @@ + + + + + +BleAdvertisingPacket (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleAdvertisingPacket

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleAdvertisingMode.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleAdvertisingMode.html new file mode 100644 index 0000000..4d36658 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleAdvertisingMode.html @@ -0,0 +1,412 @@ + + + + + +BleAdvertisingSettings.BleAdvertisingMode (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleAdvertisingSettings.BleAdvertisingMode

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleTransmissionPower.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleTransmissionPower.html new file mode 100644 index 0000000..7f2cb58 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.BleTransmissionPower.html @@ -0,0 +1,410 @@ + + + + + +BleAdvertisingSettings.BleTransmissionPower (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleAdvertisingSettings.BleTransmissionPower

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.html new file mode 100644 index 0000000..b661c80 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleAdvertisingSettings.html @@ -0,0 +1,417 @@ + + + + + +BleAdvertisingSettings (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleAdvertisingSettings

+
+
+ +
+
    +
  • +
    +
    +
    public class BleAdvertisingSettings
    +extends Object
    +
    Class used specify Ble Advertising settings.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristic.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristic.html new file mode 100644 index 0000000..2455bc9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristic.html @@ -0,0 +1,319 @@ + + + + + +BleCharacteristic (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicPermission.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicPermission.html new file mode 100644 index 0000000..6a3b477 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicPermission.html @@ -0,0 +1,536 @@ + + + + + +BleCharacteristicPermission (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleCharacteristicPermission

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicProperty.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicProperty.html new file mode 100644 index 0000000..5d8a9d0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicProperty.html @@ -0,0 +1,536 @@ + + + + + +BleCharacteristicProperty (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleCharacteristicProperty

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicWrapper.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicWrapper.html new file mode 100644 index 0000000..22fa614 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleCharacteristicWrapper.html @@ -0,0 +1,331 @@ + + + + + +BleCharacteristicWrapper (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleCharacteristicWrapper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleCharacteristicWrapper
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleConnectionPriority.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleConnectionPriority.html new file mode 100644 index 0000000..664095a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleConnectionPriority.html @@ -0,0 +1,379 @@ + + + + + +BleConnectionPriority (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleConnectionPriority

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptor.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptor.html new file mode 100644 index 0000000..c607644 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptor.html @@ -0,0 +1,257 @@ + + + + + +BleDescriptor (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDescriptor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorPermission.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorPermission.html new file mode 100644 index 0000000..902cc95 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorPermission.html @@ -0,0 +1,536 @@ + + + + + +BleDescriptorPermission (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDescriptorPermission

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorWrapper.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorWrapper.html new file mode 100644 index 0000000..8abad7b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDescriptorWrapper.html @@ -0,0 +1,331 @@ + + + + + +BleDescriptorWrapper (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDescriptorWrapper

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.BondEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.BondEvent.html new file mode 100644 index 0000000..39e5619 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.BondEvent.html @@ -0,0 +1,402 @@ + + + + + +BleDevice.BondListener.BondEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.BondListener.BondEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.Status.html new file mode 100644 index 0000000..256cc62 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.Status.html @@ -0,0 +1,505 @@ + + + + + +BleDevice.BondListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.BondListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.html new file mode 100644 index 0000000..3c989b0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.BondListener.html @@ -0,0 +1,265 @@ + + + + + +BleDevice.BondListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDevice.BondListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.ConnectionFailEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.ConnectionFailEvent.html new file mode 100644 index 0000000..51e2c93 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.ConnectionFailEvent.html @@ -0,0 +1,486 @@ + + + + + +BleDevice.ConnectionFailListener.ConnectionFailEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.ConnectionFailListener.ConnectionFailEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Status.html new file mode 100644 index 0000000..51e977b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Status.html @@ -0,0 +1,609 @@ + + + + + +BleDevice.ConnectionFailListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.ConnectionFailListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Timing.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Timing.html new file mode 100644 index 0000000..d1bceb4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.Timing.html @@ -0,0 +1,386 @@ + + + + + +BleDevice.ConnectionFailListener.Timing (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.ConnectionFailListener.Timing

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.html new file mode 100644 index 0000000..4de8bc1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ConnectionFailListener.html @@ -0,0 +1,293 @@ + + + + + +BleDevice.ConnectionFailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDevice.ConnectionFailListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.DefaultConnectionFailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.DefaultConnectionFailListener.html new file mode 100644 index 0000000..5d86e72 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.DefaultConnectionFailListener.html @@ -0,0 +1,436 @@ + + + + + +BleDevice.DefaultConnectionFailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.DefaultConnectionFailListener

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.ReadWriteEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.ReadWriteEvent.html new file mode 100644 index 0000000..32e15b4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.ReadWriteEvent.html @@ -0,0 +1,908 @@ + + + + + +BleDevice.ReadWriteListener.ReadWriteEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.ReadWriteListener.ReadWriteEvent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    UsesCustomNull
    +
    +
    +
    Enclosing interface:
    +
    BleDevice.ReadWriteListener
    +
    +
    +
    +
    public static class BleDevice.ReadWriteListener.ReadWriteEvent
    +extends Event
    +implements UsesCustomNull
    +
    Provides a bunch of information about a completed read, write, or notification.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Status.html new file mode 100644 index 0000000..ab83cc7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Status.html @@ -0,0 +1,769 @@ + + + + + +BleDevice.ReadWriteListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.ReadWriteListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Target.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Target.html new file mode 100644 index 0000000..7779fed --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Target.html @@ -0,0 +1,467 @@ + + + + + +BleDevice.ReadWriteListener.Target (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.ReadWriteListener.Target

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Type.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Type.html new file mode 100644 index 0000000..455fc5c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.Type.html @@ -0,0 +1,616 @@ + + + + + +BleDevice.ReadWriteListener.Type (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDevice.ReadWriteListener.Type

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.html new file mode 100644 index 0000000..ab42cad --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.ReadWriteListener.html @@ -0,0 +1,247 @@ + + + + + +BleDevice.ReadWriteListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDevice.ReadWriteListener

+
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.StateEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.StateEvent.html new file mode 100644 index 0000000..36b5d82 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.StateEvent.html @@ -0,0 +1,325 @@ + + + + + +BleDevice.StateListener.StateEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.StateListener.StateEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.html new file mode 100644 index 0000000..1e3c7ef --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.StateListener.html @@ -0,0 +1,260 @@ + + + + + +BleDevice.StateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDevice.StateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.WriteBuilder.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.WriteBuilder.html new file mode 100644 index 0000000..63080b1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.WriteBuilder.html @@ -0,0 +1,571 @@ + + + + + +BleDevice.WriteBuilder (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice.WriteBuilder

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.html new file mode 100644 index 0000000..812cf94 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDevice.html @@ -0,0 +1,6189 @@ + + + + + +BleDevice (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDevice

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.AuthTransactionFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.AuthTransactionFactory.html new file mode 100644 index 0000000..9740b47 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.AuthTransactionFactory.html @@ -0,0 +1,223 @@ + + + + + +BleDeviceConfig.AuthTransactionFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDeviceConfig.AuthTransactionFactory<T extends BleTransaction.Auth>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newAuthTxn

        +
        T newAuthTxn()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEvent.html new file mode 100644 index 0000000..29c6f60 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEvent.html @@ -0,0 +1,320 @@ + + + + + +BleDeviceConfig.BondFilter.CharacteristicEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceConfig.BondFilter.CharacteristicEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEventType.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEventType.html new file mode 100644 index 0000000..d55342d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.CharacteristicEventType.html @@ -0,0 +1,365 @@ + + + + + +BleDeviceConfig.BondFilter.CharacteristicEventType (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDeviceConfig.BondFilter.CharacteristicEventType

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.Please.html new file mode 100644 index 0000000..21b1f88 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.Please.html @@ -0,0 +1,342 @@ + + + + + +BleDeviceConfig.BondFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceConfig.BondFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.StateChangeEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.StateChangeEvent.html new file mode 100644 index 0000000..d490e2f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.StateChangeEvent.html @@ -0,0 +1,236 @@ + + + + + +BleDeviceConfig.BondFilter.StateChangeEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceConfig.BondFilter.StateChangeEvent

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.html new file mode 100644 index 0000000..dbe3775 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.BondFilter.html @@ -0,0 +1,298 @@ + + + + + +BleDeviceConfig.BondFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDeviceConfig.BondFilter

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    BleDeviceConfig.DefaultBondFilter
    +
    +
    +
    Enclosing class:
    +
    BleDeviceConfig
    +
    +
    +
    +
    public static interface BleDeviceConfig.BondFilter
    +
    As of now there are two main default uses for this class... +

    + The first is that in at least some cases it's not possible to determine beforehand whether a given characteristic requires + bonding, so implementing this interface on BleDeviceConfig.bondFilter lets the app give + a hint to the library so it can bond before attempting to read or write an encrypted characteristic. + Providing these hints lets the library handle things in a more deterministic and optimized fashion, but is not required. +

    + The second is that some android devices have issues when it comes to bonding. So far the worst culprits + are certain Sony and Motorola phones, so if it looks like Build.MANUFACTURER + is either one of those, BleDeviceConfig.DefaultBondFilter is set to unbond upon discoveries and disconnects. + Please look at the source of BleDeviceConfig.DefaultBondFilter for the most up-to-date spec. + The problem seems to be associated with mismanagement of pairing keys by the OS and + this brute force solution seems to be the only way to smooth things out.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.DefaultBondFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.DefaultBondFilter.html new file mode 100644 index 0000000..d13d9f1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.DefaultBondFilter.html @@ -0,0 +1,340 @@ + + + + + +BleDeviceConfig.DefaultBondFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceConfig.DefaultBondFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleDeviceConfig.DefaultBondFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.InitTransactionFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.InitTransactionFactory.html new file mode 100644 index 0000000..caf8b68 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.InitTransactionFactory.html @@ -0,0 +1,223 @@ + + + + + +BleDeviceConfig.InitTransactionFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleDeviceConfig.InitTransactionFactory<T extends BleTransaction.Init>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInitTxn

        +
        T newInitTxn()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.RefreshOption.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.RefreshOption.html new file mode 100644 index 0000000..c29b737 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.RefreshOption.html @@ -0,0 +1,352 @@ + + + + + +BleDeviceConfig.RefreshOption (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDeviceConfig.RefreshOption

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        BEFORE_SERVICE_DISCOVERY

        +
        public static final BleDeviceConfig.RefreshOption BEFORE_SERVICE_DISCOVERY
        +
        The gatt database will be refreshed after connecting, and before service discovery. This is the original behavior (and current + default) of the library.
        +
      • +
      + + + +
        +
      • +

        AFTER_DISCONNECTING

        +
        public static final BleDeviceConfig.RefreshOption AFTER_DISCONNECTING
        +
        The gatt database will be refreshed after disconnecting from a device. It's been found that at least some devices connect better + when the database is refreshed prior to connecting, if you have connected at least once already.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleDeviceConfig.RefreshOption[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleDeviceConfig.RefreshOption c : BleDeviceConfig.RefreshOption.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleDeviceConfig.RefreshOption valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.html new file mode 100644 index 0000000..03c8394 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceConfig.html @@ -0,0 +1,1496 @@ + + + + + +BleDeviceConfig (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceConfig

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceIterator.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceIterator.html new file mode 100644 index 0000000..fdf3776 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceIterator.html @@ -0,0 +1,351 @@ + + + + + +BleDeviceIterator (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleDeviceIterator

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceOrigin.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceOrigin.html new file mode 100644 index 0000000..cce8e8e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceOrigin.html @@ -0,0 +1,348 @@ + + + + + +BleDeviceOrigin (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDeviceOrigin

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceState.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceState.html new file mode 100644 index 0000000..9ca37e3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleDeviceState.html @@ -0,0 +1,961 @@ + + + + + +BleDeviceState (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleDeviceState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.AssertEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.AssertEvent.html new file mode 100644 index 0000000..ad1f492 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.AssertEvent.html @@ -0,0 +1,304 @@ + + + + + +BleManager.AssertListener.AssertEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.AssertListener.AssertEvent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        message

        +
        public String message()
        +
        Message associated with the assert, or an empty string.
        +
      • +
      + + + +
        +
      • +

        stackTrace

        +
        public StackTraceElement[] stackTrace()
        +
        Stack trace leading up to the assert.
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.html new file mode 100644 index 0000000..b2097a9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.AssertListener.html @@ -0,0 +1,250 @@ + + + + + +BleManager.AssertListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.AssertListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.DiscoveryEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.DiscoveryEvent.html new file mode 100644 index 0000000..8906c96 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.DiscoveryEvent.html @@ -0,0 +1,368 @@ + + + + + +BleManager.DiscoveryListener.DiscoveryEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.DiscoveryListener.DiscoveryEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.LifeCycle.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.LifeCycle.html new file mode 100644 index 0000000..dba838c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.LifeCycle.html @@ -0,0 +1,379 @@ + + + + + +BleManager.DiscoveryListener.LifeCycle (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleManager.DiscoveryListener.LifeCycle

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.html new file mode 100644 index 0000000..73349b0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.DiscoveryListener.html @@ -0,0 +1,269 @@ + + + + + +BleManager.DiscoveryListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.DiscoveryListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.NativeStateEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.NativeStateEvent.html new file mode 100644 index 0000000..830e0e2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.NativeStateEvent.html @@ -0,0 +1,236 @@ + + + + + +BleManager.NativeStateListener.NativeStateEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.NativeStateListener.NativeStateEvent

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.html new file mode 100644 index 0000000..bb99f90 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.NativeStateListener.html @@ -0,0 +1,267 @@ + + + + + +BleManager.NativeStateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.NativeStateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.Progress.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.Progress.html new file mode 100644 index 0000000..abfdc65 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.Progress.html @@ -0,0 +1,336 @@ + + + + + +BleManager.ResetListener.Progress (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleManager.ResetListener.Progress

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleManager.ResetListener.Progress[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleManager.ResetListener.Progress c : BleManager.ResetListener.Progress.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleManager.ResetListener.Progress valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.ResetEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.ResetEvent.html new file mode 100644 index 0000000..225fe11 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.ResetEvent.html @@ -0,0 +1,288 @@ + + + + + +BleManager.ResetListener.ResetEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.ResetListener.ResetEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.html new file mode 100644 index 0000000..ddb5e47 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.ResetListener.html @@ -0,0 +1,259 @@ + + + + + +BleManager.ResetListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.ResetListener

+
+
+
+ +
+
+ +
+
+
    +
  • + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.StateEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.StateEvent.html new file mode 100644 index 0000000..500f6ed --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.StateEvent.html @@ -0,0 +1,288 @@ + + + + + +BleManager.StateListener.StateEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.StateListener.StateEvent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        manager

        +
        public BleManager manager()
        +
        The singleton manager undergoing the state change.
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.html new file mode 100644 index 0000000..b5ae487 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.StateListener.html @@ -0,0 +1,255 @@ + + + + + +BleManager.StateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.StateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.Remedy.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.Remedy.html new file mode 100644 index 0000000..3feb2f8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.Remedy.html @@ -0,0 +1,370 @@ + + + + + +BleManager.UhOhListener.Remedy (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleManager.UhOhListener.Remedy

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleManager.UhOhListener.Remedy[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleManager.UhOhListener.Remedy c : BleManager.UhOhListener.Remedy.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleManager.UhOhListener.Remedy valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOh.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOh.html new file mode 100644 index 0000000..95973e8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOh.html @@ -0,0 +1,682 @@ + + + + + +BleManager.UhOhListener.UhOh (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleManager.UhOhListener.UhOh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOhEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOhEvent.html new file mode 100644 index 0000000..561ff89 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.UhOhEvent.html @@ -0,0 +1,304 @@ + + + + + +BleManager.UhOhListener.UhOhEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager.UhOhListener.UhOhEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.html new file mode 100644 index 0000000..019d306 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.UhOhListener.html @@ -0,0 +1,275 @@ + + + + + +BleManager.UhOhListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManager.UhOhListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.html new file mode 100644 index 0000000..7912078 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManager.html @@ -0,0 +1,3334 @@ + + + + + +BleManager (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManager

+
+
+ +
+
    +
  • +
    +
    +
    public final class BleManager
    +extends Object
    +
    The entry point to the library. Get a singleton instance using get(android.content.Context, BleManagerConfig) or its overloads. Make sure + to hook up this manager to lifecycle events for your app as a whole: onPause() and onResume(). +

    + Also put the following entries (or something similar) in the root of your AndroidManifest.xml: +

    + <uses-sdk android:minSdkVersion="18" android:targetSdkVersion="23" />
    + <uses-permission android:name="android.permission.BLUETOOTH" />
    + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    + <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
    + <uses-permission android:name="android.permission.WAKE_LOCK" />
    + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    + <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
    +

    + Manifest.permission.WAKE_LOCK is recommended but optional, needed if BleManagerConfig.manageCpuWakeLock is enabled to aid with reconnect loops. + As of now it's enabled by default. +

    + Manifest.permission.ACCESS_COARSE_LOCATION (or Manifest.permission.ACCESS_FINE_LOCATION) + is also strongly recommended but optional. Without it, startScan() and overloads will not properly return results in Build.VERSION_CODES.M and above. + See startScan(Interval, BleManagerConfig.ScanFilter, DiscoveryListener) for more information. +

    + Now here is a simple example usage:
    
    + public class MyActivity extends Activity
    + {
    +      @Override protected void onCreate(Bundle savedInstanceState)
    +      {
    +          // A ScanFilter decides whether a BleDevice instance will be created
    +          // and passed to the DiscoveryListener implementation below.
    +         final ScanFilter scanFilter = new ScanFilter()
    +         {
    +             @Override public Please onEvent(ScanEvent e)
    +             {
    +                 return Please.acknowledgeIf(e.name_normalized().contains("my_device"))
    +                              .thenStopScan();
    +             }
    +         };
    +
    +         // New BleDevice instances are provided through this listener.
    +         // Nested listeners then listen for connection and read results.
    +         final DiscoveryListener discoveryListener = new DiscoveryListener()
    +         {
    +             @Override public void onEvent(DiscoveryEvent e)
    +             {
    +                 if( e.was(LifeCycle.DISCOVERED) )
    +                 {
    +                     e.device().connect(new StateListener()
    +                     {
    +                         @Override public void onEvent(StateEvent e)
    +                         {
    +                             if( e.didEnter(BleDeviceState.INITIALIZED) )
    +                             {
    +                                 e.device().read(Uuids.BATTERY_LEVEL, new ReadWriteListener()
    +                                 {
    +                                     @Override public void onEvent(ReadWriteEvent e)
    +                                     {
    +                                         if( e.wasSuccess() )
    +                                         {
    +                                             Log.i("", "Battery level is " + e.data_byte() + "%");
    +                                         }
    +                                     }
    +                                 });
    +                             }
    +                         }
    +                     });
    +                 }
    +             }
    +         };
    +
    +         // Helps you navigate the treacherous waters of Android M Location requirements for scanning.
    +         BluetoothEnabler.start(this, new DefaultBluetoothEnablerFilter()
    +         {
    +             @Override public Please onEvent(BluetoothEnablerEvent e)
    +             {
    +                 if( e.isDone() )
    +                 {
    +                     e.bleManager().startScan(scanFilter, discoveryListener);
    +                 }
    +
    +                 return super.onEvent(e);
    +             }
    +         });
    +    }
    + 
    + 
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DefaultScanFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DefaultScanFilter.html new file mode 100644 index 0000000..b94a4cd --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DefaultScanFilter.html @@ -0,0 +1,318 @@ + + + + + +BleManagerConfig.DefaultScanFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.DefaultScanFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleManagerConfig.DefaultScanFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DeviceNameComparator.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DeviceNameComparator.html new file mode 100644 index 0000000..a594ec8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.DeviceNameComparator.html @@ -0,0 +1,293 @@ + + + + + +BleManagerConfig.DeviceNameComparator (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.DeviceNameComparator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleManagerConfig.DeviceNameComparator
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidDeviceLayerFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidDeviceLayerFactory.html new file mode 100644 index 0000000..0ae13a9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidDeviceLayerFactory.html @@ -0,0 +1,273 @@ + + + + + +BleManagerConfig.P_AndroidDeviceLayerFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.P_AndroidDeviceLayerFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidDeviceLayerFactory
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    BleManagerConfig
    +
    +
    +
    +
    public static final class BleManagerConfig.P_AndroidDeviceLayerFactory
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_AndroidDeviceLayerFactory

        +
        public P_AndroidDeviceLayerFactory()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInstance

        +
        public com.idevicesinc.sweetblue.P_AndroidBleDevice newInstance(BleDevice device)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidGattLayerFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidGattLayerFactory.html new file mode 100644 index 0000000..36346c7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.P_AndroidGattLayerFactory.html @@ -0,0 +1,273 @@ + + + + + +BleManagerConfig.P_AndroidGattLayerFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.P_AndroidGattLayerFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidGattLayerFactory
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    BleManagerConfig
    +
    +
    +
    +
    public static final class BleManagerConfig.P_AndroidGattLayerFactory
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_AndroidGattLayerFactory

        +
        public P_AndroidGattLayerFactory()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newInstance

        +
        public com.idevicesinc.sweetblue.P_AndroidGatt newInstance(BleDevice device)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.Please.html new file mode 100644 index 0000000..94c8a35 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.Please.html @@ -0,0 +1,378 @@ + + + + + +BleManagerConfig.ScanFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.ScanFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.ScanEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.ScanEvent.html new file mode 100644 index 0000000..8fe0189 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.ScanEvent.html @@ -0,0 +1,480 @@ + + + + + +BleManagerConfig.ScanFilter.ScanEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig.ScanFilter.ScanEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.html new file mode 100644 index 0000000..c8cd529 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.ScanFilter.html @@ -0,0 +1,267 @@ + + + + + +BleManagerConfig.ScanFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleManagerConfig.ScanFilter

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.html new file mode 100644 index 0000000..470a7ff --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerConfig.html @@ -0,0 +1,1461 @@ + + + + + +BleManagerConfig (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleManagerConfig

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerState.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerState.html new file mode 100644 index 0000000..17029c7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleManagerState.html @@ -0,0 +1,750 @@ + + + + + +BleManagerState (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleManagerState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.AutoConnectUsage.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.AutoConnectUsage.html new file mode 100644 index 0000000..57d8fdf --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.AutoConnectUsage.html @@ -0,0 +1,383 @@ + + + + + +BleNode.ConnectionFailListener.AutoConnectUsage (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleNode.ConnectionFailListener.AutoConnectUsage

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.ConnectionFailEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.ConnectionFailEvent.html new file mode 100644 index 0000000..9addd5f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.ConnectionFailEvent.html @@ -0,0 +1,347 @@ + + + + + +BleNode.ConnectionFailListener.ConnectionFailEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNode.ConnectionFailListener.ConnectionFailEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.Please.html new file mode 100644 index 0000000..29da302 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.Please.html @@ -0,0 +1,346 @@ + + + + + +BleNode.ConnectionFailListener.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNode.ConnectionFailListener.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.html new file mode 100644 index 0000000..8049171 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.ConnectionFailListener.html @@ -0,0 +1,220 @@ + + + + + +BleNode.ConnectionFailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNode.ConnectionFailListener

+
+
+
+ +
+ +
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent.html new file mode 100644 index 0000000..c6112d5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent.html @@ -0,0 +1,340 @@ + + + + + +BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.Status.html new file mode 100644 index 0000000..86ab797 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.Status.html @@ -0,0 +1,438 @@ + + + + + +BleNode.HistoricalDataLoadListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleNode.HistoricalDataLoadListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.html new file mode 100644 index 0000000..00a884b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataLoadListener.html @@ -0,0 +1,267 @@ + + + + + +BleNode.HistoricalDataLoadListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNode.HistoricalDataLoadListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent.html new file mode 100644 index 0000000..80f2cfa --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent.html @@ -0,0 +1,380 @@ + + + + + +BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.Status.html new file mode 100644 index 0000000..95c94a1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.Status.html @@ -0,0 +1,416 @@ + + + + + +BleNode.HistoricalDataQueryListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleNode.HistoricalDataQueryListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.html new file mode 100644 index 0000000..db9534b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.HistoricalDataQueryListener.html @@ -0,0 +1,265 @@ + + + + + +BleNode.HistoricalDataQueryListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNode.HistoricalDataQueryListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.html new file mode 100644 index 0000000..b9fea1f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNode.html @@ -0,0 +1,1331 @@ + + + + + +BleNode (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNode

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    UsesCustomNull
    +
    +
    +
    Direct Known Subclasses:
    +
    BleDevice, BleServer
    +
    +
    +
    +
    public abstract class BleNode
    +extends Object
    +implements UsesCustomNull
    +
    Abstract base class for BleDevice and BleServer, mostly just to statically tie their APIs together + wherever possible. That is, not much actual shared implementation exists in this class as of this writing.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultHistoricalDataLogFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultHistoricalDataLogFilter.html new file mode 100644 index 0000000..476842f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultHistoricalDataLogFilter.html @@ -0,0 +1,320 @@ + + + + + +BleNodeConfig.DefaultHistoricalDataLogFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.DefaultHistoricalDataLogFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.DefaultHistoricalDataLogFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultReconnectFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultReconnectFilter.html new file mode 100644 index 0000000..776fb1b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultReconnectFilter.html @@ -0,0 +1,411 @@ + + + + + +BleNodeConfig.DefaultReconnectFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.DefaultReconnectFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultTaskTimeoutRequestFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultTaskTimeoutRequestFilter.html new file mode 100644 index 0000000..05b99d3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.DefaultTaskTimeoutRequestFilter.html @@ -0,0 +1,366 @@ + + + + + +BleNodeConfig.DefaultTaskTimeoutRequestFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.DefaultTaskTimeoutRequestFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.DefaultTaskTimeoutRequestFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataFactory.html new file mode 100644 index 0000000..0656f98 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataFactory.html @@ -0,0 +1,236 @@ + + + + + +BleNodeConfig.HistoricalDataFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNodeConfig.HistoricalDataFactory

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    BleNodeConfig
    +
    +
    +
    +
    public static interface BleNodeConfig.HistoricalDataFactory
    +
    Provide an instance to BleNodeConfig.historicalDataFactory to return custom subclasses + of HistoricalData if you would like. For example + you might have a graphing library which requires a "Point" interface with methods getX() + and getY(). You could then create a factory that returns subclasses of + HistoricalData that implement this interface, so you don't + need to duplicate the data and waste memory.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newHistoricalData

        +
        HistoricalData newHistoricalData(byte[] data,
        +                                 EpochTime epochTime)
        +
        Return a new subclass of HistoricalData that for example implements a custom interface + for another library that handles graphing or analytics.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.html new file mode 100644 index 0000000..1900b62 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.html @@ -0,0 +1,443 @@ + + + + + +BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        node

        +
        public BleNode node()
        +
        The node that is currently trying to reconnect.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        macAddress

        +
        public String macAddress()
        +
        The device or server client in question.
        +
      • +
      + + + +
        +
      • +

        data

        +
        public byte[] data()
        +
        The data to be written.
        +
      • +
      + + + +
        +
      • +

        epochTime

        +
        public EpochTime epochTime()
        +
        Timestamp of when the data was obtained.
        +
      • +
      + + + + + + + +
        +
      • +

        charUuid

        +
        public UUID charUuid()
        +
        The characteristic UUID associated with data().
        +
      • +
      + + + +
        +
      • +

        isFor

        +
        public boolean isFor(UUID uuid)
        +
        Returns true if this event is associated with the given uuid.
        +
      • +
      + + + +
        +
      • +

        isFor

        +
        public boolean isFor(UUID[] uuids)
        +
        Returns true if this event is associated with any of the given uuids.
        +
      • +
      + + + + + + + +
        +
      • +

        includesMemory

        +
        public static boolean includesMemory(int enum_PersistenceLevel)
        +
      • +
      + + + +
        +
      • +

        includesDisk

        +
        public static boolean includesDisk(int enum_PersistenceLevel)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Please.html new file mode 100644 index 0000000..fdd774a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Please.html @@ -0,0 +1,404 @@ + + + + + +BleNodeConfig.HistoricalDataLogFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.HistoricalDataLogFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Source.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Source.html new file mode 100644 index 0000000..d5bd65e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.Source.html @@ -0,0 +1,487 @@ + + + + + +BleNodeConfig.HistoricalDataLogFilter.Source (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleNodeConfig.HistoricalDataLogFilter.Source

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.html new file mode 100644 index 0000000..f587e4b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.HistoricalDataLogFilter.html @@ -0,0 +1,376 @@ + + + + + +BleNodeConfig.HistoricalDataLogFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNodeConfig.HistoricalDataLogFilter

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Please.html new file mode 100644 index 0000000..0610f99 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Please.html @@ -0,0 +1,328 @@ + + + + + +BleNodeConfig.ReconnectFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.ReconnectFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.ReconnectEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.ReconnectEvent.html new file mode 100644 index 0000000..55153d2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.ReconnectEvent.html @@ -0,0 +1,404 @@ + + + + + +BleNodeConfig.ReconnectFilter.ReconnectEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.ReconnectFilter.ReconnectEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Type.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Type.html new file mode 100644 index 0000000..c5c8800 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.Type.html @@ -0,0 +1,444 @@ + + + + + +BleNodeConfig.ReconnectFilter.Type (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleNodeConfig.ReconnectFilter.Type

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.html new file mode 100644 index 0000000..95f8cec --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.ReconnectFilter.html @@ -0,0 +1,271 @@ + + + + + +BleNodeConfig.ReconnectFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNodeConfig.ReconnectFilter

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.Please.html new file mode 100644 index 0000000..4392342 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.Please.html @@ -0,0 +1,261 @@ + + + + + +BleNodeConfig.TaskTimeoutRequestFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.TaskTimeoutRequestFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent.html new file mode 100644 index 0000000..ed15957 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent.html @@ -0,0 +1,410 @@ + + + + + +BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.html new file mode 100644 index 0000000..7c7a801 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.TaskTimeoutRequestFilter.html @@ -0,0 +1,259 @@ + + + + + +BleNodeConfig.TaskTimeoutRequestFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleNodeConfig.TaskTimeoutRequestFilter

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.html new file mode 100644 index 0000000..f187a11 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleNodeConfig.html @@ -0,0 +1,761 @@ + + + + + +BleNodeConfig (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleNodeConfig

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_MTU_SIZE

        +
        public static final int DEFAULT_MTU_SIZE
        +
        The default MTU size in bytes for gatt reads/writes/notifies/etc.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        GATT_WRITE_MTU_OVERHEAD

        +
        public static final int GATT_WRITE_MTU_OVERHEAD
        +
        The overhead in bytes that is subtracted from the total mtu size (e.g. DEFAULT_MTU_SIZE) to + give you the effective payload size that your application can send. For Android this + payload size is almost always 23-3=20 bytes.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        GATT_READ_MTU_OVERHEAD

        +
        public static final int GATT_READ_MTU_OVERHEAD
        +
        The overhead in bytes that is subtracted from the total mtu size (e.g. DEFAULT_MTU_SIZE) to + give you the effective payload size that your application can receive. For Android this + payload size is almost always 23-1=22 bytes.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE

        +
        public static final int DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE
        +
        The default size of the list that keeps track of a BleNode's connection failure history. This is to prevent + the list from growing too large, if the device is unable to connect, and you have a large long term reconnect time set + with reconnectFilter.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        alwaysUseAutoConnect

        +
        public Boolean alwaysUseAutoConnect
        +
        Default is false - see the boolean autoConnect parameters of + BluetoothDevice.connectGatt(Context, boolean, android.bluetooth.BluetoothGattCallback) + and BluetoothGattServer.connect(BluetoothDevice, boolean). +

        + This parameter is one of Android's deepest mysteries. By default we keep it false, but it has been observed that a + connection can fail or time out, but then if you try again with autoConnect set to true it works! One would think, + why not always set it to true? Well, while true is anecdotally more stable, it also (anecdotally) makes for longer + connection times, which becomes a UX problem. Would you rather have a 5-10 second connection process that is successful + with 99% of devices, or a 1-2 second connection process that is successful with 95% of devices? By default we've chosen the latter. +

        + HOWEVER, it's important to note that you can have fine-grained control over its usage through the BleNode.ConnectionFailListener.Please + returned from BleDevice.ConnectionFailListener.onEvent(BleDevice.ConnectionFailListener.ConnectionFailEvent) (or the equivalent + structures that are inner structures of BleServer). +

        + So really this option mainly exists for those situations where you KNOW that you have a device or server that only works + with autoConnect==true and you want connection time to be faster (i.e. you don't want to wait for that first + failed connection for the library to internally start using autoConnect==true).
        +
      • +
      + + + +
        +
      • +

        allowCallsFromAllThreads

        +
        @Deprecated
        +public Boolean allowCallsFromAllThreads
        +
        Deprecated. - This value is not used anymore. Just left here so we don't cause build errors.
        +
        Default is false - SweetBlue, for the sake of performance, stability, and simplicity, requires all back and forth to take place on the main thread, + with WrongThreadError thrown if not. + Versions less than v2 did not enforce this, but feedback indicated that the threading model was unclear and some people would kick + off SweetBlue operations on alternate threads, which could definitely lead to problems. This remains as an option to help older code bases transitioning to >= v2
        +
      • +
      + + + +
        +
      • +

        disconnectIsCancellable

        +
        public Boolean disconnectIsCancellable
        +
        Default is true - controls whether the library is allowed to optimize fast disconnect/reconnect cycles + by actually not disconnecting in the native stack at all. For example, if this option is true and your + BleDevice is BleDeviceState.CONNECTED, calling BleDevice.disconnect() then BleDevice.connect() + again won't result in a native disconnect/reconnect - your actual physical ble device firmware won't know that a disconnect was requested.
        +
      • +
      + + + +
        +
      • +

        autoStripeWrites

        +
        public boolean autoStripeWrites
        +
        Default is true - this will automatically stripe writes that are larger than the MTU size into multiple WRITE requests for you. + If you are using BleDevice.setMtu(int), this may make things unstable.
        +
      • +
      + + + +
        +
      • +

        taskTimeoutRequestFilter

        +
        public BleNodeConfig.TaskTimeoutRequestFilter taskTimeoutRequestFilter
        +
        Default is an instance of BleNodeConfig.DefaultTaskTimeoutRequestFilter - set an implementation here to + have fine control over how long individual BleTask instances can take before they + are considered "timed out" and failed. +

        + NOTE: Setting this to null will disable timeouts for all BleTask instances, + which would probably be very dangerous to do - a task could just sit there spinning forever.
        +
      • +
      + + + + + + + + + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BleNodeConfig

        +
        public BleNodeConfig()
        +
        Creates a BleNodeConfig with all default options set. See each member of this class + for what the default options are set to. Consider using newNulled() also.
        +
      • +
      + + + +
        +
      • +

        BleNodeConfig

        +
        public BleNodeConfig(JSONObject jo)
        +
        Creates a BleNodeConfig with all default options set. Then, any configuration options + specified in the given JSONObject will be applied over the defaults. See writeJSON() + regarding the creation of the JSONObject
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanApi.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanApi.html new file mode 100644 index 0000000..4d2fe2e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanApi.html @@ -0,0 +1,403 @@ + + + + + +BleScanApi (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleScanApi

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        AUTO

        +
        public static final BleScanApi AUTO
        +
        This option is recommended and will let SweetBlue automatically choose what scanning api to use + based on whether the app is backgrounded, if we're doing a long-term scan, polling scan, etc.
        +
      • +
      + + + +
        +
      • +

        CLASSIC

        +
        public static final BleScanApi CLASSIC
        +
        Will force SweetBlue to use BluetoothAdapter.startDiscovery(), which is so-called "Bluetooth Classic" discovery. + This is the scanning mode used on the Android Bluetooth Settings screen. It only returns the mac address and name of your + device through a BleManagerConfig.ScanFilter.ScanEvent, as opposed to full LE scanning packets + which usually have a service UUID (at the least) as well.
        +
      • +
      + + + +
        +
      • +

        PRE_LOLLIPOP

        +
        public static final BleScanApi PRE_LOLLIPOP
        +
        This forces the use of the pre-Lollipop scanning API BluetoothAdapter.startLeScan(BluetoothAdapter.LeScanCallback), + which was deprecated in Lollipop. This is the default API that SweetBlue uses, as it was found to be more effective at + discovering devices than the API introduced in Lollipop.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleScanApi[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleScanApi c : BleScanApi.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleScanApi valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanMode.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanMode.html new file mode 100644 index 0000000..6e79fee --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanMode.html @@ -0,0 +1,500 @@ + + + + + +BleScanMode (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleScanMode

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleScanMode[] values()
        +
        Deprecated. 
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleScanMode c : BleScanMode.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleScanMode valueOf(String name)
        +
        Deprecated. 
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getNativeMode

        +
        public int getNativeMode()
        +
        Deprecated. 
        +
        Returns one of the static final int members of ScanSettings, or -1 for AUTO.
        +
      • +
      + + + +
        +
      • +

        isLollipopScanMode

        +
        @Deprecated
        +public boolean isLollipopScanMode()
        +
        Deprecated. 
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanPower.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanPower.html new file mode 100644 index 0000000..cf0da5f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleScanPower.html @@ -0,0 +1,424 @@ + + + + + +BleScanPower (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleScanPower

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<BleScanPower>
    +
    +
    +
    +
    public enum BleScanPower
    +extends Enum<BleScanPower>
    +
    Type-safe parallel of various static final int members of ScanSettings for setting the scanning power + when using the Lollipop scanning API. This is ONLY valid on devices running Lollipop, or higher.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        AUTO

        +
        public static final BleScanPower AUTO
        +
        SweetBlue will automatically set the scan power depending on if the app is in the foreground or not. When foregrounded, + and running a periodic, or limited scan, HIGH_POWER will be used. If you are using an infinite scan length, + then MEDIUM_POWER will be used instead. Otherwise, when in the background, LOW_POWER is used.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        MEDIUM_POWER

        +
        public static final BleScanPower MEDIUM_POWER
        +
        Lollipop-and-up-relevant-only, this is strict typing for ScanSettings.SCAN_MODE_BALANCED. + For phones lower than Lollipop, this will be ignored.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleScanPower[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleScanPower c : BleScanPower.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleScanPower valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getNativeMode

        +
        public int getNativeMode()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.AdvertisingEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.AdvertisingEvent.html new file mode 100644 index 0000000..d80e46e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.AdvertisingEvent.html @@ -0,0 +1,333 @@ + + + + + +BleServer.AdvertisingListener.AdvertisingEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.AdvertisingListener.AdvertisingEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.Status.html new file mode 100644 index 0000000..4c8f527 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.Status.html @@ -0,0 +1,488 @@ + + + + + +BleServer.AdvertisingListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.AdvertisingListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.html new file mode 100644 index 0000000..dda515f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.AdvertisingListener.html @@ -0,0 +1,256 @@ + + + + + +BleServer.AdvertisingListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.AdvertisingListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.ConnectionFailEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.ConnectionFailEvent.html new file mode 100644 index 0000000..d2b53db --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.ConnectionFailEvent.html @@ -0,0 +1,398 @@ + + + + + +BleServer.ConnectionFailListener.ConnectionFailEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.ConnectionFailListener.ConnectionFailEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.Status.html new file mode 100644 index 0000000..885fbac --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.Status.html @@ -0,0 +1,548 @@ + + + + + +BleServer.ConnectionFailListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.ConnectionFailListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.html new file mode 100644 index 0000000..e389b13 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ConnectionFailListener.html @@ -0,0 +1,271 @@ + + + + + +BleServer.ConnectionFailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.ConnectionFailListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.DefaultConnectionFailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.DefaultConnectionFailListener.html new file mode 100644 index 0000000..52b29a5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.DefaultConnectionFailListener.html @@ -0,0 +1,421 @@ + + + + + +BleServer.DefaultConnectionFailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.DefaultConnectionFailListener

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.ExchangeEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.ExchangeEvent.html new file mode 100644 index 0000000..9fe2fd6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.ExchangeEvent.html @@ -0,0 +1,531 @@ + + + + + +BleServer.ExchangeListener.ExchangeEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.ExchangeListener.ExchangeEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Target.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Target.html new file mode 100644 index 0000000..00e9e6c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Target.html @@ -0,0 +1,350 @@ + + + + + +BleServer.ExchangeListener.Target (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.ExchangeListener.Target

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Type.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Type.html new file mode 100644 index 0000000..26746d4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.Type.html @@ -0,0 +1,443 @@ + + + + + +BleServer.ExchangeListener.Type (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.ExchangeListener.Type

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.html new file mode 100644 index 0000000..5bc169c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ExchangeListener.html @@ -0,0 +1,215 @@ + + + + + +BleServer.ExchangeListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.ExchangeListener

+
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.IncomingEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.IncomingEvent.html new file mode 100644 index 0000000..d11a6a4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.IncomingEvent.html @@ -0,0 +1,283 @@ + + + + + +BleServer.IncomingListener.IncomingEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.IncomingListener.IncomingEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.Please.html new file mode 100644 index 0000000..4c9fed1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.Please.html @@ -0,0 +1,423 @@ + + + + + +BleServer.IncomingListener.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.IncomingListener.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.html new file mode 100644 index 0000000..4cfbb3e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.IncomingListener.html @@ -0,0 +1,267 @@ + + + + + +BleServer.IncomingListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.IncomingListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.OutgoingEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.OutgoingEvent.html new file mode 100644 index 0000000..f8d4bab --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.OutgoingEvent.html @@ -0,0 +1,415 @@ + + + + + +BleServer.OutgoingListener.OutgoingEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.OutgoingListener.OutgoingEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.Status.html new file mode 100644 index 0000000..6e60c16 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.Status.html @@ -0,0 +1,562 @@ + + + + + +BleServer.OutgoingListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.OutgoingListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.html new file mode 100644 index 0000000..e4be1f1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.OutgoingListener.html @@ -0,0 +1,271 @@ + + + + + +BleServer.OutgoingListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.OutgoingListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.ServiceAddEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.ServiceAddEvent.html new file mode 100644 index 0000000..d7823ab --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.ServiceAddEvent.html @@ -0,0 +1,373 @@ + + + + + +BleServer.ServiceAddListener.ServiceAddEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.ServiceAddListener.ServiceAddEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.Status.html new file mode 100644 index 0000000..3596a39 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.Status.html @@ -0,0 +1,549 @@ + + + + + +BleServer.ServiceAddListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServer.ServiceAddListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.html new file mode 100644 index 0000000..4e22a78 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.ServiceAddListener.html @@ -0,0 +1,260 @@ + + + + + +BleServer.ServiceAddListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.ServiceAddListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.StateEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.StateEvent.html new file mode 100644 index 0000000..625e1e0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.StateEvent.html @@ -0,0 +1,319 @@ + + + + + +BleServer.StateListener.StateEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer.StateListener.StateEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.html new file mode 100644 index 0000000..be814da --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.StateListener.html @@ -0,0 +1,254 @@ + + + + + +BleServer.StateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleServer.StateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.html new file mode 100644 index 0000000..51555a9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServer.html @@ -0,0 +1,1966 @@ + + + + + +BleServer (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServer

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServerState.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServerState.html new file mode 100644 index 0000000..405a3f7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServerState.html @@ -0,0 +1,626 @@ + + + + + +BleServerState (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleServerState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleService.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleService.html new file mode 100644 index 0000000..b9dc28f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleService.html @@ -0,0 +1,243 @@ + + + + + +BleService (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServiceWrapper.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServiceWrapper.html new file mode 100644 index 0000000..e1d528f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServiceWrapper.html @@ -0,0 +1,331 @@ + + + + + +BleServiceWrapper (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServiceWrapper

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServices.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServices.html new file mode 100644 index 0000000..7e65877 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleServices.html @@ -0,0 +1,239 @@ + + + + + +BleServices (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleServices

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        currentTime

        +
        public static BleService currentTime()
        +
        Returns a new service conforming to the "Current Time Service" specification.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleStatuses.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleStatuses.html new file mode 100644 index 0000000..6d569e6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleStatuses.html @@ -0,0 +1,1837 @@ + + + + + +BleStatuses (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleStatuses

+
+
+ +
+
    +
  • +
    +
    +
    public final class BleStatuses
    +extends Object
    +
    A collection of various BLE status codes that for whatever reason are not exposed through Android's + public BLE layer - this can be because they are public but use the @hide annotation, + or they are not public in the first place, or they can only be found by Googling + for native C/C++ library code. +

    + See the static members of BluetoothDevice and BluetoothGatt for more information. +

    + NOTE: Most GATT_ members here are copy/pasted from + https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-4.3_r1.1/stack/include/gatt_api.h
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTask.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTask.html new file mode 100644 index 0000000..cc61db9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTask.html @@ -0,0 +1,763 @@ + + + + + +BleTask (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleTask

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Auth.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Auth.html new file mode 100644 index 0000000..a6db75e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Auth.html @@ -0,0 +1,267 @@ + + + + + +BleTransaction.Auth (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleTransaction.Auth

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Auth

        +
        public Auth()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.EndReason.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.EndReason.html new file mode 100644 index 0000000..d4599ba --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.EndReason.html @@ -0,0 +1,367 @@ + + + + + +BleTransaction.EndReason (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BleTransaction.EndReason

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Init.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Init.html new file mode 100644 index 0000000..0282e33 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Init.html @@ -0,0 +1,267 @@ + + + + + +BleTransaction.Init (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleTransaction.Init

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Init

        +
        public Init()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Ota.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Ota.html new file mode 100644 index 0000000..d3e3367 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.Ota.html @@ -0,0 +1,271 @@ + + + + + +BleTransaction.Ota (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleTransaction.Ota

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Ota

        +
        public Ota()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.html new file mode 100644 index 0000000..d100abb --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleTransaction.html @@ -0,0 +1,497 @@ + + + + + +BleTransaction (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleTransaction

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BleTransaction

        +
        public BleTransaction()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDevice

        +
        public BleDevice getDevice()
        +
        Returns the device this transaction is running on.
        +
      • +
      + + + +
        +
      • +

        start

        +
        protected abstract void start(BleDevice device)
        +
        Implement this method to kick off your transaction. Usually you kick off some reads/writes inside + your override and call succeed() or fail() depending on how things went.
        +
      • +
      + + + + + + + +
        +
      • +

        update

        +
        protected void update(double timeStep)
        +
        Optional convenience method to override if you want to do periodic updates or time-based calculations.
        +
      • +
      + + + +
        +
      • +

        isRunning

        +
        public boolean isRunning()
        +
        Returns whether the transaction is currently running.
        +
      • +
      + + + +
        +
      • +

        cancel

        +
        protected final void cancel()
        +
      • +
      + + + + + + + +
        +
      • +

        succeed

        +
        protected final boolean succeed()
        +
        Call this from subclasses to indicate that the transaction has succeeded.
        +
        +
        Returns:
        +
        Boolean.FALSE if the transaction wasn't running to begin with.
        +
        +
      • +
      + + + +
        +
      • +

        getTime

        +
        protected double getTime()
        +
        Returns the total time that this transaction has been running. You can use this in update(double) + for example to fail() or succeed() a transaction that has taken longer than a certain + amount of time.
        +
        +
        See Also:
        +
        update(double)
        +
        +
      • +
      + + + +
        +
      • +

        needsAtomicity

        +
        protected boolean needsAtomicity()
        +
        Default is Boolean.FALSE. Optionally override if you want your transaction's reads/writes to execute "atomically". + This means that if you're connected to multiple devices only the reads/writes of this transaction's device + will be executed until this transaction is finished.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.Please.html new file mode 100644 index 0000000..9f99675 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.Please.html @@ -0,0 +1,277 @@ + + + + + +BleWriteTransaction.FailListener.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleWriteTransaction.FailListener.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleWriteTransaction.FailListener.Please
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing interface:
    +
    BleWriteTransaction.FailListener
    +
    +
    +
    +
    public static class BleWriteTransaction.FailListener.Please
    +extends Object
    +
    Class used to dictate what should happen if a write fail happens. + Use static methods to specify what to do on a write fail; next(), retry(), or + stop().
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.html new file mode 100644 index 0000000..181772e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.FailListener.html @@ -0,0 +1,250 @@ + + + + + +BleWriteTransaction.FailListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleWriteTransaction.FailListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.Please.html new file mode 100644 index 0000000..a55fe36 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.Please.html @@ -0,0 +1,260 @@ + + + + + +BleWriteTransaction.WriteQueueListener.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleWriteTransaction.WriteQueueListener.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BleWriteTransaction.WriteQueueListener.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.html new file mode 100644 index 0000000..9227c5c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.WriteQueueListener.html @@ -0,0 +1,248 @@ + + + + + +BleWriteTransaction.WriteQueueListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BleWriteTransaction.WriteQueueListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.html new file mode 100644 index 0000000..4d22ea3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BleWriteTransaction.html @@ -0,0 +1,460 @@ + + + + + +BleWriteTransaction (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BleWriteTransaction

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.DefaultBondRetryFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.DefaultBondRetryFilter.html new file mode 100644 index 0000000..1506e39 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.DefaultBondRetryFilter.html @@ -0,0 +1,320 @@ + + + + + +BondRetryFilter.DefaultBondRetryFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BondRetryFilter.DefaultBondRetryFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.BondRetryFilter.DefaultBondRetryFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Please.html new file mode 100644 index 0000000..4b6314c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Please.html @@ -0,0 +1,291 @@ + + + + + +BondRetryFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BondRetryFilter.Please

+
+
+ +
+
    +
  • +
    +
    Enclosing interface:
    +
    BondRetryFilter
    +
    +
    +
    +
    public static final class BondRetryFilter.Please
    +extends Object
    +
    Please class to tell the library if it should retry bonding to the device again or not.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        retryIf

        +
        public static BondRetryFilter.Please retryIf(boolean condition)
        +
        Tell SweetBlue to retry bonding to the device, if the provided condition is true.
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public static BondRetryFilter.Please stop()
        +
        Tells SweetBlue not to retry bonding to the device.
        +
      • +
      + + + +
        +
      • +

        stopIf

        +
        public static BondRetryFilter.Please stopIf(boolean condition)
        +
        Tells SweetBlue not to retry bonding to the device, if the provided condition is true.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.RetryEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.RetryEvent.html new file mode 100644 index 0000000..8fbbdc6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.RetryEvent.html @@ -0,0 +1,359 @@ + + + + + +BondRetryFilter.RetryEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class BondRetryFilter.RetryEvent

+
+
+ +
+
    +
  • +
    +
    Enclosing interface:
    +
    BondRetryFilter
    +
    +
    +
    +
    public static final class BondRetryFilter.RetryEvent
    +extends Event
    +
    Event class which holds an instance of the device that a bond has failed on, and the failure code.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Status.html new file mode 100644 index 0000000..aedc0f4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.Status.html @@ -0,0 +1,510 @@ + + + + + +BondRetryFilter.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum BondRetryFilter.Status

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + + + + + +
        +
      • +

        AUTH_FAILED

        +
        public static final BondRetryFilter.Status AUTH_FAILED
        +
        A bond attempt failed because pins did not match, or remote device did not respond to pin request in time.
        +
      • +
      + + + +
        +
      • +

        AUTH_REJECTED

        +
        public static final BondRetryFilter.Status AUTH_REJECTED
        +
        A bond attempt failed because the other side explicitly rejected bonding.
        +
      • +
      + + + +
        +
      • +

        AUTH_CANCELED

        +
        public static final BondRetryFilter.Status AUTH_CANCELED
        +
        A bond attempt failed because we canceled the bonding process.
        +
      • +
      + + + +
        +
      • +

        REMOTE_DEVICE_DOWN

        +
        public static final BondRetryFilter.Status REMOTE_DEVICE_DOWN
        +
        A bond attempt failed because we could not contact the remote device.
        +
      • +
      + + + +
        +
      • +

        DISCOVERY_IN_PROGRESS

        +
        public static final BondRetryFilter.Status DISCOVERY_IN_PROGRESS
        +
        A bond attempt failed because a discovery is in progress.
        +
      • +
      + + + +
        +
      • +

        AUTH_TIMEOUT

        +
        public static final BondRetryFilter.Status AUTH_TIMEOUT
        +
        A bond attempt failed because of authentication timeout.
        +
      • +
      + + + +
        +
      • +

        REPEATED_ATTEMPTS

        +
        public static final BondRetryFilter.Status REPEATED_ATTEMPTS
        +
        A bond attempt failed because of repeated attempts.
        +
      • +
      + + + +
        +
      • +

        REMOTE_AUTH_CANCELED

        +
        public static final BondRetryFilter.Status REMOTE_AUTH_CANCELED
        +
        A bond attempt failed because we received an Authentication Cancel by remote end.
        +
      • +
      + + + +
        +
      • +

        REMOVED

        +
        public static final BondRetryFilter.Status REMOVED
        +
        An existing bond was explicitly revoked.
        +
      • +
      + + + +
        +
      • +

        UNKNOWN_ERROR

        +
        public static final BondRetryFilter.Status UNKNOWN_ERROR
        +
        Catchall for when we get a bond failure, and don't know the appropriate error (this should in theory never happen)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BondRetryFilter.Status[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BondRetryFilter.Status c : BondRetryFilter.Status.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BondRetryFilter.Status valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.html new file mode 100644 index 0000000..af89d3a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/BondRetryFilter.html @@ -0,0 +1,233 @@ + + + + + +BondRetryFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface BondRetryFilter

+
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DefaultLogger.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DefaultLogger.html new file mode 100644 index 0000000..4598af6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DefaultLogger.html @@ -0,0 +1,282 @@ + + + + + +DefaultLogger (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class DefaultLogger

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultLogger

        +
        public DefaultLogger()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.DescriptorEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.DescriptorEvent.html new file mode 100644 index 0000000..407500b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.DescriptorEvent.html @@ -0,0 +1,327 @@ + + + + + +DescriptorFilter.DescriptorEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class DescriptorFilter.DescriptorEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.Please.html new file mode 100644 index 0000000..df7f5e5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.Please.html @@ -0,0 +1,294 @@ + + + + + +DescriptorFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class DescriptorFilter.Please

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.html new file mode 100644 index 0000000..6f46207 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DescriptorFilter.html @@ -0,0 +1,274 @@ + + + + + +DescriptorFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface DescriptorFilter

+
+
+
+
    +
  • +
    +
    +
    public interface DescriptorFilter
    +
    Interface used when the Bluetooth device you're trying to connect to has multiple + BluetoothGattCharacteristics with the same UUID, in the same + BluetoothGattService. You use this interface to decide which BluetoothGattCharacteristic + you want to perform an operation on using any of the read(), or write() methods which accept this + Interface as an argument.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DeviceStateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DeviceStateListener.html new file mode 100644 index 0000000..4176bb0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/DeviceStateListener.html @@ -0,0 +1,238 @@ + + + + + +DeviceStateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface DeviceStateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ManagerStateListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ManagerStateListener.html new file mode 100644 index 0000000..d4aea4e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ManagerStateListener.html @@ -0,0 +1,233 @@ + + + + + +ManagerStateListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface ManagerStateListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.MtuTestEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.MtuTestEvent.html new file mode 100644 index 0000000..59e7053 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.MtuTestEvent.html @@ -0,0 +1,273 @@ + + + + + +MtuTestCallback.MtuTestEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class MtuTestCallback.MtuTestEvent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        device

        +
        public BleDevice device()
        +
        The BleDevice which just got it's MTU size negotiated with
        +
      • +
      + + + +
        +
      • +

        getNegotiatedMtuSize

        +
        public int getNegotiatedMtuSize()
        +
        The MTU size that was negotiated with the peripheral. NOTE: This may not be the same value as what you passed in to the + BleDevice.setMtu(int) method.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.Please.html new file mode 100644 index 0000000..f5101c8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.Please.html @@ -0,0 +1,289 @@ + + + + + +MtuTestCallback.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class MtuTestCallback.Please

+
+
+ +
+
    +
  • +
    +
    Enclosing interface:
    +
    MtuTestCallback
    +
    +
    +
    +
    public static class MtuTestCallback.Please
    +extends Object
    +
    Please class used to tell SweetBlue if it should test the new MTU size, and if so, which service uuid, and char uuid to use, and the data to write (the data + should be the size of the MTU size requested to properly test).
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.TestResult.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.TestResult.html new file mode 100644 index 0000000..1df4ec5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.TestResult.html @@ -0,0 +1,293 @@ + + + + + +MtuTestCallback.TestResult (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class MtuTestCallback.TestResult

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.MtuTestCallback.TestResult
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing interface:
    +
    MtuTestCallback
    +
    +
    +
    +
    public static class MtuTestCallback.TestResult
    +extends Object
    +
    Enumeration reporting the result of an MTU test.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        result

        +
        public com.idevicesinc.sweetblue.MtuTestCallback.TestResult.Result result()
        +
        The result of the MTU test -- you can also just call wasSuccess() if you only care if it worked or not.
        +
      • +
      + + + + + + + +
        +
      • +

        wasSuccess

        +
        public boolean wasSuccess()
        +
        Convenience method to see if the MTU test worked or not.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.html new file mode 100644 index 0000000..1249e44 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/MtuTestCallback.html @@ -0,0 +1,280 @@ + + + + + +MtuTestCallback (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface MtuTestCallback

+
+
+
+
    +
  • +
    +
    +
    public interface MtuTestCallback
    +
    Callback used to test out an MTU size adjustment. Some phones (OnePlus 2, Moto Pure X are 2 we know of for sure) will report a success on getting + a larger MTU, but fail when trying to write with the requested MTU size. This callback exists to test the MTU before saying things are fine. Once the + MTU request comes back as a success, this callback will be invoked to see if a test should be performed. The onResult(TestResult) method will + be called if it either fails, or succeeds. If the write fails, the device will be disconnected, as once a bluetooth operation times out in this manner, nothing + else will work until the device gets re-connected.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.NotificationEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.NotificationEvent.html new file mode 100644 index 0000000..fc7266e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.NotificationEvent.html @@ -0,0 +1,694 @@ + + + + + +NotificationListener.NotificationEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class NotificationListener.NotificationEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Status.html new file mode 100644 index 0000000..88415e5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Status.html @@ -0,0 +1,613 @@ + + + + + +NotificationListener.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum NotificationListener.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Type.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Type.html new file mode 100644 index 0000000..0b5cb39 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.Type.html @@ -0,0 +1,480 @@ + + + + + +NotificationListener.Type (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Enum NotificationListener.Type

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.html new file mode 100644 index 0000000..8f69a33 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/NotificationListener.html @@ -0,0 +1,227 @@ + + + + + +NotificationListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface NotificationListener

+
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.Callback.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.Callback.html new file mode 100644 index 0000000..6679f15 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.Callback.html @@ -0,0 +1,227 @@ + + + + + +PI_UpdateLoop.Callback (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface PI_UpdateLoop.Callback

+
+
+
+
    +
  • +
    +
    Enclosing interface:
    +
    PI_UpdateLoop
    +
    +
    +
    +
    public static interface PI_UpdateLoop.Callback
    +
    A callback where you handle the update time step.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidonUpdate(double timestep_seconds) +
      Gives you the amount of time that has passed in seconds since the last callback.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onUpdate

        +
        void onUpdate(double timestep_seconds)
        +
        Gives you the amount of time that has passed in seconds since the last callback.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.DefaultUpdateLoopFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.DefaultUpdateLoopFactory.html new file mode 100644 index 0000000..d30d5cb --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.DefaultUpdateLoopFactory.html @@ -0,0 +1,316 @@ + + + + + +PI_UpdateLoop.DefaultUpdateLoopFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class PI_UpdateLoop.DefaultUpdateLoopFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.PI_UpdateLoop.DefaultUpdateLoopFactory
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.IUpdateLoopFactory.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.IUpdateLoopFactory.html new file mode 100644 index 0000000..e09d133 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.IUpdateLoopFactory.html @@ -0,0 +1,253 @@ + + + + + +PI_UpdateLoop.IUpdateLoopFactory (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface PI_UpdateLoop.IUpdateLoopFactory

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.html new file mode 100644 index 0000000..a3cbd30 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/PI_UpdateLoop.html @@ -0,0 +1,330 @@ + + + + + +PI_UpdateLoop (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface PI_UpdateLoop

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    UpdateLoop
    +
    +
    +
    +
    public interface PI_UpdateLoop
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isRunning

        +
        boolean isRunning()
        +
      • +
      + + + +
        +
      • +

        start

        +
        void start(double updateRate)
        +
      • +
      + + + +
        +
      • +

        stop

        +
        void stop()
        +
      • +
      + + + +
        +
      • +

        forcePost

        +
        void forcePost(Runnable runnable)
        +
      • +
      + + + +
        +
      • +

        getHandler

        +
        Handler getHandler()
        +
      • +
      + + + +
        +
      • +

        postNeeded

        +
        boolean postNeeded()
        +
      • +
      + + + +
        +
      • +

        postIfNeeded

        +
        void postIfNeeded(Runnable runnable)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBleServer.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBleServer.html new file mode 100644 index 0000000..bc3e9ef --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBleServer.html @@ -0,0 +1,445 @@ + + + + + +P_AndroidBleServer (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class P_AndroidBleServer

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBluetoothManager.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBluetoothManager.html new file mode 100644 index 0000000..bce655e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_AndroidBluetoothManager.html @@ -0,0 +1,649 @@ + + + + + +P_AndroidBluetoothManager (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class P_AndroidBluetoothManager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.P_AndroidBluetoothManager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class P_AndroidBluetoothManager
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_AndroidBluetoothManager

        +
        public P_AndroidBluetoothManager()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setBleManager

        +
        public final void setBleManager(BleManager mgr)
        +
      • +
      + + + +
        +
      • +

        getConnectionState

        +
        public final int getConnectionState(com.idevicesinc.sweetblue.P_NativeDeviceLayer device,
        +                                    int profile)
        +
      • +
      + + + +
        +
      • +

        startDiscovery

        +
        public final boolean startDiscovery()
        +
      • +
      + + + +
        +
      • +

        isManagerNull

        +
        public final boolean isManagerNull()
        +
      • +
      + + + +
        +
      • +

        resetManager

        +
        public final void resetManager(Context context)
        +
      • +
      + + + +
        +
      • +

        disable

        +
        public final boolean disable()
        +
      • +
      + + + +
        +
      • +

        enable

        +
        public final boolean enable()
        +
      • +
      + + + +
        +
      • +

        isMultipleAdvertisementSupported

        +
        public final boolean isMultipleAdvertisementSupported()
        +
      • +
      + + + +
        +
      • +

        getState

        +
        public final int getState()
        +
      • +
      + + + +
        +
      • +

        getBleState

        +
        public final int getBleState()
        +
      • +
      + + + +
        +
      • +

        getAddress

        +
        public final String getAddress()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public String getName()
        +
      • +
      + + + +
        +
      • +

        setName

        +
        public void setName(String name)
        +
      • +
      + + + +
        +
      • +

        openGattServer

        +
        public final P_NativeServerLayer openGattServer(Context context,
        +                                                com.idevicesinc.sweetblue.P_BleServer_Listeners listeners)
        +
      • +
      + + + + + + + +
        +
      • +

        stopAdvertising

        +
        public final void stopAdvertising()
        +
      • +
      + + + + + + + +
        +
      • +

        cancelDiscovery

        +
        public final boolean cancelDiscovery()
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        isLocationEnabledForScanning_byOsServices

        +
        public final boolean isLocationEnabledForScanning_byOsServices()
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning_byRuntimePermissions

        +
        public final boolean isLocationEnabledForScanning_byRuntimePermissions()
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning

        +
        public final boolean isLocationEnabledForScanning()
        +
      • +
      + + + +
        +
      • +

        isBluetoothEnabled

        +
        public final boolean isBluetoothEnabled()
        +
      • +
      + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_NativeServerLayer.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_NativeServerLayer.html new file mode 100644 index 0000000..1301062 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_NativeServerLayer.html @@ -0,0 +1,380 @@ + + + + + +P_NativeServerLayer (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface P_NativeServerLayer

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    P_AndroidBleServer
    +
    +
    +
    +
    public interface P_NativeServerLayer
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_StringHandler.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_StringHandler.html new file mode 100644 index 0000000..315720a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_StringHandler.html @@ -0,0 +1,424 @@ + + + + + +P_StringHandler (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class P_StringHandler

+
+
+ +
+
    +
  • +
    +
    +
    public final class P_StringHandler
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DENYING_LOCATION_ACCESS

        +
        public static final String DENYING_LOCATION_ACCESS
        +
      • +
      + + + +
        +
      • +

        APP_NEEDS_PERMISSION

        +
        public static final String APP_NEEDS_PERMISSION
        +
      • +
      + + + +
        +
      • +

        LOCATION_PERMISSION_TOAST

        +
        public static final String LOCATION_PERMISSION_TOAST
        +
      • +
      + + + +
        +
      • +

        REQUIRES_LOCATION_PERMISSION

        +
        public static final String REQUIRES_LOCATION_PERMISSION
        +
      • +
      + + + +
        +
      • +

        REQUIRES_LOCATION_PERMISSION_AND_SERVICES

        +
        public static final String REQUIRES_LOCATION_PERMISSION_AND_SERVICES
        +
      • +
      + + + +
        +
      • +

        LOCATION_SERVICES_NEEDS_ENABLING

        +
        public static final String LOCATION_SERVICES_NEEDS_ENABLING
        +
      • +
      + + + +
        +
      • +

        LOCATION_SERVICES_TOAST

        +
        public static final String LOCATION_SERVICES_TOAST
        +
      • +
      + + + +
        +
      • +

        OK

        +
        public static final String OK
        +
      • +
      + + + +
        +
      • +

        DENY

        +
        public static final String DENY
        +
      • +
      + + + +
        +
      • +

        ACCEPT

        +
        public static final String ACCEPT
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_StringHandler

        +
        public P_StringHandler()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_SweetHandler.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_SweetHandler.html new file mode 100644 index 0000000..f668280 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_SweetHandler.html @@ -0,0 +1,260 @@ + + + + + +P_SweetHandler (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface P_SweetHandler

+
+
+
+
    +
  • +
    +
    +
    public interface P_SweetHandler
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        post

        +
        void post(Runnable action)
        +
      • +
      + + + +
        +
      • +

        postDelayed

        +
        void postDelayed(Runnable action,
        +                 long delay)
        +
      • +
      + + + +
        +
      • +

        removeCallbacks

        +
        void removeCallbacks(Runnable action)
        +
      • +
      + + + +
        +
      • +

        getThread

        +
        Thread getThread()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_Task_FactoryReset.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_Task_FactoryReset.html new file mode 100644 index 0000000..f82e81a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/P_Task_FactoryReset.html @@ -0,0 +1,805 @@ + + + + + +P_Task_FactoryReset (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class P_Task_FactoryReset

+
+
+ +
+
    +
  • +
    +
    +
    public class P_Task_FactoryReset
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_Task_FactoryReset

        +
        public P_Task_FactoryReset(BleManager manager,
        +                           com.idevicesinc.sweetblue.PA_Task.I_StateListener listener)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTaskType

        +
        protected BleTask getTaskType()
        +
      • +
      + + + +
        +
      • +

        getPriority

        +
        public com.idevicesinc.sweetblue.PE_TaskPriority getPriority()
        +
      • +
      + + + +
        +
      • +

        getInitialTimeout

        +
        protected double getInitialTimeout()
        +
      • +
      + + + +
        +
      • +

        getCharUuid

        +
        protected UUID getCharUuid()
        +
      • +
      + + + +
        +
      • +

        getDescUuid

        +
        protected UUID getDescUuid()
        +
      • +
      + + + +
        +
      • +

        getLogger

        +
        protected com.idevicesinc.sweetblue.P_Logger getLogger()
        +
      • +
      + + + +
        +
      • +

        timeout

        +
        protected void timeout()
        +
      • +
      + + + +
        +
      • +

        redundant

        +
        protected void redundant()
        +
      • +
      + + + +
        +
      • +

        succeed

        +
        protected void succeed()
        +
      • +
      + + + +
        +
      • +

        fail

        +
        protected void fail()
        +
      • +
      + + + +
        +
      • +

        clearFromQueue

        +
        protected void clearFromQueue()
        +
      • +
      + + + +
        +
      • +

        failImmediately

        +
        protected void failImmediately()
        +
      • +
      + + + +
        +
      • +

        selfInterrupt

        +
        protected void selfInterrupt()
        +
      • +
      + + + +
        +
      • +

        softlyCancel

        +
        protected void softlyCancel()
        +
      • +
      + + + +
        +
      • +

        failWithoutRetry

        +
        protected void failWithoutRetry()
        +
      • +
      + + + +
        +
      • +

        isExecutable

        +
        protected boolean isExecutable()
        +
      • +
      + + + +
        +
      • +

        isArmable

        +
        protected boolean isArmable()
        +
      • +
      + + + +
        +
      • +

        tryExecuting

        +
        public boolean tryExecuting()
        +
        Returns true if P_TaskQueue.print() ends up getting called.
        +
      • +
      + + + +
        +
      • +

        onNotExecutable

        +
        protected void onNotExecutable()
        +
      • +
      + + + +
        +
      • +

        update

        +
        protected void update(double timeStep)
        +
      • +
      + + + +
        +
      • +

        getTotalTimeExecuting

        +
        public double getTotalTimeExecuting()
        +
      • +
      + + + +
        +
      • +

        getTotalTimeExecuting

        +
        public double getTotalTimeExecuting(long currentTime)
        +
      • +
      + + + +
        +
      • +

        getTotalTime

        +
        public double getTotalTime()
        +
      • +
      + + + +
        +
      • +

        getTotalTime

        +
        public double getTotalTime(long currentTime)
        +
      • +
      + + + +
        +
      • +

        getAggregatedTimeArmedAndExecuting

        +
        public double getAggregatedTimeArmedAndExecuting()
        +
      • +
      + + + +
        +
      • +

        isFor

        +
        public boolean isFor(Class<? extends com.idevicesinc.sweetblue.PA_Task_ConnectOrDisconnectServer> taskClass,
        +                     BleServer server,
        +                     String macAddress)
        +
      • +
      + + + +
        +
      • +

        getDevice

        +
        public BleDevice getDevice()
        +
      • +
      + + + +
        +
      • +

        getServer

        +
        public BleServer getServer()
        +
      • +
      + + + +
        +
      • +

        getManager

        +
        public BleManager getManager()
        +
      • +
      + + + +
        +
      • +

        getTimeout

        +
        public double getTimeout()
        +
      • +
      + + + +
        +
      • +

        getQueue

        +
        protected com.idevicesinc.sweetblue.P_TaskQueue getQueue()
        +
      • +
      + + + +
        +
      • +

        isMoreImportantThan

        +
        public boolean isMoreImportantThan(com.idevicesinc.sweetblue.PA_Task task)
        +
      • +
      + + + +
        +
      • +

        isMoreImportantThan_default

        +
        protected boolean isMoreImportantThan_default(com.idevicesinc.sweetblue.PA_Task task)
        +
        Default implementation to call by subsubclasses if they want to skip their immediate parent's implementation.
        +
      • +
      + + + +
        +
      • +

        isInterruptableBy

        +
        public boolean isInterruptableBy(com.idevicesinc.sweetblue.PA_Task task)
        +
      • +
      + + + +
        +
      • +

        isCancellableBy

        +
        public boolean isCancellableBy(com.idevicesinc.sweetblue.PA_Task task)
        +
      • +
      + + + +
        +
      • +

        isSoftlyCancellableBy

        +
        protected boolean isSoftlyCancellableBy(com.idevicesinc.sweetblue.PA_Task task)
        +
      • +
      + + + +
        +
      • +

        attemptToSoftlyCancel

        +
        protected void attemptToSoftlyCancel(com.idevicesinc.sweetblue.PA_Task task)
        +
      • +
      + + + +
        +
      • +

        wasSoftlyCancelled

        +
        public boolean wasSoftlyCancelled()
        +
      • +
      + + + +
        +
      • +

        getToStringAddition

        +
        protected String getToStringAddition()
        +
      • +
      + + + + + + + +
        +
      • +

        isExplicit

        +
        public boolean isExplicit()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ReadWriteListener.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ReadWriteListener.html new file mode 100644 index 0000000..ba1b81e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ReadWriteListener.html @@ -0,0 +1,191 @@ + + + + + +ReadWriteListener (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface ReadWriteListener

+
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ScanOptions.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ScanOptions.html new file mode 100644 index 0000000..52d9e8e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/ScanOptions.html @@ -0,0 +1,418 @@ + + + + + +ScanOptions (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class ScanOptions

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/SweetLogger.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/SweetLogger.html new file mode 100644 index 0000000..4c997db --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/SweetLogger.html @@ -0,0 +1,227 @@ + + + + + +SweetLogger (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Interface SweetLogger

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLogEntry

        +
        void onLogEntry(int level,
        +                String tag,
        +                String msg)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/WriteBuilder.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/WriteBuilder.html new file mode 100644 index 0000000..1786919 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/WriteBuilder.html @@ -0,0 +1,616 @@ + + + + + +WriteBuilder (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue
+

Class WriteBuilder

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Advanced.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Advanced.html new file mode 100644 index 0000000..f2cbcee --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Advanced.html @@ -0,0 +1,165 @@ + + + + + +Advanced (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Advanced

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=CLASS)
    +public @interface Advanced
    +
    This annotation is used to tag certain classes or methods that + someone new to the library can most-likely safely ignore. Thus it doesn't necessarily + signify that a concept is hard to grasp, just that you probably don't need to grasp it now or maybe ever.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Alpha.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Alpha.html new file mode 100644 index 0000000..100a949 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Alpha.html @@ -0,0 +1,166 @@ + + + + + +Alpha (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Alpha

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=CLASS)
    +public @interface Alpha
    +
    This annotation is used to tag certain classes or methods that are considered "alpha" level quality. + This means that the feature will be release quality at some point in the future, but it + may require bug fixes, further documentation, code additions, backwards incompatible changes, moving to different + packages, etc., etc., to get to that point, so just be aware.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Experimental.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Experimental.html new file mode 100644 index 0000000..1ef0ef2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Experimental.html @@ -0,0 +1,164 @@ + + + + + +Experimental (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Experimental

+
+
+
+
    +
  • +
    +
    +
    @Target(value={TYPE,METHOD})
    +public @interface Experimental
    +
    Classes, or methods marked with this annotation are experimental features. You should be aware that if you use anything marked with this + annotation, that the resulting behavior may be unpredictable.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Extendable.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Extendable.html new file mode 100644 index 0000000..e3cbd2c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Extendable.html @@ -0,0 +1,164 @@ + + + + + +Extendable (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Extendable

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public @interface Extendable
    +
    This annotation denotes a class which is meant to be extendable. Most classes in the library are final for + better performance. This annotation just makes is clearer which classes are meant to be extendable.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Immutable.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Immutable.html new file mode 100644 index 0000000..bd6a53a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Immutable.html @@ -0,0 +1,165 @@ + + + + + +Immutable (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Immutable

+
+
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Lambda.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Lambda.html new file mode 100644 index 0000000..ed04a2b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Lambda.html @@ -0,0 +1,166 @@ + + + + + +Lambda (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Lambda

+
+
+
+
    +
  • +
    +
    +
    @Target(value=TYPE)
    + @Retention(value=CLASS)
    +public @interface Lambda
    +
    Used to denote interface declarations whose implementations can essentially act like lambdas (i.e. anonymous functions). + Implementations are technically classes and not language-level lambda constructs because + Java at this time does not support them. Conceptually however they can be treated as lambdas.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.Prevalence.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.Prevalence.html new file mode 100644 index 0000000..1ecd2fb --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.Prevalence.html @@ -0,0 +1,372 @@ + + + + + +Nullable.Prevalence (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Enum Nullable.Prevalence

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        NORMAL

        +
        public static final Nullable.Prevalence NORMAL
        +
        For method return values, returning null is a part of normal program execution. +

        + For method input parameters, passing null is normal and expected.
        +
      • +
      + + + +
        +
      • +

        RARE

        +
        public static final Nullable.Prevalence RARE
        +
        For method return values, returning null is a rare occurrence that may signify some deeper issue. +

        + For method input parameters, passing null is handled as a defensive measure but is rarely expected, and may signify some deeper issue upstream. + An assertion may be thrown and unit tests may fail, but an Exception won't be thrown for program integrity's sake.
        +
      • +
      + + + +
        +
      • +

        NEVER

        +
        public static final Nullable.Prevalence NEVER
        +
        For method return values, returning null will never happen. +

        + For method input parameters, passing null is not allowed and may result in an Exception.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Nullable.Prevalence[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Nullable.Prevalence c : Nullable.Prevalence.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Nullable.Prevalence valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.html new file mode 100644 index 0000000..1ce35a5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/Nullable.html @@ -0,0 +1,218 @@ + + + + + +Nullable (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type Nullable

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=RUNTIME)
    +public @interface Nullable
    +
    This annotation is used to tag methods and parameters to give extra information + on how they handle null. SweetBlue strives to never return null + if it doesn't have to, preferring things like BleDeviceState.NULL for example, + but in some situations it's unavoidable. +

    + NOTE: This annotation is only used in places where the library authors have judged that + the API by itself may be unclear about its null handling for newcomers. + In general, if this annotation isn't used, you may assume Nullable.Prevalence.NEVER.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Required Element Summary

      + + + + + + + + + + +
      Required Elements 
      Modifier and TypeRequired Element and Description
      Nullable.Prevalencevalue 
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/UnitTest.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/UnitTest.html new file mode 100644 index 0000000..844d7ef --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/UnitTest.html @@ -0,0 +1,164 @@ + + + + + +UnitTest (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.annotations
+

Annotation Type UnitTest

+
+
+
+
    +
  • +
    +
    +
    @Retention(value=SOURCE)
    +public @interface UnitTest
    +
    This annotation is used to dictate certain classes and/or fields which are + only used for Unit testing, and should be ignored.
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-frame.html new file mode 100644 index 0000000..6e7e91c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-frame.html @@ -0,0 +1,31 @@ + + + + + +com.idevicesinc.sweetblue.annotations (SweetBlue) + + + + + +

com.idevicesinc.sweetblue.annotations

+ + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-summary.html new file mode 100644 index 0000000..5db58c8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-summary.html @@ -0,0 +1,213 @@ + + + + + +com.idevicesinc.sweetblue.annotations (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue.annotations

+
+
Contains Annotation declarations used throughout the library.
+
+

See: Description

+
+
+
    +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    Nullable.Prevalence +
    Generally used for ElementType.METHOD to hint at how often it should return null.
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Annotation Types Summary 
    Annotation TypeDescription
    Advanced +
    This annotation is used to tag certain classes or methods that + someone new to the library can most-likely safely ignore.
    +
    Alpha +
    This annotation is used to tag certain classes or methods that are considered "alpha" level quality.
    +
    Experimental +
    Classes, or methods marked with this annotation are experimental features.
    +
    Extendable +
    This annotation denotes a class which is meant to be extendable.
    +
    Immutable +
    Classes marked with this Annotation have immutable internal state, or the apparent behavior of so.
    +
    Lambda +
    Used to denote interface declarations whose implementations can essentially act like lambdas (i.e.
    +
    Nullable +
    This annotation is used to tag methods and parameters to give extra information + on how they handle null.
    +
    UnitTest +
    This annotation is used to dictate certain classes and/or fields which are + only used for Unit testing, and should be ignored.
    +
    +
  • +
+ + + +

Package com.idevicesinc.sweetblue.annotations Description

+
Contains Annotation declarations used throughout the library.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-tree.html new file mode 100644 index 0000000..135794a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/annotations/package-tree.html @@ -0,0 +1,150 @@ + + + + + +com.idevicesinc.sweetblue.annotations Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue.annotations

+Package Hierarchies: + +
+
+

Annotation Type Hierarchy

+
    +
  • com.idevicesinc.sweetblue.annotations.Nullable (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Extendable (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Experimental (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.UnitTest (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Immutable (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Lambda (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Advanced (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Alpha (implements java.lang.annotation.Annotation)
  • +
+

Enum Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/Backend_Modules.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/Backend_Modules.html new file mode 100644 index 0000000..6473330 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/Backend_Modules.html @@ -0,0 +1,285 @@ + + + + + +Backend_Modules (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend
+

Class Backend_Modules

+
+
+ +
+
    +
  • +
    +
    +
    public class Backend_Modules
    +extends Object
    +
    A collection of Class instances used through Class.newInstance() to create instances of backend modules.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.AsyncLoadCallback.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.AsyncLoadCallback.html new file mode 100644 index 0000000..56322e7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.AsyncLoadCallback.html @@ -0,0 +1,223 @@ + + + + + +Backend_HistoricalDataList.AsyncLoadCallback (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend.historical
+

Interface Backend_HistoricalDataList.AsyncLoadCallback

+
+
+
+
    +
  • +
    +
    Enclosing interface:
    +
    Backend_HistoricalDataList
    +
    +
    +
    +
    public static interface Backend_HistoricalDataList.AsyncLoadCallback
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onDone

        +
        void onDone()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.html new file mode 100644 index 0000000..30c79fc --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList.html @@ -0,0 +1,545 @@ + + + + + +Backend_HistoricalDataList (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend.historical
+

Interface Backend_HistoricalDataList

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Backend_HistoricalDataList_Default
    +
    +
    +
    +
    public interface Backend_HistoricalDataList
    +
    Defines a specification for an interface over an in-memory list of historical data that optionally syncs to/from + disk using an implementation of Backend_HistoricalDatabase.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList_Default.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList_Default.html new file mode 100644 index 0000000..e82230b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDataList_Default.html @@ -0,0 +1,595 @@ + + + + + +Backend_HistoricalDataList_Default (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend.historical
+

Class Backend_HistoricalDataList_Default

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase.html new file mode 100644 index 0000000..4b55ffb --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase.html @@ -0,0 +1,453 @@ + + + + + +Backend_HistoricalDatabase (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend.historical
+

Interface Backend_HistoricalDatabase

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Backend_HistoricalDatabase_Default
    +
    +
    +
    +
    public interface Backend_HistoricalDatabase
    +
    Defines a specification for an interface over a disk-persisted database (probably SQL-based but not necessarily) + storing arbitrary historical data for each MAC-address/UUID combination provided.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase_Default.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase_Default.html new file mode 100644 index 0000000..07d1527 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/Backend_HistoricalDatabase_Default.html @@ -0,0 +1,576 @@ + + + + + +Backend_HistoricalDatabase_Default (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.backend.historical
+

Class Backend_HistoricalDatabase_Default

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Backend_HistoricalDatabase
    +
    +
    +
    +
    public class Backend_HistoricalDatabase_Default
    +extends Object
    +implements Backend_HistoricalDatabase
    +
    Defines a specification for an interface over a disk-persisted database (probably SQL-based but not necessarily) + storing arbitrary historical data for each MAC-address/UUID combination provided.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-frame.html new file mode 100644 index 0000000..4dccbca --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-frame.html @@ -0,0 +1,27 @@ + + + + + +com.idevicesinc.sweetblue.backend.historical (SweetBlue) + + + + + +

com.idevicesinc.sweetblue.backend.historical

+ + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-summary.html new file mode 100644 index 0000000..3ebdfe7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-summary.html @@ -0,0 +1,190 @@ + + + + + +com.idevicesinc.sweetblue.backend.historical (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue.backend.historical

+
+
Contains specification and default implementation of a "backend" for instances of BleDevice + that stores and manages historical data.
+
+

See: Description

+
+
+ + + + +

Package com.idevicesinc.sweetblue.backend.historical Description

+
Contains specification and default implementation of a "backend" for instances of BleDevice + that stores and manages historical data. The default implementation released with the open source GPLv3 code can only + track one piece of historical data per UUID at a time, and only to memory. +

+ Please contact sweetblue@idevicesinc.com to discuss upgrade options.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-tree.html new file mode 100644 index 0000000..d71da0d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/historical/package-tree.html @@ -0,0 +1,142 @@ + + + + + +com.idevicesinc.sweetblue.backend.historical Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue.backend.historical

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-frame.html new file mode 100644 index 0000000..0affb96 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-frame.html @@ -0,0 +1,20 @@ + + + + + +com.idevicesinc.sweetblue.backend (SweetBlue) + + + + + +

com.idevicesinc.sweetblue.backend

+
+

Classes

+ +
+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-summary.html new file mode 100644 index 0000000..30c3f26 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-summary.html @@ -0,0 +1,170 @@ + + + + + +com.idevicesinc.sweetblue.backend (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue.backend

+
+
Contains specification and default implementation of "backend" modules for SweetBlue.
+
+

See: Description

+
+
+ + + + +

Package com.idevicesinc.sweetblue.backend Description

+
Contains specification and default implementation of "backend" modules for SweetBlue. You never use anything in these subpackages + directly - rather they are the implementations for various official public methods of classes like BleDevice + and BleManager. Implementations released with the open source + GPLv3 code are restricted to give you a sample of the functionality but are most-likely not useful for production purposes. + Please contact sweetblue@idevicesinc.com to discuss upgrade options. +

+ The current back-end modules are as follows: +

    +
  • Historical Data for tracking past results of reads and notifications.
  • +

+

+ In varying stages of development are: +

    +
  • iBeacon/AltBeacon support.
  • +
  • BLE Server support (phone acts as the server).
  • +

+

+ NOTE: In general nothing in these subpackages is subject to backwards-compatible guarantees like the rest of the core of the library is. + Method and interface signatures may change without warning, which should be fine because the average person using SweetBlue doesn't + need to worry about how the back-end is implemented.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-tree.html new file mode 100644 index 0000000..bbdcfd0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/backend/package-tree.html @@ -0,0 +1,135 @@ + + + + + +com.idevicesinc.sweetblue.backend Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue.backend

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/K_Util.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/K_Util.html new file mode 100644 index 0000000..e5d9750 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/K_Util.html @@ -0,0 +1,282 @@ + + + + + +K_Util (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Class K_Util

+
+
+ +
+
    +
  • +
    +
    +
    public class K_Util
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.AdvertisingCallback.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.AdvertisingCallback.html new file mode 100644 index 0000000..b761f95 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.AdvertisingCallback.html @@ -0,0 +1,236 @@ + + + + + +L_Util.AdvertisingCallback (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Interface L_Util.AdvertisingCallback

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    L_Util
    +
    +
    +
    +
    public static interface L_Util.AdvertisingCallback
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        onStartFailure

        +
        void onStartFailure(int errorCode)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanCallback.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanCallback.html new file mode 100644 index 0000000..3f21446 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanCallback.html @@ -0,0 +1,251 @@ + + + + + +L_Util.ScanCallback (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Interface L_Util.ScanCallback

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    L_Util
    +
    +
    +
    +
    public static interface L_Util.ScanCallback
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onScanResult

        +
        void onScanResult(int callbackType,
        +                  L_Util.ScanResult result)
        +
      • +
      + + + + + + + +
        +
      • +

        onScanFailed

        +
        void onScanFailed(int errorCode)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanResult.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanResult.html new file mode 100644 index 0000000..56ea9b1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.ScanResult.html @@ -0,0 +1,299 @@ + + + + + +L_Util.ScanResult (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Class L_Util.ScanResult

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.compat.L_Util.ScanResult
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    L_Util
    +
    +
    +
    +
    public static class L_Util.ScanResult
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScanResult

        +
        public ScanResult()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getRssi

        +
        public int getRssi()
        +
      • +
      + + + +
        +
      • +

        getRecord

        +
        public byte[] getRecord()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.html new file mode 100644 index 0000000..3a3b1b1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/L_Util.html @@ -0,0 +1,503 @@ + + + + + +L_Util (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Class L_Util

+
+
+ +
+
    +
  • +
    +
    +
    public class L_Util
    +extends Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/M_Util.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/M_Util.html new file mode 100644 index 0000000..96b382f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/M_Util.html @@ -0,0 +1,334 @@ + + + + + +M_Util (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.compat
+

Class M_Util

+
+
+ +
+
    +
  • +
    +
    +
    public class M_Util
    +extends Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-frame.html new file mode 100644 index 0000000..30a76ab --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-frame.html @@ -0,0 +1,28 @@ + + + + + +com.idevicesinc.sweetblue.compat (SweetBlue) + + + + + +

com.idevicesinc.sweetblue.compat

+ + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-summary.html new file mode 100644 index 0000000..d753fd1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-summary.html @@ -0,0 +1,181 @@ + + + + + +com.idevicesinc.sweetblue.compat (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue.compat

+
+
Contains utility classes for hiding away newer API calls.
+
+

See: Description

+
+
+ + + + +

Package com.idevicesinc.sweetblue.compat Description

+
Contains utility classes for hiding away newer API calls. This exists simply to avoid + getting logcat error statements when running on older devices.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-tree.html new file mode 100644 index 0000000..a9b3940 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/compat/package-tree.html @@ -0,0 +1,143 @@ + + + + + +com.idevicesinc.sweetblue.compat Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue.compat

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-frame.html new file mode 100644 index 0000000..ac52cfa --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-frame.html @@ -0,0 +1,196 @@ + + + + + +com.idevicesinc.sweetblue (SweetBlue) + + + + + +

com.idevicesinc.sweetblue

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +
+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-summary.html new file mode 100644 index 0000000..f70abd5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-summary.html @@ -0,0 +1,1219 @@ + + + + + +com.idevicesinc.sweetblue (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue

+
+
Contains the core public-facing classes BleDevice and BleManager + and most of the internal guts for SweetBlue, the easiest way to do BLE on Android.
+
+

See: Description

+
+
+ + + + +

Package com.idevicesinc.sweetblue Description

+
Contains the core public-facing classes BleDevice and BleManager + and most of the internal guts for SweetBlue, the easiest way to do BLE on Android.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-tree.html new file mode 100644 index 0000000..bbf1097 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/package-tree.html @@ -0,0 +1,368 @@ + + + + + +com.idevicesinc.sweetblue Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/AdvertisingFlag.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/AdvertisingFlag.html new file mode 100644 index 0000000..afb9ab5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/AdvertisingFlag.html @@ -0,0 +1,426 @@ + + + + + +AdvertisingFlag (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum AdvertisingFlag

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        Limited_Discoverable_Mode

        +
        public static final AdvertisingFlag Limited_Discoverable_Mode
        +
      • +
      + + + +
        +
      • +

        General_Discoverable_Mode

        +
        public static final AdvertisingFlag General_Discoverable_Mode
        +
      • +
      + + + +
        +
      • +

        BR_EDR_Not_Supported

        +
        public static final AdvertisingFlag BR_EDR_Not_Supported
        +
      • +
      + + + +
        +
      • +

        LE_And_EDR_Supported_Controller

        +
        public static final AdvertisingFlag LE_And_EDR_Supported_Controller
        +
      • +
      + + + +
        +
      • +

        LE_And_EDR_Supported_Host

        +
        public static final AdvertisingFlag LE_And_EDR_Supported_Host
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static AdvertisingFlag[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (AdvertisingFlag c : AdvertisingFlag.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static AdvertisingFlag valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getBit

        +
        public byte getBit()
        +
      • +
      + + + +
        +
      • +

        overlaps

        +
        public boolean overlaps(int mask)
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BasicUuidNameMap.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BasicUuidNameMap.html new file mode 100644 index 0000000..9a0cdca --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BasicUuidNameMap.html @@ -0,0 +1,308 @@ + + + + + +BasicUuidNameMap (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BasicUuidNameMap

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BasicUuidNameMap

        +
        public BasicUuidNameMap()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        public void add(String uuid,
        +                String name)
        +
        Add a UUID-to-debug name entry.
        +
      • +
      + + + +
        +
      • +

        getUuidName

        +
        public String getUuidName(String uuid)
        +
        Description copied from interface: UuidNameMap
        +
        Returns the name of the UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL".
        +
        +
        Specified by:
        +
        getUuidName in interface UuidNameMap
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BitwiseEnum.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BitwiseEnum.html new file mode 100644 index 0000000..d0459c5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BitwiseEnum.html @@ -0,0 +1,291 @@ + + + + + +BitwiseEnum (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface BitwiseEnum

+
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        or

        +
        int or(BitwiseEnum state)
        +
        Does a bitwise OR for this state and the given state.
        +
      • +
      + + + +
        +
      • +

        or

        +
        int or(int bits)
        +
        Does a bitwise OR for this state and the given bits.
        +
      • +
      + + + +
        +
      • +

        overlaps

        +
        boolean overlaps(int mask)
        +
        Convenience method for checking if (Flag.bit() & mask) != 0x0.
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleScanInfo.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleScanInfo.html new file mode 100644 index 0000000..dd8ef65 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleScanInfo.html @@ -0,0 +1,735 @@ + + + + + +BleScanInfo (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BleScanInfo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    UsesCustomNull
    +
    +
    +
    +
    public final class BleScanInfo
    +extends Object
    +implements UsesCustomNull
    +
    Class used to store information from a BLE scan record. This class can also be used to create a scan record.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BleScanInfo

        +
        public BleScanInfo()
        +
        Basic constructor to use if you are building a scan record to advertise.
        +
      • +
      + + + +
        +
      • +

        BleScanInfo

        +
        public BleScanInfo(Pointer<Integer> advFlags,
        +                   Pointer<Integer> txPower,
        +                   List<UUID> serviceUuids,
        +                   boolean uuidCompleteList,
        +                   short mfgId,
        +                   byte[] mfgData,
        +                   Map<UUID,byte[]> serviceData,
        +                   String localName,
        +                   boolean shortName)
        +
        Constructor used internally when a BleDevice is discovered.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        clearServiceUUIDs

        +
        public final BleScanInfo clearServiceUUIDs()
        +
        Clears any service UUIDs in this instance.
        +
      • +
      + + + +
        +
      • +

        addServiceUUIDs

        +
        public final BleScanInfo addServiceUUIDs(List<UUID> uuids)
        +
        Add the given List of UUIDs to this instance's UUID list.
        +
      • +
      + + + +
        +
      • +

        addServiceData

        +
        public final BleScanInfo addServiceData(UUID uuid,
        +                                        byte[] data)
        +
        Add the given UUID and data to this instance's service data map.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setManufacturerId

        +
        public final BleScanInfo setManufacturerId(short id)
        +
        Set the manufacturer Id
        +
      • +
      + + + +
        +
      • +

        setManufacturerData

        +
        public final BleScanInfo setManufacturerData(byte[] data)
        +
        Set the manufacturer data
        +
      • +
      + + + + + + + +
        +
      • +

        setName

        +
        public final BleScanInfo setName(String name,
        +                                 boolean shortName)
        +
        Set the device name, and if it's a shortened name or not.
        +
      • +
      + + + +
        +
      • +

        getManufacturerId

        +
        public final short getManufacturerId()
        +
        Get the manufacturer Id from this BleScanInfo instance.
        +
      • +
      + + + +
        +
      • +

        getManufacturerData

        +
        public final byte[] getManufacturerData()
        +
        Get the manufacturer data from this instance.
        +
      • +
      + + + +
        +
      • +

        setAdvFlags

        +
        public final BleScanInfo setAdvFlags(byte mask)
        +
        Set the advertising flags. This method expects a byte bitmask (so all flags are already OR'd).
        +
      • +
      + + + +
        +
      • +

        setAdvFlags

        +
        public final BleScanInfo setAdvFlags(byte... flags)
        +
        Convenience method to set the advertising flags, which allows you to pass in every flag you want, and this + method will OR them together for you.
        +
      • +
      + + + +
        +
      • +

        getAdvFlags

        +
        public final Pointer<Integer> getAdvFlags()
        +
        Get the advertising flags for this instance.
        +
      • +
      + + + +
        +
      • +

        setTxPower

        +
        public final BleScanInfo setTxPower(byte power)
        +
        Set the TX power
        +
      • +
      + + + +
        +
      • +

        getTxPower

        +
        public final Pointer<Integer> getTxPower()
        +
        Gets the Tx power
        +
      • +
      + + + +
        +
      • +

        getServiceUUIDS

        +
        public final List<UUID> getServiceUUIDS()
        +
        Returns a list of service UUIDs. This ONLY includes UUIDs that do NOT have any data associated with them. + + See also getServiceData().
        +
      • +
      + + + +
        +
      • +

        getServiceData

        +
        public final Map<UUID,byte[]> getServiceData()
        +
        Returns a Map of the service data in this instance. + + See also getServiceUUIDS().
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public final String getName()
        +
        Returns the device name
        +
      • +
      + + + +
        +
      • +

        isShortName

        +
        public final boolean isShortName()
        +
        Returns whether the name is a shortened version or not.
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public final boolean isNull()
        +
        Returns true if this instance is considered null.
        +
        +
        Specified by:
        +
        isNull in interface UsesCustomNull
        +
        +
      • +
      + + + +
        +
      • +

        buildPacket

        +
        public final byte[] buildPacket()
        +
        Build a byte[] scan record from the data stored in this instance.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.UuidSize.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.UuidSize.html new file mode 100644 index 0000000..f63a315 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.UuidSize.html @@ -0,0 +1,379 @@ + + + + + +BleUuid.UuidSize (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum BleUuid.UuidSize

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        SHORT

        +
        public static final BleUuid.UuidSize SHORT
        +
        "Short" Uuid, which is a 16-bit UUID (2 bytes)
        +
      • +
      + + + +
        +
      • +

        MEDIUM

        +
        public static final BleUuid.UuidSize MEDIUM
        +
        "Medium" Uuid, which is a 32-bit UUID (4 bytes)
        +
      • +
      + + + +
        +
      • +

        FULL

        +
        public static final BleUuid.UuidSize FULL
        +
        Full 128-bit UUID (16 bytes)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BleUuid.UuidSize[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BleUuid.UuidSize c : BleUuid.UuidSize.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BleUuid.UuidSize valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        byteSize

        +
        public final int byteSize()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.html new file mode 100644 index 0000000..259bc95 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BleUuid.html @@ -0,0 +1,384 @@ + + + + + +BleUuid (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BleUuid

+
+
+ +
+
    +
  • +
    +
    +
    public final class BleUuid
    +extends Object
    +
    Class used to store a UUID along with the BleUuid.UuidSize of the UUID. The UUID class is always formatted + as a 128-bit UUID, but with scan records, you can have a 16, 32, or 128 bit UUID. Use BleUuid.UuidSize to specify this, so the packet + will be built properly. + + If you use BleScanInfo to create your scan packets, you will not need to use this class directly.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        uuid

        +
        public final UUID uuid()
        +
        Returns the backing UUID
        +
      • +
      + + + + + + + +
        +
      • +

        getMostSignificantBits

        +
        public final long getMostSignificantBits()
        +
        You shouldn't need to call this yourself, but it's left public for flexibility. This returns the most significant bits + of the backing UUID.
        +
      • +
      + + + +
        +
      • +

        getLeastSignificantBits

        +
        public final long getLeastSignificantBits()
        +
        You shouldn't need to call this yourself, but it's left public for flexibility. This returns the least significant bits + of the backing UUID.
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public final boolean equals(Object obj)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public final int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent.html new file mode 100644 index 0000000..8104806 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent.html @@ -0,0 +1,418 @@ + + + + + +BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Please.html new file mode 100644 index 0000000..5e20ee2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Please.html @@ -0,0 +1,384 @@ + + + + + +BluetoothEnabler.BluetoothEnablerFilter.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BluetoothEnabler.BluetoothEnablerFilter.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Stage.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Stage.html new file mode 100644 index 0000000..32ab98d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Stage.html @@ -0,0 +1,446 @@ + + + + + +BluetoothEnabler.BluetoothEnablerFilter.Stage (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum BluetoothEnabler.BluetoothEnablerFilter.Stage

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BluetoothEnabler.BluetoothEnablerFilter.Stage[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BluetoothEnabler.BluetoothEnablerFilter.Stage c : BluetoothEnabler.BluetoothEnablerFilter.Stage.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BluetoothEnabler.BluetoothEnablerFilter.Stage valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public boolean isNull()
        +
        Description copied from interface: UsesCustomNull
        +
        Returns true if the object's state represents what would otherwise be Java's built-in null.
        +
        +
        Specified by:
        +
        isNull in interface UsesCustomNull
        +
        +
      • +
      + + + +
        +
      • +

        isLast

        +
        public boolean isLast()
        +
      • +
      + + + +
        +
      • +

        isLocationRelated

        +
        public boolean isLocationRelated()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Status.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Status.html new file mode 100644 index 0000000..068c4d8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.Status.html @@ -0,0 +1,506 @@ + + + + + +BluetoothEnabler.BluetoothEnablerFilter.Status (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum BluetoothEnabler.BluetoothEnablerFilter.Status

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.html new file mode 100644 index 0000000..09d35f8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.BluetoothEnablerFilter.html @@ -0,0 +1,273 @@ + + + + + +BluetoothEnabler.BluetoothEnablerFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface BluetoothEnabler.BluetoothEnablerFilter

+
+
+
+ +
+
+ +
+ +
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.DefaultBluetoothEnablerFilter.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.DefaultBluetoothEnablerFilter.html new file mode 100644 index 0000000..e162ed7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.DefaultBluetoothEnablerFilter.html @@ -0,0 +1,303 @@ + + + + + +BluetoothEnabler.DefaultBluetoothEnablerFilter (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BluetoothEnabler.DefaultBluetoothEnablerFilter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.BluetoothEnabler.DefaultBluetoothEnablerFilter
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.html new file mode 100644 index 0000000..b2019ca --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/BluetoothEnabler.html @@ -0,0 +1,466 @@ + + + + + +BluetoothEnabler (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class BluetoothEnabler

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ByteBuffer.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ByteBuffer.html new file mode 100644 index 0000000..bed14c5 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ByteBuffer.html @@ -0,0 +1,493 @@ + + + + + +ByteBuffer (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class ByteBuffer

+
+
+ +
+
    +
  • +
    +
    +
    public final class ByteBuffer
    +extends Object
    +
    Convenience class to build up a byte array by appending bytes, or byte arrays.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static byteDEFAULT_BUFFER_SIZE +
      The default size to initialize the ByteBuffer with.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidappend(byte b) +
      Append a byte to the buffer.
      +
      voidappend(byte[] bytes) +
      Append a byte array to this buffer
      +
      voidappend(byte[] data, + int length) +
      Append the given byte array (of the length given, so you can pass in an array 100 bytes, but specify 50 to be added.
      +
      byte[]bytes() +
      Returns the bytes currently in this buffer.
      +
      byte[]bytesAndClear() +
      Returns the bytes that were added to this buffer.
      +
      voidclear() +
      Clears the buffer of any existing data.
      +
      intlength() +
      Returns the current length of the buffer
      +
      voidsetToSubData(int start, + int length) +
      Update the buffer to only contain the current data from the given start and length.
      +
      byte[]subData(int start, + int length) +
      Returns a byte array from this buffer from the given start index, and length + If length is less than 1, an empty byte array will be returned.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT_BUFFER_SIZE

        +
        public static final byte DEFAULT_BUFFER_SIZE
        +
        The default size to initialize the ByteBuffer with.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer(int initialSize)
        +
        Initialize this buffer with the given initial size
        +
      • +
      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer(byte[] bytes)
        +
        Create a new ByteBuffer with the given byte array. Note, the byte array is cloned before inserting + into the buffer.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public final void clear()
        +
        Clears the buffer of any existing data.
        +
      • +
      + + + +
        +
      • +

        append

        +
        public final void append(byte b)
        +
        Append a byte to the buffer.
        +
      • +
      + + + +
        +
      • +

        append

        +
        public final void append(byte[] bytes)
        +
        Append a byte array to this buffer
        +
      • +
      + + + +
        +
      • +

        append

        +
        public final void append(byte[] data,
        +                         int length)
        +
        Append the given byte array (of the length given, so you can pass in an array 100 bytes, but specify 50 to be added. This operation always starts at the + first index of the array).
        +
      • +
      + + + +
        +
      • +

        setToSubData

        +
        public final void setToSubData(int start,
        +                               int length)
        +
        Update the buffer to only contain the current data from the given start and length. If the start or length are out-of-bounds, then + nothing will be done to the buffer.
        +
      • +
      + + + +
        +
      • +

        subData

        +
        public final byte[] subData(int start,
        +                            int length)
        +
        Returns a byte array from this buffer from the given start index, and length + If length is less than 1, an empty byte array will be returned. An empty array + will be returned also if the start index is out of range. + + If the length is larger than the available bytes, then a byte array will be returned + with whatever bytes are available after the start index.
        +
      • +
      + + + +
        +
      • +

        length

        +
        public final int length()
        +
        Returns the current length of the buffer
        +
      • +
      + + + +
        +
      • +

        bytes

        +
        public final byte[] bytes()
        +
        Returns the bytes currently in this buffer.
        +
      • +
      + + + +
        +
      • +

        bytesAndClear

        +
        public final byte[] bytesAndClear()
        +
        Returns the bytes that were added to this buffer. + NOTE: This clears out the buffer, and starts with a fresh one.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.LogEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.LogEvent.html new file mode 100644 index 0000000..0240d00 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.LogEvent.html @@ -0,0 +1,223 @@ + + + + + +DebugLogger.LogEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface DebugLogger.LogEvent

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    DebugLogger
    +
    +
    +
    +
    public static interface DebugLogger.LogEvent
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLogEntry

        +
        void onLogEntry(String entry)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.html new file mode 100644 index 0000000..2e32d4f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/DebugLogger.html @@ -0,0 +1,473 @@ + + + + + +DebugLogger (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class DebugLogger

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    SweetLogger
    +
    +
    +
    +
    public final class DebugLogger
    +extends Object
    +implements SweetLogger
    +
    Logger class which prints SweetBlue logs to Android's logcat. This also tracks log statements. The internal list holds a specific amount of + statements. When that limit is reached, the oldest statement gets dropped from the list. + See DebugLogger(), DebugLogger(int), and DebugLogger(int, boolean).
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DebugLogger

        +
        public DebugLogger()
        +
        Default constructor which sets the max log size of DEFAULT_MAX_SIZE.
        +
      • +
      + + + +
        +
      • +

        DebugLogger

        +
        public DebugLogger(int maxLogSize)
        +
        Constructor which allows you to set a custom max log count size.
        +
      • +
      + + + +
        +
      • +

        DebugLogger

        +
        public DebugLogger(int maxLogSize,
        +                   boolean printToLogCat)
        +
        Constructor which allows you to set a custom max log count size, and whether or not you want the logger to print to log cat. + A good case where you wouldn't want to print to log cat, is for production builds. This way you can still get access to + SweetBlue logs (so if there's an issue, you can send those logs to us for debugging). Please be aware that in this case, you still + need to have BleManagerConfig.loggingEnabled set to true.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Distance.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Distance.html new file mode 100644 index 0000000..82b0cc8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Distance.html @@ -0,0 +1,446 @@ + + + + + +Distance (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Distance

+
+
+ +
+
    +
  • +
    +
    +
    public final class Distance
    +extends Unit<Distance>
    +
    Wrapper for a positive-only physical distance supporting various units of measurement.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        ZERO

        +
        public static final Distance ZERO
        +
        Convenience value for zero meters.
        +
      • +
      + + + +
        +
      • +

        INVALID

        +
        public static final Distance INVALID
        +
        Convenience value representing an invalid/impossible distance, arbitrarily chosen to be negative one meter.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        meters

        +
        public double meters()
        +
        Returns the value of this distance in meters.
        +
      • +
      + + + +
        +
      • +

        feet

        +
        public double feet()
        +
        Returns the value of this distance in feet.
        +
      • +
      + + + +
        +
      • +

        meters

        +
        public static Distance meters(double meters)
        +
        Creates a new value in meters.
        +
      • +
      + + + +
        +
      • +

        feet

        +
        public static Distance feet(double feet)
        +
        Creates a new value in feet.
        +
      • +
      + + + +
        +
      • +

        isValid

        +
        public boolean isValid()
        +
        Returns true if meters() is >= 0.
        +
      • +
      + + + + + + + +
        +
      • +

        getRawValue

        +
        protected double getRawValue()
        +
        Description copied from class: Unit
        +
        Subclasses must implement this to return their raw double value.
        +
        +
        Specified by:
        +
        getRawValue in class Unit<Distance>
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        protected Unit<Distance> newInstance(double rawValue)
        +
        Description copied from class: Unit
        +
        Subclasses must override this so that arithmetic "operators" can create new instances.
        +
        +
        Specified by:
        +
        newInstance in class Unit<Distance>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyCursor.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyCursor.html new file mode 100644 index 0000000..3a89f61 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyCursor.html @@ -0,0 +1,1016 @@ + + + + + +EmptyCursor (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class EmptyCursor

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Cursor, Closeable, AutoCloseable
    +
    +
    +
    +
    public class EmptyCursor
    +extends Object
    +implements Cursor
    +
    An implementation of Cursor used for error conditions and things like that where we don't want to return null.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyIterator.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyIterator.html new file mode 100644 index 0000000..29e620c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EmptyIterator.html @@ -0,0 +1,320 @@ + + + + + +EmptyIterator (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class EmptyIterator<T>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<T>
    +
    +
    +
    +
    public class EmptyIterator<T>
    +extends Object
    +implements Iterator<T>
    +
    Convenience class for implementing an Iterator with no elements.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EmptyIterator

        +
        public EmptyIterator()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        hasNext

        +
        public boolean hasNext()
        +
        +
        Specified by:
        +
        hasNext in interface Iterator<T>
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public T next()
        +
        +
        Specified by:
        +
        next in interface Iterator<T>
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public void remove()
        +
        +
        Specified by:
        +
        remove in interface Iterator<T>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTime.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTime.html new file mode 100644 index 0000000..80a6548 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTime.html @@ -0,0 +1,552 @@ + + + + + +EpochTime (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class EpochTime

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EpochTime

        +
        public EpochTime(Date date)
        +
        Converts from Java's built-in date.
        +
      • +
      + + + +
        +
      • +

        EpochTime

        +
        public EpochTime(long millisecondsSince1970)
        +
        Constructs a new instance using milliseconds since 1970.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        now

        +
        public static EpochTime now()
        +
        Simply a more readable version of the default constructor EpochTime().
        +
      • +
      + + + +
        +
      • +

        toMilliseconds

        +
        public long toMilliseconds()
        +
        Converts to milliseconds since 1970, which is currently also how the value is stored internally.
        +
      • +
      + + + +
        +
      • +

        toSeconds

        +
        public double toSeconds()
        +
        Converts to seconds since 1970.
        +
      • +
      + + + +
        +
      • +

        toDate

        +
        public Date toDate()
        +
        Converts to Java's built-in date class.
        +
      • +
      + + + +
        +
      • +

        isBetween_inclusive

        +
        public boolean isBetween_inclusive(EpochTime from,
        +                                   EpochTime to)
        +
        Does an inclusive check for this being in the given range.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        minus

        +
        public EpochTimeRange minus(EpochTime epochTime)
        +
        Returns the delta resulting from this-epochTime.
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public boolean isNull()
        +
        Returns true if this is referentially equal to NULL.
        +
        +
        Specified by:
        +
        isNull in interface UsesCustomNull
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTimeRange.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTimeRange.html new file mode 100644 index 0000000..2a68181 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EpochTimeRange.html @@ -0,0 +1,721 @@ + + + + + +EpochTimeRange (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class EpochTimeRange

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    UsesCustomNull
    +
    +
    +
    +
    public final class EpochTimeRange
    +extends Object
    +implements UsesCustomNull
    +
    Class representing a range of time between two instances of EpochTime. + This is similar to Interval but stores the actual beginning and end times and is generally meant for longer + periods of time.
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EpochTimeRange

        +
        public EpochTimeRange(EpochTime from,
        +                      EpochTime to)
        +
        Returns a new instance representing the time range between the given epoch times.
        +
      • +
      + + + +
        +
      • +

        EpochTimeRange

        +
        public EpochTimeRange(long from,
        +                      long to)
        +
        Returns a new instance representing the time range between the given epoch times as primitive longs.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        fromGiven_toNow

        +
        public static EpochTimeRange fromGiven_toNow(EpochTime from)
        +
        Returns a new instance representing the time range from the given value to now.
        +
      • +
      + + + + + + + +
        +
      • +

        from1970_toGiven

        +
        public static EpochTimeRange from1970_toGiven(EpochTime to)
        +
        Returns a new instance representing the time range from 1970 to the given value.
        +
      • +
      + + + + + + + +
        +
      • +

        from1970_toNow

        +
        public static EpochTimeRange from1970_toNow()
        +
        Returns a new instance representing the time range from 1970 to now.
        +
      • +
      + + + +
        +
      • +

        instant

        +
        public static EpochTimeRange instant(EpochTime time)
        +
        Returns a new instance representing an instant zero length time range.
        +
      • +
      + + + + + + + +
        +
      • +

        from

        +
        public EpochTime from()
        +
        Returns the "from" date passed into the constructor, + or EpochTime.NULL if null + was originally passed in.
        +
      • +
      + + + +
        +
      • +

        to

        +
        public EpochTime to()
        +
        Returns the "to" date passed into the constructor, + or EpochTime.NULL if null + was originally passed in.
        +
      • +
      + + + +
        +
      • +

        isValid

        +
        public boolean isValid()
        +
        Returns true if from() is less than or equal to to().
        +
      • +
      + + + +
        +
      • +

        isInvalid

        +
        public boolean isInvalid()
        +
        Returns true if from() is greater than to().
        +
      • +
      + + + +
        +
      • +

        isZero

        +
        public boolean isZero()
        +
        Returns true if from() and to() are equal.
        +
      • +
      + + + +
        +
      • +

        getDelta

        +
        public long getDelta()
        +
        Returns the raw milliseconds between from() and to().
        +
      • +
      + + + + + + + +
        +
      • +

        isNull

        +
        public boolean isNull()
        +
        Returns true if this is referentially equal to NULL.
        +
        +
        Specified by:
        +
        isNull in interface UsesCustomNull
        +
        +
      • +
      + + + +
        +
      • +

        lt

        +
        public boolean lt(EpochTimeRange otherRange)
        +
        "less than" comparison.
        +
      • +
      + + + +
        +
      • +

        lte

        +
        public boolean lte(EpochTimeRange otherRange)
        +
        "less than or equal" comparison.
        +
      • +
      + + + +
        +
      • +

        gt

        +
        public boolean gt(EpochTimeRange otherRange)
        +
        "greater than" comparison.
        +
      • +
      + + + +
        +
      • +

        gte

        +
        public boolean gte(EpochTimeRange otherRange)
        +
        "greater than or equal" comparison.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Event.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Event.html new file mode 100644 index 0000000..1888aa0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Event.html @@ -0,0 +1,319 @@ + + + + + +Event (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Event

+
+
+ + +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EventQueue.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EventQueue.html new file mode 100644 index 0000000..f7112c9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/EventQueue.html @@ -0,0 +1,286 @@ + + + + + +EventQueue (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class EventQueue

+
+
+ +
+
    +
  • +
    +
    +
    public final class EventQueue
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EventQueue

        +
        public EventQueue()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        add

        +
        public <T_Event extends Event> void add(GenericListener_Void<T_Event> listener_nullable,
        +                                        T_Event event_nullable)
        +
      • +
      + + + +
        +
      • +

        dispatch

        +
        public void dispatch()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Flag.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Flag.html new file mode 100644 index 0000000..1bb7207 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Flag.html @@ -0,0 +1,246 @@ + + + + + +Flag (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface Flag

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        bit

        +
        int bit()
        +
        Returns the bit (0x1, 0x2, 0x4, etc.) this enum represents based on the ordinal().
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.Please.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.Please.html new file mode 100644 index 0000000..ef5008a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.Please.html @@ -0,0 +1,278 @@ + + + + + +ForEach_Breakable.Please (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class ForEach_Breakable.Please

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.ForEach_Breakable.Please
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing interface:
    +
    ForEach_Breakable<T>
    +
    +
    +
    +
    public static class ForEach_Breakable.Please
    +extends Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.html new file mode 100644 index 0000000..6365f7f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Breakable.html @@ -0,0 +1,240 @@ + + + + + +ForEach_Breakable (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface ForEach_Breakable<T>

+
+
+
+
    +
  • +
    +
    +
    public interface ForEach_Breakable<T>
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Returning.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Returning.html new file mode 100644 index 0000000..6084fd1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Returning.html @@ -0,0 +1,219 @@ + + + + + +ForEach_Returning (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface ForEach_Returning<T>

+
+
+
+
    +
  • +
    +
    +
    public interface ForEach_Returning<T>
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        next

        +
        T next(int index)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Void.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Void.html new file mode 100644 index 0000000..3c43655 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ForEach_Void.html @@ -0,0 +1,221 @@ + + + + + +ForEach_Void (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface ForEach_Void<T>

+
+
+
+
    +
  • +
    +
    +
    public interface ForEach_Void<T>
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        next

        +
        void next(T next)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/FutureData.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/FutureData.html new file mode 100644 index 0000000..c660823 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/FutureData.html @@ -0,0 +1,272 @@ + + + + + +FutureData (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface FutureData

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    PresentData
    +
    +
    +
    +
    public interface FutureData
    +
    A simple interface whose implementations should be passed to methods like BleDevice.write(UUID, FutureData) + so you can provide time-sensitive data at the last possible moment. For example you may want to send the current time to a peripheral. If you provided + the time through BleDevice.write(UUID, byte[]) then the operation might spend a second or two in SweetBlue's internal job + queue, so that by the time the write was actually sent off, the time would be a few seconds behind. Using this class, the data will be requested right before + it actually gets sent off.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        EMPTY

        +
        @Deprecated
        +static final FutureData EMPTY
        +
        Deprecated. 
        +
        Convenience constant implementation that just returns an empty byte array.
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicBuilder.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicBuilder.html new file mode 100644 index 0000000..7a29cf2 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicBuilder.html @@ -0,0 +1,407 @@ + + + + + +GattDatabase.CharacteristicBuilder (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.CharacteristicBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicPermissions.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicPermissions.html new file mode 100644 index 0000000..76964e9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.CharacteristicPermissions.html @@ -0,0 +1,290 @@ + + + + + +GattDatabase.CharacteristicPermissions (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.CharacteristicPermissions

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorBuilder.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorBuilder.html new file mode 100644 index 0000000..df16a31 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorBuilder.html @@ -0,0 +1,354 @@ + + + + + +GattDatabase.DescriptorBuilder (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.DescriptorBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorPermissions.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorPermissions.html new file mode 100644 index 0000000..b448d3c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.DescriptorPermissions.html @@ -0,0 +1,290 @@ + + + + + +GattDatabase.DescriptorPermissions (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.DescriptorPermissions

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Permissions.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Permissions.html new file mode 100644 index 0000000..94572da --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Permissions.html @@ -0,0 +1,381 @@ + + + + + +GattDatabase.Permissions (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.Permissions<T extends GattDatabase.Permissions>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.GattDatabase.Permissions<T>
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Permissions

        +
        public Permissions()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        public final T read()
        +
      • +
      + + + +
        +
      • +

        read_encrypted

        +
        public final T read_encrypted()
        +
      • +
      + + + +
        +
      • +

        read_encrypted_mitm

        +
        public final T read_encrypted_mitm()
        +
      • +
      + + + +
        +
      • +

        write

        +
        public final T write()
        +
      • +
      + + + +
        +
      • +

        readWrite

        +
        public final T readWrite()
        +
      • +
      + + + +
        +
      • +

        signed_write

        +
        public final T signed_write()
        +
      • +
      + + + +
        +
      • +

        signed_write_mitm

        +
        public final T signed_write_mitm()
        +
      • +
      + + + +
        +
      • +

        write_encrypted

        +
        public final T write_encrypted()
        +
      • +
      + + + +
        +
      • +

        write_encrypted_mitm

        +
        public final T write_encrypted_mitm()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Properties.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Properties.html new file mode 100644 index 0000000..5b22b40 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.Properties.html @@ -0,0 +1,408 @@ + + + + + +GattDatabase.Properties (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.Properties

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.GattDatabase.Properties
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    GattDatabase
    +
    +
    +
    +
    public static class GattDatabase.Properties
    +extends Object
    +
  • +
+
+ +
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.ServiceBuilder.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.ServiceBuilder.html new file mode 100644 index 0000000..327fa49 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.ServiceBuilder.html @@ -0,0 +1,308 @@ + + + + + +GattDatabase.ServiceBuilder (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase.ServiceBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.html new file mode 100644 index 0000000..221627d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GattDatabase.html @@ -0,0 +1,339 @@ + + + + + +GattDatabase (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class GattDatabase

+
+
+ +
+
    +
  • +
    +
    +
    public class GattDatabase
    +extends Object
    +
    Use this class to build out a GATT database for your simulated devices when unit testing. It contains builder classes to make it easier + to build out the database. Start by calling addService(UUID).
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_T.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_T.html new file mode 100644 index 0000000..f36e0d0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_T.html @@ -0,0 +1,229 @@ + + + + + +GenericListener_T (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface GenericListener_T<T_Event extends Event,T_Return>

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_Void.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_Void.html new file mode 100644 index 0000000..6f96f36 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/GenericListener_Void.html @@ -0,0 +1,225 @@ + + + + + +GenericListener_Void (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface GenericListener_Void<T_Event extends Event>

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalData.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalData.html new file mode 100644 index 0000000..b710eb8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalData.html @@ -0,0 +1,519 @@ + + + + + +HistoricalData (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalData

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    UsesCustomNull
    +
    +
    +
    +
    public final class HistoricalData
    +extends Object
    +implements UsesCustomNull
    +
    Simple struct wrapping arbitrary blob data as a byte array along with an epoch timestamp + marking when the blob was originally created/collected.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NULL

        +
        public static HistoricalData NULL
        +
        Special value that replaces Java's built-int null and + is used everywhere Java's would otherwise be used.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HistoricalData

        +
        public HistoricalData(long millisecondsSince1970,
        +                      byte[] blob)
        +
      • +
      + + + +
        +
      • +

        HistoricalData

        +
        public HistoricalData(EpochTime epochTime,
        +                      byte[] blob)
        +
      • +
      + + + +
        +
      • +

        HistoricalData

        +
        public HistoricalData(byte[] blob,
        +                      long millisecondsSince1970)
        +
      • +
      + + + +
        +
      • +

        HistoricalData

        +
        public HistoricalData(byte[] blob,
        +                      EpochTime epochTime)
        +
      • +
      + + + +
        +
      • +

        HistoricalData

        +
        public HistoricalData(byte[] blob)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        getEpochTime

        +
        public EpochTime getEpochTime()
        +
        Returns the timestamp passed into the constructor.
        +
      • +
      + + + +
        +
      • +

        getEpochTime_date

        +
        public Date getEpochTime_date()
        +
        Convenience to return the timestamp as a Date instance.
        +
      • +
      + + + +
        +
      • +

        getEpochTime_millis

        +
        public long getEpochTime_millis()
        +
        Convenience to return the epoch time as milliseconds since 1970.
        +
      • +
      + + + +
        +
      • +

        getEpochTime_dateString

        +
        public String getEpochTime_dateString(DateFormat dateFormat)
        +
        Convenience to return the timestamp as a formatted string, for example pass new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").
        +
      • +
      + + + +
        +
      • +

        getBlob_string

        +
        public String getBlob_string()
        +
        Attempts to parse getBlob() as a UTF-8 string.
        +
      • +
      + + + +
        +
      • +

        getBlob

        +
        public byte[] getBlob()
        +
        Returns the data instance (WARNING: not cloned) passed into the constructor.
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public boolean isNull()
        +
        Checks if this is referentially equal to NULL.
        +
        +
        Specified by:
        +
        isNull in interface UsesCustomNull
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataColumn.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataColumn.html new file mode 100644 index 0000000..a39ec9a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataColumn.html @@ -0,0 +1,374 @@ + + + + + +HistoricalDataColumn (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum HistoricalDataColumn

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static HistoricalDataColumn[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (HistoricalDataColumn c : HistoricalDataColumn.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static HistoricalDataColumn valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataCursor.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataCursor.html new file mode 100644 index 0000000..38ad3b0 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataCursor.html @@ -0,0 +1,578 @@ + + + + + +HistoricalDataCursor (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface HistoricalDataCursor

+
+
+
+
    +
  • +
    +
    +
    public interface HistoricalDataCursor
    +
    This interface defines a wrapper around a database cursor (similar to Cursor) + specific to a database representing a series of HistoricalData serializations. + For performance reasons, implementations are not required to return actual HistoricalData instances, + just the underlying byte[] BLOB and long timestamp for each. +

    + NOTE: This may be wrapping an in-memory list, not just a database.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Closes the Cursor, releasing all of its resources and making it completely invalid.
      +
      byte[]getBlob() +
      Returns the BLOB of the historical data as a byte[], equivalent to HistoricalData.getBlob() + but a raw byte[] is used for performance reasons.
      +
      intgetCount() +
      Returns the numbers of rows in the cursor.
      +
      longgetEpochTime() +
      Returns the epoch time of the historical data as a long, equivalent to + HistoricalData.getEpochTime() but raw long is used for performance reasons.
      +
      HistoricalDatagetHistoricalData() +
      Returns the historical data at the current position.
      +
      intgetPosition() +
      Returns the current position of the cursor in the row set.
      +
      booleanisAfterLast() +
      Returns whether the cursor is pointing to the position after the last + row.
      +
      booleanisBeforeFirst() +
      Returns whether the cursor is pointing to the position before the first + row.
      +
      booleanisClosed() +
      return true if the cursor is closed
      +
      booleanisFirst() +
      Returns whether the cursor is pointing to the first row.
      +
      booleanisLast() +
      Returns whether the cursor is pointing to the last row.
      +
      booleanmove(int offset) +
      Move the cursor by a relative amount, forward or backward, from the + current position.
      +
      booleanmoveToFirst() +
      Move the cursor to the first row.
      +
      booleanmoveToLast() +
      Move the cursor to the last row.
      +
      booleanmoveToNext() +
      Move the cursor to the next row.
      +
      booleanmoveToPosition(int position) +
      Move the cursor to an absolute position.
      +
      booleanmoveToPrevious() +
      Move the cursor to the previous row.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCount

        +
        int getCount()
        +
        Returns the numbers of rows in the cursor.
        +
        +
        Returns:
        +
        the number of rows in the cursor.
        +
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        int getPosition()
        +
        Returns the current position of the cursor in the row set. + The value is zero-based. When the row set is first returned the cursor + will be at positon -1, which is before the first row. After the + last row is returned another call to next() will leave the cursor past + the last entry, at a position of count().
        +
        +
        Returns:
        +
        the current cursor position.
        +
        +
      • +
      + + + +
        +
      • +

        move

        +
        boolean move(int offset)
        +
        Move the cursor by a relative amount, forward or backward, from the + current position. Positive offsets move forwards, negative offsets move + backwards. If the final position is outside of the bounds of the result + set then the resultant position will be pinned to -1 or count() depending + on whether the value is off the front or end of the set, respectively. + +

        This method will return true if the requested destination was + reachable, otherwise, it returns false. For example, if the cursor is at + currently on the second entry in the result set and move(-5) is called, + the position will be pinned at -1, and false will be returned.

        +
        +
        Parameters:
        +
        offset - the offset to be applied from the current position.
        +
        Returns:
        +
        whether the requested move fully succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        moveToPosition

        +
        boolean moveToPosition(int position)
        +
        Move the cursor to an absolute position. The valid + range of values is -1 <= position <= count. + +

        This method will return true if the request destination was reachable, + otherwise, it returns false.

        +
        +
        Parameters:
        +
        position - the zero-based position to move to.
        +
        Returns:
        +
        whether the requested move fully succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        moveToFirst

        +
        boolean moveToFirst()
        +
        Move the cursor to the first row. + +

        This method will return false if the cursor is empty.

        +
        +
        Returns:
        +
        whether the move succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        moveToLast

        +
        boolean moveToLast()
        +
        Move the cursor to the last row. + +

        This method will return false if the cursor is empty.

        +
        +
        Returns:
        +
        whether the move succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        moveToNext

        +
        boolean moveToNext()
        +
        Move the cursor to the next row. + +

        This method will return false if the cursor is already past the + last entry in the result set.

        +
        +
        Returns:
        +
        whether the move succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        moveToPrevious

        +
        boolean moveToPrevious()
        +
        Move the cursor to the previous row. + +

        This method will return false if the cursor is already before the + first entry in the result set.

        +
        +
        Returns:
        +
        whether the move succeeded.
        +
        +
      • +
      + + + +
        +
      • +

        isFirst

        +
        boolean isFirst()
        +
        Returns whether the cursor is pointing to the first row.
        +
        +
        Returns:
        +
        whether the cursor is pointing at the first entry.
        +
        +
      • +
      + + + +
        +
      • +

        isLast

        +
        boolean isLast()
        +
        Returns whether the cursor is pointing to the last row.
        +
        +
        Returns:
        +
        whether the cursor is pointing at the last entry.
        +
        +
      • +
      + + + +
        +
      • +

        isBeforeFirst

        +
        boolean isBeforeFirst()
        +
        Returns whether the cursor is pointing to the position before the first + row.
        +
        +
        Returns:
        +
        whether the cursor is before the first result.
        +
        +
      • +
      + + + +
        +
      • +

        isAfterLast

        +
        boolean isAfterLast()
        +
        Returns whether the cursor is pointing to the position after the last + row.
        +
        +
        Returns:
        +
        whether the cursor is after the last result.
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        void close()
        +
        Closes the Cursor, releasing all of its resources and making it completely invalid.
        +
      • +
      + + + +
        +
      • +

        isClosed

        +
        boolean isClosed()
        +
        return true if the cursor is closed
        +
        +
        Returns:
        +
        true if the cursor is closed.
        +
        +
      • +
      + + + +
        +
      • +

        getEpochTime

        +
        long getEpochTime()
        +
        Returns the epoch time of the historical data as a long, equivalent to + HistoricalData.getEpochTime() but raw long is used for performance reasons.
        +
      • +
      + + + +
        +
      • +

        getBlob

        +
        byte[] getBlob()
        +
        Returns the BLOB of the historical data as a byte[], equivalent to HistoricalData.getBlob() + but a raw byte[] is used for performance reasons.
        +
      • +
      + + + +
        +
      • +

        getHistoricalData

        +
        HistoricalData getHistoricalData()
        +
        Returns the historical data at the current position. Note that this may or may not allocate an instance on demand, + which may be a minor but unneccessary performance hit for your use case. See also getEpochTime() and getBlob() to directly + access the underlying data without boxing.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part.html new file mode 100644 index 0000000..e2fa66f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part.html @@ -0,0 +1,245 @@ + + + + + +HistoricalDataQuery.Part (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part
    • +
    +
  • +
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsFrom.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsFrom.html new file mode 100644 index 0000000..077f173 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsFrom.html @@ -0,0 +1,290 @@ + + + + + +HistoricalDataQuery.Part_AllowsFrom (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_AllowsFrom

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsSelectColumn.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsSelectColumn.html new file mode 100644 index 0000000..d1c4bc3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_AllowsSelectColumn.html @@ -0,0 +1,315 @@ + + + + + +HistoricalDataQuery.Part_AllowsSelectColumn (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_AllowsSelectColumn

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_ClauseColumn.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_ClauseColumn.html new file mode 100644 index 0000000..381bfd9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_ClauseColumn.html @@ -0,0 +1,259 @@ + + + + + +HistoricalDataQuery.Part_ClauseColumn (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_ClauseColumn

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_From.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_From.html new file mode 100644 index 0000000..88eb696 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_From.html @@ -0,0 +1,219 @@ + + + + + +HistoricalDataQuery.Part_From (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_From

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Function.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Function.html new file mode 100644 index 0000000..86ab80f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Function.html @@ -0,0 +1,243 @@ + + + + + +HistoricalDataQuery.Part_Function (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_Function

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Select.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Select.html new file mode 100644 index 0000000..5241674 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Select.html @@ -0,0 +1,243 @@ + + + + + +HistoricalDataQuery.Part_Select (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_Select

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_SelectColumn.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_SelectColumn.html new file mode 100644 index 0000000..83abacd --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_SelectColumn.html @@ -0,0 +1,243 @@ + + + + + +HistoricalDataQuery.Part_SelectColumn (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_SelectColumn

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Where.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Where.html new file mode 100644 index 0000000..2682228 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.Part_Where.html @@ -0,0 +1,259 @@ + + + + + +HistoricalDataQuery.Part_Where (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery.Part_Where

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.html new file mode 100644 index 0000000..5f391df --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/HistoricalDataQuery.html @@ -0,0 +1,328 @@ + + + + + +HistoricalDataQuery (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class HistoricalDataQuery

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.HistoricalDataQuery
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class HistoricalDataQuery
    +extends Object
    +
    Class used to construct queries for BleNode.select().
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Interval.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Interval.html new file mode 100644 index 0000000..c2fc269 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Interval.html @@ -0,0 +1,615 @@ + + + + + +Interval (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Interval

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        INFINITE

        +
        public static final Interval INFINITE
        +
        Use this special value to signify positive infinite.
        +
      • +
      + + + +
        +
      • +

        ZERO

        +
        public static final Interval ZERO
        +
        Convenience value for zero time.
        +
      • +
      + + + +
        +
      • +

        ONE_SEC

        +
        public static final Interval ONE_SEC
        +
        Convenience value representing one second.
        +
      • +
      + + + +
        +
      • +

        FIVE_SECS

        +
        public static final Interval FIVE_SECS
        +
        Convenience value representing five seconds.
        +
      • +
      + + + +
        +
      • +

        TEN_SECS

        +
        public static final Interval TEN_SECS
        +
        Convenience value representing ten seconds.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        secs

        +
        public double secs()
        +
        Returns the value of this interval in seconds.
        +
      • +
      + + + +
        +
      • +

        millis

        +
        public long millis()
        +
        Returns the value of this interval in milliseconds.
        +
      • +
      + + + +
        +
      • +

        secs

        +
        public static Interval secs(double value)
        +
        Returns a new Interval representing the given number of seconds.
        +
      • +
      + + + +
        +
      • +

        mins

        +
        public static Interval mins(int value)
        +
        Returns a new Interval representing the given number of minutes.
        +
      • +
      + + + +
        +
      • +

        millis

        +
        public static Interval millis(long milliseconds)
        +
        Returns a new Interval representing the given number of milliseconds.
        +
      • +
      + + + + + + + +
        +
      • +

        delta

        +
        public static Interval delta(long earlierTime_millis,
        +                             long laterTime_millis)
        +
        Returns a new Interval representing the delta between the two epoch times.
        +
      • +
      + + + +
        +
      • +

        secs

        +
        public static double secs(Interval interval_nullable)
        +
        Returns the double values as seconds from a given nullable Interval.
        +
      • +
      + + + +
        +
      • +

        isEnabled

        +
        public static boolean isEnabled(Interval interval_nullable)
        +
        Returns true if the given Interval is not null + and its value is greater than zero.
        +
      • +
      + + + +
        +
      • +

        isEnabled

        +
        public static boolean isEnabled(double interval)
        + +
      • +
      + + + +
        +
      • +

        isDisabled

        +
        public static boolean isDisabled(Interval interval_nullable)
        +
        Returns true if the given Interval is either null + or its value is less than or equal to zero.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getRawValue

        +
        protected double getRawValue()
        +
        Description copied from class: Unit
        +
        Subclasses must implement this to return their raw double value.
        +
        +
        Specified by:
        +
        getRawValue in class Unit<Interval>
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        protected Unit<Interval> newInstance(double rawValue)
        +
        Description copied from class: Unit
        +
        Subclasses must override this so that arithmetic "operators" can create new instances.
        +
        +
        Specified by:
        +
        newInstance in class Unit<Interval>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_Const.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_Const.html new file mode 100644 index 0000000..00d7473 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_Const.html @@ -0,0 +1,338 @@ + + + + + +P_Const (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class P_Const

+
+
+ +
+
    +
  • +
    +
    +
    public final class P_Const
    +extends Object
    +
    Class which simply houses static final empty constructs which are used throughout the library (rather than instantiating new ones + every time)
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        P_Const

        +
        public P_Const()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONApplier.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONApplier.html new file mode 100644 index 0000000..9ead437 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONApplier.html @@ -0,0 +1,227 @@ + + + + + +P_JSONUtil.JSONApplier (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface P_JSONUtil.JSONApplier

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    P_JSONUtil
    +
    +
    +
    +
    public static interface P_JSONUtil.JSONApplier
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONExtractor.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONExtractor.html new file mode 100644 index 0000000..80a97a6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.JSONExtractor.html @@ -0,0 +1,225 @@ + + + + + +P_JSONUtil.JSONExtractor (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface P_JSONUtil.JSONExtractor

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    P_JSONUtil
    +
    +
    +
    +
    public static interface P_JSONUtil.JSONExtractor
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.html new file mode 100644 index 0000000..039b4e3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/P_JSONUtil.html @@ -0,0 +1,341 @@ + + + + + +P_JSONUtil (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class P_JSONUtil

+
+
+ +
+
    +
  • +
    +
    +
    public class P_JSONUtil
    +extends Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Percent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Percent.html new file mode 100644 index 0000000..6531248 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Percent.html @@ -0,0 +1,509 @@ + + + + + +Percent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Percent

+
+
+ +
+
    +
  • +
    +
    +
    public final class Percent
    +extends Unit<Percent>
    +
    Wrapper for a percentage value, generally from 0-100%;
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        ZERO

        +
        public static final Percent ZERO
        +
        Convenience value representing 0%.
        +
      • +
      + + + +
        +
      • +

        HUNDRED

        +
        public static final Percent HUNDRED
        +
        Convenience value representing 100%.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clamp

        +
        public Percent clamp()
        +
        Returns a new instance clamped between 0% and 100%.
        +
      • +
      + + + +
        +
      • +

        toFraction

        +
        public double toFraction()
        +
        Returns .5 for 50%, for example.
        +
      • +
      + + + +
        +
      • +

        toDouble

        +
        public double toDouble()
        +
        Returns the double value of this instance.
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        fromDouble

        +
        public static Percent fromDouble(double value)
        +
        Returns a new instance using the given double value.
        +
      • +
      + + + +
        +
      • +

        fromDouble_clamped

        +
        public static Percent fromDouble_clamped(double value)
        +
        Returns a new instance clamped between 0% and 100%, regardless of input value.
        +
      • +
      + + + +
        +
      • +

        fromInt

        +
        public static Percent fromInt(int value)
        +
        Returns a new instance using the given int value.
        +
      • +
      + + + +
        +
      • +

        fromInt_clamped

        +
        public static Percent fromInt_clamped(int value)
        +
        Returns a new instance clamped between 0% and 100%, regardless of input value.
        +
      • +
      + + + + + + + +
        +
      • +

        getRawValue

        +
        protected double getRawValue()
        +
        Description copied from class: Unit
        +
        Subclasses must implement this to return their raw double value.
        +
        +
        Specified by:
        +
        getRawValue in class Unit<Percent>
        +
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        protected Unit<Percent> newInstance(double rawValue)
        +
        Description copied from class: Unit
        +
        Subclasses must override this so that arithmetic "operators" can create new instances.
        +
        +
        Specified by:
        +
        newInstance in class Unit<Percent>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Pointer.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Pointer.html new file mode 100644 index 0000000..889f90b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Pointer.html @@ -0,0 +1,286 @@ + + + + + +Pointer (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Pointer<T>

+
+
+ +
+
    +
  • +
    +
    +
    public final class Pointer<T>
    +extends Object
    +
    Provides a way to be able to change a value declared in the outer scope of an anonymous inline class.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        value

        +
        public T value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        Pointer

        +
        public Pointer(T value_in)
        +
      • +
      + + + +
        +
      • +

        Pointer

        +
        public Pointer()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/PresentData.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/PresentData.html new file mode 100644 index 0000000..8f7a80a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/PresentData.html @@ -0,0 +1,300 @@ + + + + + +PresentData (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class PresentData

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    FutureData
    +
    +
    +
    +
    public final class PresentData
    +extends Object
    +implements FutureData
    +
    Simple dummy implementation of FutureData that just returns whatever is passed into the constructor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PresentData

        +
        public PresentData(byte[] data)
        +
        The data sent to this constructor will simply be returned by getData().
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ReflectionUuidNameMap.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ReflectionUuidNameMap.html new file mode 100644 index 0000000..201b56e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/ReflectionUuidNameMap.html @@ -0,0 +1,292 @@ + + + + + +ReflectionUuidNameMap (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class ReflectionUuidNameMap

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.ReflectionUuidNameMap
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ReflectionUuidNameMap

        +
        public ReflectionUuidNameMap(Class<?> classWithStaticUuids)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUuidName

        +
        public String getUuidName(String uuid)
        +
        Description copied from interface: UuidNameMap
        +
        Returns the name of the UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL".
        +
        +
        Specified by:
        +
        getUuidName in interface UuidNameMap
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/SingleElementIterator.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/SingleElementIterator.html new file mode 100644 index 0000000..c92cd00 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/SingleElementIterator.html @@ -0,0 +1,338 @@ + + + + + +SingleElementIterator (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class SingleElementIterator<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.SingleElementIterator<T>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Iterator<T>
    +
    +
    +
    +
    public class SingleElementIterator<T>
    +extends Object
    +implements Iterator<T>
    +
    Convenience class for implementing an Iterator with a single element.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        SingleElementIterator

        +
        public SingleElementIterator(T element)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        hasNext

        +
        public boolean hasNext()
        +
        +
        Specified by:
        +
        hasNext in interface Iterator<T>
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public T next()
        +
        +
        Specified by:
        +
        next in interface Iterator<T>
        +
        +
      • +
      + + + +
        +
      • +

        onRemove

        +
        protected void onRemove()
        +
        Optionally override this method to implement remove logic.
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public void remove()
        +
        +
        Specified by:
        +
        remove in interface Iterator<T>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeEvent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeEvent.html new file mode 100644 index 0000000..7ef45fd --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeEvent.html @@ -0,0 +1,559 @@ + + + + + +State.ChangeEvent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class State.ChangeEvent<T_State extends State>

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChangeEvent

        +
        protected ChangeEvent(int oldStateBits,
        +                      int newStateBits,
        +                      int intentMask)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        oldStateBits

        +
        public int oldStateBits()
        +
        The bitwise representation of the BleDevice or BleManager + before the event took place.
        +
      • +
      + + + + + + + +
        +
      • +

        intentMask

        +
        public int intentMask()
        +
        For each old->new bit difference, this mask will tell you if the transition was intentional. "Intentional" generally means a call was made to + a public method of the library from app-code to trigger the state change, and so usually the stacktrace started from a user input event upstream. + Otherwise the given bit will be 0x0 and so the state change was "unintentional". An example of intentional is if you call + BleDevice.disconnect() in response to a button click, whereas unintentional would be if the device disconnected because it + went out of range. As much as possible these flags are meant to represent the actual app user's intent through the app, not + the intent of you the programmer, nor the intent of the user outside the bounds of the app, like disconnecting by turning the peripheral off. + For example after a disconnect you might be using BleNodeConfig.reconnectFilter to try periodically + reconnecting. From you the programmer's perspective a connect, if/when it happens, is arguably an intentional action. From the user's + perspective however the connect was unintentional. Therefore this mask is currently meant to serve an analytics or debugging role, + not to necessarily gate application logic.
        +
      • +
      + + + +
        +
      • +

        enterMask

        +
        public int enterMask()
        +
        Returns all the states that were entered as a bit mask.
        +
      • +
      + + + +
        +
      • +

        exitMask

        +
        public int exitMask()
        +
        Returns all the states that were exited as a bit mask.
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        didEnterAny

        +
        public boolean didEnterAny(T_State... states)
        +
        Convenience to return true if didEnter(State) returns true on any of the State instances given.
        +
      • +
      + + + + + +
        +
      • +

        didExitAny

        +
        public boolean didExitAny(T_State... states)
        +
        Convenience to return true if didExit(State) returns true on any of the State instances given.
        +
      • +
      + + + + + +
        +
      • +

        didEnterAll

        +
        public boolean didEnterAll(T_State... states)
        +
        Convenience to return true if didEnter(State) returns true for all the State instances given.
        +
      • +
      + + + + + +
        +
      • +

        didExitAll

        +
        public boolean didExitAll(T_State... states)
        +
        Convenience to return true if didExit(State) returns true for all the State instances given.
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeIntent.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeIntent.html new file mode 100644 index 0000000..71876da --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.ChangeIntent.html @@ -0,0 +1,427 @@ + + + + + +State.ChangeIntent (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum State.ChangeIntent

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        NULL

        +
        public static final State.ChangeIntent NULL
        +
        Used instead of Java's built-in null wherever appropriate.
        +
      • +
      + + + +
        +
      • +

        UNINTENTIONAL

        +
        public static final State.ChangeIntent UNINTENTIONAL
        +
        The state change was not intentional.
        +
      • +
      + + + +
        +
      • +

        INTENTIONAL

        +
        public static final State.ChangeIntent INTENTIONAL
        +
        The state change was intentional.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static State.ChangeIntent[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (State.ChangeIntent c : State.ChangeIntent.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static State.ChangeIntent valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        toDiskValue

        +
        public int toDiskValue()
        +
        The integer value to write to disk. Not using ordinal to avoid + unintentional consequences of changing enum order by accident or something.
        +
      • +
      + + + + + + + +
        +
      • +

        fromDiskValue

        +
        public static State.ChangeIntent fromDiskValue(int diskValue)
        +
        Transforms toDiskValue() back to the enum. + Returns NULL if diskValue can't be resolved.
        +
      • +
      + + + +
        +
      • +

        bits

        +
        public int bits()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.html new file mode 100644 index 0000000..d558691 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/State.html @@ -0,0 +1,328 @@ + + + + + +State (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface State

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeEstimator.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeEstimator.html new file mode 100644 index 0000000..3394c00 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeEstimator.html @@ -0,0 +1,390 @@ + + + + + +TimeEstimator (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class TimeEstimator

+
+
+ +
+
    +
  • +
    +
    +
    public class TimeEstimator
    +extends Object
    +
    A zero-dependency utility class to track running average time of operations + and estimate the completion time of long running operations like firmware updates. + Basically takes times as doubles representing seconds, and spits back the same.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TimeEstimator

        +
        public TimeEstimator(int totalSteps,
        +                     double estimatedTimePerStep,
        +                     int runningAverageN)
        +
        Lets this class act as a "time remaining" estimator for long-running operations.
        +
      • +
      + + + +
        +
      • +

        TimeEstimator

        +
        public TimeEstimator(int runningAverageN)
        +
        Lets this class act as a utility for calculating the running average completion time of arbitrary operations.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addTime

        +
        public void addTime(double timeStep)
        +
        Adds the time it took for a just-completed operation to finish + and updates the running average time.
        +
      • +
      + + + +
        +
      • +

        getTimeElapsed

        +
        public double getTimeElapsed()
        +
      • +
      + + + +
        +
      • +

        getTimeRemaining

        +
        public double getTimeRemaining()
        +
      • +
      + + + +
        +
      • +

        getStepsCompleted

        +
        public int getStepsCompleted()
        +
      • +
      + + + +
        +
      • +

        getStepsRemaining

        +
        public int getStepsRemaining()
        +
      • +
      + + + +
        +
      • +

        getRunningAverage

        +
        public double getRunningAverage()
        +
      • +
      + + + +
        +
      • +

        getRunningAverageN

        +
        public int getRunningAverageN()
        +
      • +
      + + + +
        +
      • +

        getTotalAverage

        +
        public double getTotalAverage()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeTracker.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeTracker.html new file mode 100644 index 0000000..5643b59 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/TimeTracker.html @@ -0,0 +1,274 @@ + + + + + +TimeTracker (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class TimeTracker

+
+
+ +
+
    +
  • +
    +
    +
    public class TimeTracker
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        start

        +
        public final void start()
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public final long stop(String methodName)
        +
      • +
      + + + +
        +
      • +

        printLog

        +
        public final void printLog()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Unit.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Unit.html new file mode 100644 index 0000000..b03c27c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Unit.html @@ -0,0 +1,530 @@ + + + + + +Unit (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Unit<T extends Unit>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - Used to enforce just-in-case subclass type checking for methods like lt(Unit) so you can't compare one subclass with another subclass.
    +
    +
    +
    Direct Known Subclasses:
    +
    Distance, Interval, Percent
    +
    +
    +
    +
    public abstract class Unit<T extends Unit>
    +extends Object
    +
    Common abstract base class for all units of measurement, providing default convenience methods + for things like comparison.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Unit() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      Unit<T>dividedBy(Unit<T> other) +
      Returns a new instance that is the result of doing this / other.
      +
      booleanequals(Object object) +
      Returns == using getRawValue().
      +
      protected abstract doublegetRawValue() +
      Subclasses must implement this to return their raw double value.
      +
      booleangt(double otherUnit) +
      "greater than" comparison.
      +
      booleangt(Unit<T> otherUnit) +
      "greater than" comparison.
      +
      booleangte(double otherUnit) +
      "greater than or equal" comparison.
      +
      booleangte(Unit<T> otherUnit) +
      "greater than or equal" comparison.
      +
      inthashCode() +
      Hashes getRawValue() to an int using Double.hashCode().
      +
      booleanlt(double otherUnit) +
      "less than" comparison.
      +
      booleanlt(Unit<T> otherUnit) +
      "less than" comparison.
      +
      booleanlte(double otherUnit) +
      "less than or equal" comparison.
      +
      booleanlte(Unit<T> otherUnit) +
      "less than or equal" comparison.
      +
      Unit<T>minus(Unit<T> other) +
      Returns a new instance that is the result of doing this - other.
      +
      protected abstract Unit<T>newInstance(double rawValue) +
      Subclasses must override this so that arithmetic "operators" can create new instances.
      +
      Unit<T>plus(Unit<T> other) +
      Returns a new instance that is the result of doing this + other.
      +
      Unit<T>times(Unit<T> other) +
      Returns a new instance that is the result of doing this * other.
      +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Unit

        +
        public Unit()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        lt

        +
        public boolean lt(Unit<T> otherUnit)
        +
        "less than" comparison.
        +
      • +
      + + + +
        +
      • +

        lte

        +
        public boolean lte(Unit<T> otherUnit)
        +
        "less than or equal" comparison.
        +
      • +
      + + + +
        +
      • +

        gt

        +
        public boolean gt(Unit<T> otherUnit)
        +
        "greater than" comparison.
        +
      • +
      + + + +
        +
      • +

        gte

        +
        public boolean gte(Unit<T> otherUnit)
        +
        "greater than or equal" comparison.
        +
      • +
      + + + +
        +
      • +

        lt

        +
        public boolean lt(double otherUnit)
        +
        "less than" comparison.
        +
      • +
      + + + +
        +
      • +

        lte

        +
        public boolean lte(double otherUnit)
        +
        "less than or equal" comparison.
        +
      • +
      + + + +
        +
      • +

        gt

        +
        public boolean gt(double otherUnit)
        +
        "greater than" comparison.
        +
      • +
      + + + +
        +
      • +

        gte

        +
        public boolean gte(double otherUnit)
        +
        "greater than or equal" comparison.
        +
      • +
      + + + +
        +
      • +

        minus

        +
        public Unit<T> minus(Unit<T> other)
        +
        Returns a new instance that is the result of doing this - other.
        +
      • +
      + + + +
        +
      • +

        plus

        +
        public Unit<T> plus(Unit<T> other)
        +
        Returns a new instance that is the result of doing this + other.
        +
      • +
      + + + +
        +
      • +

        times

        +
        public Unit<T> times(Unit<T> other)
        +
        Returns a new instance that is the result of doing this * other.
        +
      • +
      + + + +
        +
      • +

        dividedBy

        +
        public Unit<T> dividedBy(Unit<T> other)
        +
        Returns a new instance that is the result of doing this / other.
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getRawValue

        +
        protected abstract double getRawValue()
        +
        Subclasses must implement this to return their raw double value.
        +
      • +
      + + + +
        +
      • +

        newInstance

        +
        protected abstract Unit<T> newInstance(double rawValue)
        +
        Subclasses must override this so that arithmetic "operators" can create new instances.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UpdateLoop.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UpdateLoop.html new file mode 100644 index 0000000..2cd4fd3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UpdateLoop.html @@ -0,0 +1,433 @@ + + + + + +UpdateLoop (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class UpdateLoop

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    PI_UpdateLoop
    +
    +
    +
    Deprecated.
    +
    +
    @Deprecated
    +public class UpdateLoop
    +extends Object
    +implements PI_UpdateLoop
    +
    Zero-dependency (besides Android) utility class for creating an update loop.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UsesCustomNull.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UsesCustomNull.html new file mode 100644 index 0000000..2da6098 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UsesCustomNull.html @@ -0,0 +1,239 @@ + + + + + +UsesCustomNull (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface UsesCustomNull

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      booleanisNull() +
      Returns true if the object's state represents what would otherwise be Java's built-in null.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isNull

        +
        boolean isNull()
        +
        Returns true if the object's state represents what would otherwise be Java's built-in null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils.html new file mode 100644 index 0000000..34b4bfa --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils.html @@ -0,0 +1,555 @@ + + + + + +Utils (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Utils

        +
        protected Utils()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isLollipop

        +
        public static boolean isLollipop()
        +
      • +
      + + + +
        +
      • +

        isMarshmallow

        +
        public static boolean isMarshmallow()
        +
      • +
      + + + +
        +
      • +

        isNougat

        +
        public static boolean isNougat()
        +
      • +
      + + + +
        +
      • +

        isKitKat

        +
        public static boolean isKitKat()
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning_byManifestPermissions

        +
        public static boolean isLocationEnabledForScanning_byManifestPermissions(Context context)
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning_byRuntimePermissions

        +
        public static boolean isLocationEnabledForScanning_byRuntimePermissions(Context context)
        +
      • +
      + + + +
        +
      • +

        hasManifestPermission

        +
        public static boolean hasManifestPermission(Context context,
        +                                            String permission)
        +
      • +
      + + + +
        +
      • +

        refreshGatt

        +
        public static boolean refreshGatt(BluetoothGatt gatt)
        +
        Utility method used to refresh the GATT database. This is here as a convenience, you shouldn't need to call it yourself. It is called automatically + by the service discovery task if you have BleDeviceConfig.useGattRefresh set to true. + This method returns false if the method wasn't able to be invoked properly, or Method.invoke(Object, Object...) returns false
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning_byOsServices

        +
        public static boolean isLocationEnabledForScanning_byOsServices(Context context)
        +
        Adapted from http://stackoverflow.com/a/22980843/4248895.
        +
      • +
      + + + +
        +
      • +

        isLocationEnabledForScanning

        +
        public static boolean isLocationEnabledForScanning(Context context)
        +
      • +
      + + + +
        +
      • +

        phoneHasBondingIssues

        +
        public static boolean phoneHasBondingIssues()
        +
        Returns true for certain products, which may have problems managing bonding state + and so this method is used in BleDeviceConfig.DefaultBondFilter. + + So far this method includes these products:

        + All sony devices

        + Motorola ("ghost", and "victara" products) + Samsung ("degaswifiue" product - Tab 4) + AMobile IOT-500 ("full_amobile2601_wp_l" product)
        +
      • +
      + + + +
        +
      • +

        isManufacturer

        +
        public static boolean isManufacturer(String manufacturer)
        +
      • +
      + + + +
        +
      • +

        isProduct

        +
        public static boolean isProduct(String product)
        +
      • +
      + + + +
        +
      • +

        isOnMainThread

        +
        public static boolean isOnMainThread()
        +
      • +
      + + + +
        +
      • +

        isSuccess

        +
        public static boolean isSuccess(int gattStatus)
        +
      • +
      + + + +
        +
      • +

        contains

        +
        public static boolean contains(Object[] uuids,
        +                               Object uuid)
        +
      • +
      + + + +
        +
      • +

        haveMatchingIds

        +
        public static boolean haveMatchingIds(List<UUID> advertisedIds,
        +                                      Collection<UUID> lookedForIds)
        +
      • +
      + + + +
        +
      • +

        hasPermission

        +
        public static boolean hasPermission(Context context,
        +                                    String permission)
        +
      • +
      + + + +
        +
      • +

        doForEach_break

        +
        public static <T> boolean doForEach_break(Object forEach,
        +                                          List<T> list)
        +
      • +
      + + + +
        +
      • +

        doForEach_break

        +
        public static boolean doForEach_break(Object forEach,
        +                                      Object next)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Byte.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Byte.html new file mode 100644 index 0000000..d874d67 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Byte.html @@ -0,0 +1,858 @@ + + + + + +Utils_Byte (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_Byte

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_Byte
    +extends Utils
    +
    Utility methods for byte and bit twiddling.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toBits

        +
        public static int toBits(BitwiseEnum... enums)
        +
        Converts a var-args of BitwiseEnums to an int of their bit values
        +
      • +
      + + + +
        +
      • +

        hexStringToBytes

        +
        public static byte[] hexStringToBytes(String string)
        +
        Convert a hex string into a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToHexString

        +
        public static String bytesToHexString(byte[] bytes)
        +
        Convert a byte array to a hex string
        +
      • +
      + + + +
        +
      • +

        bytesToBinaryString

        +
        public static String bytesToBinaryString(byte[] bytes)
        +
        Convert a byte array to a hex string
        +
      • +
      + + + +
        +
      • +

        bytesToBinaryString

        +
        public static String bytesToBinaryString(byte[] bytes,
        +                                         int bytesBetweenSpaces)
        +
        Convert a byte array to a hex string + Also inserts spaces between every count bytes (for legibility)
        +
      • +
      + + + +
        +
      • +

        binaryStringToBytes

        +
        public static byte[] binaryStringToBytes(String s)
        +                                  throws Exception
        +
        +
        Throws:
        +
        Exception
        +
        +
      • +
      + + + +
        +
      • +

        fileToBinaryDataList

        +
        @Deprecated
        +public static List<byte[]> fileToBinaryDataList(Context context,
        +                                                            String file,
        +                                                            int offset)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        subBytes

        +
        public static byte[] subBytes(byte[] source,
        +                              int sourceBegin_index_inclusive,
        +                              int sourceEnd_index_exclusive)
        +
        Create a new byte array from the given source, with the given ranges
        +
      • +
      + + + +
        +
      • +

        subBytes

        +
        public static byte[] subBytes(byte[] source,
        +                              int sourceBegin)
        +
        Create a new byte array from the given source, starting at the given begin index
        +
      • +
      + + + +
        +
      • +

        memcpy

        +
        public static void memcpy(byte[] dest,
        +                          byte[] source,
        +                          int size,
        +                          int destOffset,
        +                          int sourceOffset)
        +
        Copy from one byte array to another, with the given size, and offsets
        +
      • +
      + + + +
        +
      • +

        memcpy

        +
        public static void memcpy(byte[] dest,
        +                          byte[] source,
        +                          int size)
        +
        Copy from one byte array to another with the given size
        +
      • +
      + + + +
        +
      • +

        memset

        +
        public static void memset(byte[] data,
        +                          byte value,
        +                          int size)
        +
        Set a value to size indexes in the given byte array
        +
      • +
      + + + +
        +
      • +

        memset

        +
        public static void memset(byte[] data,
        +                          byte value,
        +                          int offset,
        +                          int size)
        +
        Set a value to size indexes in the given byte array starting at the given offset
        +
      • +
      + + + +
        +
      • +

        memcmp

        +
        public static boolean memcmp(byte[] buffer1,
        +                             byte[] buffer2,
        +                             int size)
        +
        Compare two byte arrays. Returns true if each value matches for the given size
        +
      • +
      + + + + + + + +
        +
      • +

        reverseBytes

        +
        public static void reverseBytes(byte[] data)
        +
        Reverses the byte array order. This is useful when dealing with bluetooth hardware that is in a different endianness than android.
        +
      • +
      + + + +
        +
      • +

        unsignedByte

        +
        public static short unsignedByte(byte value)
        +
        Returns a short, from the given byte, ensuring that it is unsigned.
        +
      • +
      + + + +
        +
      • +

        shortToBytes

        +
        public static byte[] shortToBytes(short l)
        +
        Convert a short to a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToShort

        +
        public static short bytesToShort(byte[] b)
        +
        Convert a byte array to a short
        +
      • +
      + + + +
        +
      • +

        bytesToShort

        +
        public static Pointer<Short> bytesToShort(byte[] b,
        +                                          int offset)
        +
        Outputs a Pointer from the given byte array, starting at the offset provided. If there is not enough space to + create the short, the Pointer value will be null.
        +
      • +
      + + + +
        +
      • +

        boolToByte

        +
        public static byte boolToByte(boolean value)
        +
        Convert a boolean to a byte (true is 0x1, false is 0x0).
        +
      • +
      + + + +
        +
      • +

        byteToBool

        +
        public static boolean byteToBool(byte val)
        +
        Convert a byte to a boolean
        +
      • +
      + + + +
        +
      • +

        byteToBool

        +
        public static Pointer<Boolean> byteToBool(byte[] b,
        +                                          int offset)
        +
        Convert a byte to a boolean from the given byte array, at the given offset. If the offset is out of range, the Pointer value + will be null.
        +
      • +
      + + + +
        +
      • +

        intToBytes

        +
        public static byte[] intToBytes(int l)
        +
        Convert an int to a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToInt

        +
        public static int bytesToInt(byte[] b)
        +
        Convert a byte array to an int
        +
      • +
      + + + +
        +
      • +

        bytesToInt

        +
        public static Pointer<Integer> bytesToInt(byte[] b,
        +                                          int offset)
        +
        Convert bytes to an int from the given byte array, starting at the given offset. If the offset is an invalid index (less than 0, or doesn't leave enough + room in the array to create an int) the Pointer value will be null.
        +
      • +
      + + + +
        +
      • +

        longToBytes

        +
        public static byte[] longToBytes(long l)
        +
        Convert a long to a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToLong

        +
        public static long bytesToLong(byte[] b)
        +
        Convert a byte array to a long
        +
      • +
      + + + +
        +
      • +

        bytesToLong

        +
        public static Pointer<Long> bytesToLong(byte[] b,
        +                                        int offset)
        +
        Convert bytes to a long from the given byte array, starting at the given offset. If the offset is an invalid index (less than 0, or doesn't leave enough + room in the array to create a long) the Pointer value will be null.
        +
      • +
      + + + +
        +
      • +

        floatToBytes

        +
        public static byte[] floatToBytes(float f)
        +
        Convert a float to a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToFloat

        +
        public static float bytesToFloat(byte[] b)
        +
        Convert a byte array to a float
        +
      • +
      + + + +
        +
      • +

        bytesToFloat

        +
        public static Pointer<Float> bytesToFloat(byte[] b,
        +                                          int offset)
        +
        Convert bytes to a float from the given byte array, starting at the given offset. If the offset is an invalid index (less than 0, or doesn't leave enough + room in the array to create a float) the Pointer value will be null.
        +
      • +
      + + + +
        +
      • +

        doubleToBytes

        +
        public static byte[] doubleToBytes(double d)
        +
        Convert a double to a byte array
        +
      • +
      + + + +
        +
      • +

        bytesToDouble

        +
        public static double bytesToDouble(byte[] b)
        +
        Convert a byte array to a double
        +
      • +
      + + + +
        +
      • +

        bytesToDouble

        +
        public static Pointer<Double> bytesToDouble(byte[] b,
        +                                            int offset)
        +
        Convert bytes to a double from the given byte array, starting at the given offset. If the offset is an invalid index (less than 0, or doesn't leave enough + room in the array to create a double) the Pointer value will be null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Reflection.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Reflection.html new file mode 100644 index 0000000..4eec7f1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Reflection.html @@ -0,0 +1,316 @@ + + + + + +Utils_Reflection (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_Reflection

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_Reflection
    +extends Utils
    +
    Some utilities for dealing with raw byte array scan records.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        fieldStringValue

        +
        public static String fieldStringValue(Field field)
        +
      • +
      + + + +
        +
      • +

        staticFieldValue

        +
        public static <T> T staticFieldValue(Field field)
        +
      • +
      + + + + + +
        +
      • +

        nullOut

        +
        public static <T> void nullOut(T target,
        +                               Class<? extends T> type)
        +
      • +
      + + + +
        +
      • +

        callBooleanReturnMethod

        +
        public static boolean callBooleanReturnMethod(Object instance,
        +                                              String methodName,
        +                                              boolean showError)
        +
      • +
      + + + +
        +
      • +

        callBooleanReturnMethod

        +
        public static boolean callBooleanReturnMethod(Object instance,
        +                                              String methodName,
        +                                              Class[] paramTypes,
        +                                              boolean showError,
        +                                              Object... params)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Rssi.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Rssi.html new file mode 100644 index 0000000..6b924d3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Rssi.html @@ -0,0 +1,288 @@ + + + + + +Utils_Rssi (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_Rssi

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_Rssi
    +extends Utils
    +
    Some static utility methods for RSSI-related calculations.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        percent

        +
        public static double percent(int rssi,
        +                             int rssi_min,
        +                             int rssi_max)
        +
      • +
      + + + +
        +
      • +

        distance

        +
        public static double distance(int txPower,
        +                              int rssi)
        +
      • +
      + + + +
        +
      • +

        distance

        +
        public static double distance(int txPower,
        +                              int rssi,
        +                              double a,
        +                              double b,
        +                              double c)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_ScanRecord.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_ScanRecord.html new file mode 100644 index 0000000..16ff9bd --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_ScanRecord.html @@ -0,0 +1,463 @@ + + + + + +Utils_ScanRecord (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_ScanRecord

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_ScanRecord
    +extends Utils
    +
    Some utilities for dealing with raw byte array scan records. + Most of the code herein is slightly modified from Android's 21-and-up scan record parsing API, + with code copy/pasted from various static methods of ScanRecord and android.bluetooth.BluetoothUuid. + + Why not use these classes directly? So that the same code can be used if you're targeting < 21.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseServiceUuids

        +
        @Deprecated
        +public static List<UUID> parseServiceUuids(byte[] scanRecord)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        parseScanRecord

        +
        public static BleScanInfo parseScanRecord(byte[] scanRecord)
        +
      • +
      + + + +
        +
      • +

        parseScanRecord

        +
        @Deprecated
        +public static void parseScanRecord(byte[] scanRecord,
        +                                               Pointer<Integer> advFlags_out_nullable,
        +                                               Pointer<Integer> txPower_nullable,
        +                                               List<UUID> serviceUuids_out_nullable,
        +                                               SparseArray<byte[]> manufacturerData_out_nullable,
        +                                               Map<UUID,byte[]> serviceData_out_nullable)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        parseName

        +
        public static String parseName(byte[] scanRecord)
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(String name)
        +
        Create the byte[] scanRecord from the given name (the record will only contain the name you provide here).
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(String name,
        +                                   UUID serviceUuid)
        +
        Create the byte[] scanRecord from the given name, and serviceUuid.
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(String name,
        +                                   UUID serviceUuid,
        +                                   byte[] serviceData)
        +
        Create the byte[] scanRecord from the given name, serviceUuid, and serviceData.
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(String name,
        +                                   UUID serviceUuid,
        +                                   byte[] serviceData,
        +                                   Short manufacturerId,
        +                                   byte[] manufacturerData)
        +
        Create the byte[] scanRecord from the given name, serviceUuid, serviceData, manufacturerId, and manufacturerData
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(Byte advFlags,
        +                                   Map<BleUuid,byte[]> serviceMap,
        +                                   String name,
        +                                   boolean shortName,
        +                                   Byte txPowerLevel,
        +                                   Short manufacturerId,
        +                                   byte[] manufacturerData)
        +
        Create the byte[] scanRecord from the given advertising flags, serviceUuid, serviceData, device name, txPower level, manufacturerID, and manufacturerData
        +
      • +
      + + + +
        +
      • +

        newScanRecord

        +
        public static byte[] newScanRecord(Byte advFlags,
        +                                   Map<BleUuid,byte[]> serviceMap,
        +                                   boolean completeList,
        +                                   String name,
        +                                   boolean shortName,
        +                                   Byte txPowerLevel,
        +                                   Short manufacturerId,
        +                                   byte[] manufacturerData)
        +
        Create the byte[] scanRecord from the given advertising flags, serviceUuid, serviceData, device name, txPower level, manufacturerID, and manufacturerData
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_State.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_State.html new file mode 100644 index 0000000..1da4534 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_State.html @@ -0,0 +1,250 @@ + + + + + +Utils_State (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_State

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_State
    +extends Utils
    +
    Some helper utilities for dealing with State implementors.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        query

        +
        public static boolean query(int stateMask,
        +                            Object... query)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_String.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_String.html new file mode 100644 index 0000000..2f2c09d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_String.html @@ -0,0 +1,429 @@ + + + + + +Utils_String (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_String

+
+
+ +
+
    +
  • +
    +
    +
    public class Utils_String
    +extends Utils
    +
    Utility methods for string manipulation and creation needed by SweetBlue, mostly for debug purposes.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toFixed

        +
        public static String toFixed(double value)
        +
      • +
      + + + +
        +
      • +

        bytesToMacAddress

        +
        public static String bytesToMacAddress(byte[] raw)
        +
      • +
      + + + +
        +
      • +

        normalizeMacAddress

        +
        public static String normalizeMacAddress(String macAddress)
        +
      • +
      + + + +
        +
      • +

        normalizeMacAddress_replaceDelimiters

        +
        public static String normalizeMacAddress_replaceDelimiters(String macAddress)
        +
      • +
      + + + +
        +
      • +

        normalizeDeviceName

        +
        public static String normalizeDeviceName(String deviceName)
        +
      • +
      + + + +
        +
      • +

        debugizeDeviceName

        +
        public static String debugizeDeviceName(String macAddress,
        +                                        String normalizedName,
        +                                        boolean isNativeDeviceNull)
        +
      • +
      + + + +
        +
      • +

        getStringValue

        +
        public static String getStringValue(byte[] data,
        +                                    String charset)
        +
      • +
      + + + +
        +
      • +

        getStringValue

        +
        public static String getStringValue(byte[] data)
        +
      • +
      + + + +
        +
      • +

        makeStateString

        +
        public static SpannableString makeStateString(State[] states,
        +                                              int stateMask)
        +
      • +
      + + + +
        +
      • +

        concatStrings

        +
        public static String concatStrings(String... strings)
        +
      • +
      + + + +
        +
      • +

        makeString

        +
        public static String makeString(Object... objects)
        +
      • +
      + + + +
        +
      • +

        prettyFormatLogList

        +
        public static String prettyFormatLogList(List<String> logEntries)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static String toString(int mask,
        +                              State[] values)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static String toString(Class<?> type,
        +                              Object... values)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Time.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Time.html new file mode 100644 index 0000000..cdf1962 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Utils_Time.html @@ -0,0 +1,299 @@ + + + + + +Utils_Time (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Utils_Time

+
+
+ +
+
    +
  • +
    +
    +
    public final class Utils_Time
    +extends Utils
    +
    Utilities for dealing with time with an emphasis on BLE.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap.html new file mode 100644 index 0000000..5024f1f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap.html @@ -0,0 +1,231 @@ + + + + + +UuidNameMap (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Interface UuidNameMap

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUuidName

        +
        String getUuidName(String uuid)
        +
        Returns the name of the UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL".
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap_ListWrapper.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap_ListWrapper.html new file mode 100644 index 0000000..48a8c6b --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/UuidNameMap_ListWrapper.html @@ -0,0 +1,295 @@ + + + + + +UuidNameMap_ListWrapper (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class UuidNameMap_ListWrapper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.idevicesinc.sweetblue.utils.UuidNameMap_ListWrapper
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UuidNameMap_ListWrapper

        +
        public UuidNameMap_ListWrapper(List<UuidNameMap> maps)
        +
      • +
      + + + +
        +
      • +

        UuidNameMap_ListWrapper

        +
        public UuidNameMap_ListWrapper()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUuidName

        +
        public String getUuidName(String uuid)
        +
        Description copied from interface: UuidNameMap
        +
        Returns the name of the UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL".
        +
        +
        Specified by:
        +
        getUuidName in interface UuidNameMap
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristic.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristic.html new file mode 100644 index 0000000..7438a70 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristic.html @@ -0,0 +1,2736 @@ + + + + + +Uuids.GATTCharacteristic (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum Uuids.GATTCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristicFormatTypeConversionException.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristicFormatTypeConversionException.html new file mode 100644 index 0000000..29c4133 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTCharacteristicFormatTypeConversionException.html @@ -0,0 +1,224 @@ + + + + + +Uuids.GATTCharacteristicFormatTypeConversionException (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Uuids.GATTCharacteristicFormatTypeConversionException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Serializable
    +
    +
    +
    Enclosing class:
    +
    Uuids
    +
    +
    +
    +
    public static class Uuids.GATTCharacteristicFormatTypeConversionException
    +extends Exception
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDescriptor.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDescriptor.html new file mode 100644 index 0000000..8c26174 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDescriptor.html @@ -0,0 +1,564 @@ + + + + + +Uuids.GATTDescriptor (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum Uuids.GATTDescriptor

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Uuids.GATTDescriptor[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Uuids.GATTDescriptor c : Uuids.GATTDescriptor.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Uuids.GATTDescriptor valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public String getName()
        +
      • +
      + + + +
        +
      • +

        getUUID

        +
        public UUID getUUID()
        +
      • +
      + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDisplayType.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDisplayType.html new file mode 100644 index 0000000..e9c1218 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTDisplayType.html @@ -0,0 +1,429 @@ + + + + + +Uuids.GATTDisplayType (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum Uuids.GATTDisplayType

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Uuids.GATTDisplayType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Uuids.GATTDisplayType c : Uuids.GATTDisplayType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Uuids.GATTDisplayType valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public String toString(byte[] data)
        +
      • +
      + + + +
        +
      • +

        stringToObject

        +
        public Object stringToObject(String s)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTFormatType.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTFormatType.html new file mode 100644 index 0000000..1a107a3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.GATTFormatType.html @@ -0,0 +1,756 @@ + + + + + +Uuids.GATTFormatType (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Enum Uuids.GATTFormatType

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.html new file mode 100644 index 0000000..bc7f826 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/Uuids.html @@ -0,0 +1,3861 @@ + + + + + +Uuids (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class Uuids

+
+
+ +
+
    +
  • +
    +
    +
    public final class Uuids
    +extends Object
    +
    A collection of standard UUIDs for services, characteristics, and descriptors. + Some convenience methods for creating UUIDs also.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        INVALID

        +
        public static final UUID INVALID
        +
        A UUID instance composed of all zeros and used instead of null in various places.
        +
      • +
      + + + + + + + +
        +
      • +

        GENERIC_ACCESS_SERVICE_UUID

        +
        public static final UUID GENERIC_ACCESS_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        GENERIC_ATTRIBUTES_SERVICE_UUID

        +
        public static final UUID GENERIC_ATTRIBUTES_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        IMMEDIATE_ALERT_SERVICE_UUID

        +
        public static final UUID IMMEDIATE_ALERT_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        LINK_LOSS_SERVICE_UUID

        +
        public static final UUID LINK_LOSS_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        TX_POWER_SERVICE_UUID

        +
        public static final UUID TX_POWER_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        CURRENT_TIME_SERVICE_UUID

        +
        public static final UUID CURRENT_TIME_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        REFERENCE_TIME_UPDATE_SERVICE_UUID

        +
        public static final UUID REFERENCE_TIME_UPDATE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        NEXT_DST_CHANGE_SERVICE_UUID

        +
        public static final UUID NEXT_DST_CHANGE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        GLUCOSE_SERVICE_UUID

        +
        public static final UUID GLUCOSE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        HEALTH_THERMOMETER_SERVICE_UUID

        +
        public static final UUID HEALTH_THERMOMETER_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        DEVICE_INFORMATION_SERVICE_UUID

        +
        public static final UUID DEVICE_INFORMATION_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        HEART_RATE_SERVICE_UUID

        +
        public static final UUID HEART_RATE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        PHONE_ALERT_STATUS_SERVICE_UUID

        +
        public static final UUID PHONE_ALERT_STATUS_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        BATTERY_SERVICE_UUID

        +
        public static final UUID BATTERY_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        BLOOD_PRESSURE_SERVICE_UUID

        +
        public static final UUID BLOOD_PRESSURE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        ALERT_NOTIFICATION_SERVICE_UUID

        +
        public static final UUID ALERT_NOTIFICATION_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        HUMAN_INTERFACE_DEVICE_SERVICE_UUID

        +
        public static final UUID HUMAN_INTERFACE_DEVICE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        SCAN_PARAMETERS_SERVICE_UUID

        +
        public static final UUID SCAN_PARAMETERS_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        RUNNING_SPEED_AND_CADENCE_SERVICE_UUID

        +
        public static final UUID RUNNING_SPEED_AND_CADENCE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        AUTOMATION_IO_SERVICE_UUID

        +
        public static final UUID AUTOMATION_IO_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        CYCLING_SPEED_AND_CADENCE_SERVICE_UUID

        +
        public static final UUID CYCLING_SPEED_AND_CADENCE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        CYCLING_POWER_SERVICE_UUID

        +
        public static final UUID CYCLING_POWER_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        LOCATION_AND_NAVIGATION_SERVICE_UUID

        +
        public static final UUID LOCATION_AND_NAVIGATION_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        ENVIRONMENTAL_SENSING_SERVICE_UUID

        +
        public static final UUID ENVIRONMENTAL_SENSING_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        BODY_COMPOSITION_SERVICE_UUID

        +
        public static final UUID BODY_COMPOSITION_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        USER_DATA_SERVICE_UUID

        +
        public static final UUID USER_DATA_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        WEIGHT_SCALE_SERVICE_UUID

        +
        public static final UUID WEIGHT_SCALE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        BOND_MANAGEMENT_SERVICE_UUID

        +
        public static final UUID BOND_MANAGEMENT_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        CONTINUOUS_GLUCOSE_MONITORING_SERVICE_UUID

        +
        public static final UUID CONTINUOUS_GLUCOSE_MONITORING_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        INTERNET_PROTOCOL_SUPPORT_SERVICE_UUID

        +
        public static final UUID INTERNET_PROTOCOL_SUPPORT_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        INDOOR_POSITIONING_SERVICE_UUID

        +
        public static final UUID INDOOR_POSITIONING_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        PULSE_OXIMETER_SERVICE_UUID

        +
        public static final UUID PULSE_OXIMETER_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        HTTP_PROXY_SERVICE_UUID

        +
        public static final UUID HTTP_PROXY_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        TRANSPORT_DISCOVERY_SERVICE_UUID

        +
        public static final UUID TRANSPORT_DISCOVERY_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        OBJECT_TRANSFER_SERVICE_UUID

        +
        public static final UUID OBJECT_TRANSFER_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        FITNESS_MACHINE_SERVICE_UUID

        +
        public static final UUID FITNESS_MACHINE_SERVICE_UUID
        +
      • +
      + + + +
        +
      • +

        DEVICE_NAME

        +
        public static final UUID DEVICE_NAME
        +
      • +
      + + + +
        +
      • +

        APPEARANCE

        +
        public static final UUID APPEARANCE
        +
      • +
      + + + +
        +
      • +

        PERIPHERAL_PRIVACY_FLAG

        +
        public static final UUID PERIPHERAL_PRIVACY_FLAG
        +
      • +
      + + + +
        +
      • +

        RECONNECTION_ADDRESS

        +
        public static final UUID RECONNECTION_ADDRESS
        +
      • +
      + + + +
        +
      • +

        PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS

        +
        public static final UUID PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS
        +
      • +
      + + + +
        +
      • +

        SERVICE_CHANGED

        +
        public static final UUID SERVICE_CHANGED
        +
      • +
      + + + +
        +
      • +

        ALERT_LEVEL

        +
        public static final UUID ALERT_LEVEL
        +
      • +
      + + + +
        +
      • +

        TX_POWER_LEVEL

        +
        public static final UUID TX_POWER_LEVEL
        +
      • +
      + + + +
        +
      • +

        DATE_TIME

        +
        public static final UUID DATE_TIME
        +
      • +
      + + + +
        +
      • +

        DAY_OF_WEEK

        +
        public static final UUID DAY_OF_WEEK
        +
      • +
      + + + +
        +
      • +

        DAY_DATE_TIME

        +
        public static final UUID DAY_DATE_TIME
        +
      • +
      + + + +
        +
      • +

        EXACT_TIME_256

        +
        public static final UUID EXACT_TIME_256
        +
      • +
      + + + +
        +
      • +

        DST_OFFSET

        +
        public static final UUID DST_OFFSET
        +
      • +
      + + + +
        +
      • +

        TIME_ZONE

        +
        public static final UUID TIME_ZONE
        +
      • +
      + + + +
        +
      • +

        LOCAL_TIME_INFORMATION

        +
        public static final UUID LOCAL_TIME_INFORMATION
        +
      • +
      + + + +
        +
      • +

        TIME_WITH_DST

        +
        public static final UUID TIME_WITH_DST
        +
      • +
      + + + +
        +
      • +

        TIME_ACCURACY

        +
        public static final UUID TIME_ACCURACY
        +
      • +
      + + + +
        +
      • +

        TIME_SOURCE

        +
        public static final UUID TIME_SOURCE
        +
      • +
      + + + +
        +
      • +

        REFERENCE_TIME_INFORMATION

        +
        public static final UUID REFERENCE_TIME_INFORMATION
        +
      • +
      + + + +
        +
      • +

        TIME_UPDATE_CONTROL_POINT

        +
        public static final UUID TIME_UPDATE_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        TIME_UPDATE_STATE

        +
        public static final UUID TIME_UPDATE_STATE
        +
      • +
      + + + +
        +
      • +

        GLUCOSE_MEASUREMENT

        +
        public static final UUID GLUCOSE_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        BATTERY_LEVEL

        +
        public static final UUID BATTERY_LEVEL
        +
      • +
      + + + +
        +
      • +

        TEMPERATURE_MEASUREMENT

        +
        public static final UUID TEMPERATURE_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        TEMPERATURE_TYPE

        +
        public static final UUID TEMPERATURE_TYPE
        +
      • +
      + + + +
        +
      • +

        IMMEDIATE_TEMPERATURE

        +
        public static final UUID IMMEDIATE_TEMPERATURE
        +
      • +
      + + + +
        +
      • +

        MEASUREMENT_INTERVAL

        +
        public static final UUID MEASUREMENT_INTERVAL
        +
      • +
      + + + +
        +
      • +

        BOOT_KEYBOARD_INPUT_REPORT

        +
        public static final UUID BOOT_KEYBOARD_INPUT_REPORT
        +
      • +
      + + + +
        +
      • +

        SYSTEM_ID

        +
        public static final UUID SYSTEM_ID
        +
      • +
      + + + +
        +
      • +

        MODEL_NUMBER

        +
        public static final UUID MODEL_NUMBER
        +
      • +
      + + + +
        +
      • +

        SERIAL_NUMBER

        +
        public static final UUID SERIAL_NUMBER
        +
      • +
      + + + +
        +
      • +

        FIRMWARE_REVISION

        +
        public static final UUID FIRMWARE_REVISION
        +
      • +
      + + + +
        +
      • +

        HARDWARE_REVISION

        +
        public static final UUID HARDWARE_REVISION
        +
      • +
      + + + +
        +
      • +

        SOFTWARE_REVISION

        +
        public static final UUID SOFTWARE_REVISION
        +
      • +
      + + + +
        +
      • +

        MANUFACTURER_NAME

        +
        public static final UUID MANUFACTURER_NAME
        +
      • +
      + + + +
        +
      • +

        IEE_REGULATORY_CERT_DATA_LIST

        +
        public static final UUID IEE_REGULATORY_CERT_DATA_LIST
        +
      • +
      + + + +
        +
      • +

        CURRENT_TIME

        +
        public static final UUID CURRENT_TIME
        +
      • +
      + + + +
        +
      • +

        MAGNETIC_DECLINATION

        +
        public static final UUID MAGNETIC_DECLINATION
        +
      • +
      + + + +
        +
      • +

        SCAN_REFRESH

        +
        public static final UUID SCAN_REFRESH
        +
      • +
      + + + +
        +
      • +

        BOOT_KEYBOARD_OUTPUT_REPORT

        +
        public static final UUID BOOT_KEYBOARD_OUTPUT_REPORT
        +
      • +
      + + + +
        +
      • +

        BOOT_MOUSE_INPUT_REPORT

        +
        public static final UUID BOOT_MOUSE_INPUT_REPORT
        +
      • +
      + + + +
        +
      • +

        GLUCOSE_MEASUREMENT_CONTEXT

        +
        public static final UUID GLUCOSE_MEASUREMENT_CONTEXT
        +
      • +
      + + + +
        +
      • +

        BLOOD_PRESSURE_MEASUREMENT

        +
        public static final UUID BLOOD_PRESSURE_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        INTERMEDIATE_CUFF_PRESSURE

        +
        public static final UUID INTERMEDIATE_CUFF_PRESSURE
        +
      • +
      + + + +
        +
      • +

        HEART_RATE_MEASUREMENT

        +
        public static final UUID HEART_RATE_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        BODY_SENSOR_LOCATION

        +
        public static final UUID BODY_SENSOR_LOCATION
        +
      • +
      + + + +
        +
      • +

        HEART_RATE_CONTROL_POINT

        +
        public static final UUID HEART_RATE_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        ALERT_STATUS

        +
        public static final UUID ALERT_STATUS
        +
      • +
      + + + +
        +
      • +

        RINGER_CONTROL_POINT

        +
        public static final UUID RINGER_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        RINGER_SETTING

        +
        public static final UUID RINGER_SETTING
        +
      • +
      + + + +
        +
      • +

        ALERT_CATEGORY_ID_BIT_MASK

        +
        public static final UUID ALERT_CATEGORY_ID_BIT_MASK
        +
      • +
      + + + +
        +
      • +

        ALERT_CATEGORY_ID

        +
        public static final UUID ALERT_CATEGORY_ID
        +
      • +
      + + + +
        +
      • +

        ALERT_NOTIFICATION_CONTROL_POINT

        +
        public static final UUID ALERT_NOTIFICATION_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        UNREAD_ALERT_STATUS

        +
        public static final UUID UNREAD_ALERT_STATUS
        +
      • +
      + + + +
        +
      • +

        NEW_ALERT

        +
        public static final UUID NEW_ALERT
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_NEW_ALERT_CATEGORY

        +
        public static final UUID SUPPORTED_NEW_ALERT_CATEGORY
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_UNREAD_ALERT_CATEGORY

        +
        public static final UUID SUPPORTED_UNREAD_ALERT_CATEGORY
        +
      • +
      + + + +
        +
      • +

        BLOOD_PRESSURE_FEATURE

        +
        public static final UUID BLOOD_PRESSURE_FEATURE
        +
      • +
      + + + +
        +
      • +

        HID_INFORMATION

        +
        public static final UUID HID_INFORMATION
        +
      • +
      + + + +
        +
      • +

        REPORT_MAP

        +
        public static final UUID REPORT_MAP
        +
      • +
      + + + +
        +
      • +

        HID_CONTROL_POINT

        +
        public static final UUID HID_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        REPORT

        +
        public static final UUID REPORT
        +
      • +
      + + + +
        +
      • +

        PROTOCOL_MODE

        +
        public static final UUID PROTOCOL_MODE
        +
      • +
      + + + +
        +
      • +

        SCAN_INTERVAL_WINDOW

        +
        public static final UUID SCAN_INTERVAL_WINDOW
        +
      • +
      + + + +
        +
      • +

        PNP_ID

        +
        public static final UUID PNP_ID
        +
      • +
      + + + +
        +
      • +

        GLUCOSE_FEATURE

        +
        public static final UUID GLUCOSE_FEATURE
        +
      • +
      + + + +
        +
      • +

        RECORD_ACCESS_CONTROL_POINT

        +
        public static final UUID RECORD_ACCESS_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        RSC_MEASUREMENT

        +
        public static final UUID RSC_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        RSC_FEATURE

        +
        public static final UUID RSC_FEATURE
        +
      • +
      + + + +
        +
      • +

        SC_CONTROL_POINT

        +
        public static final UUID SC_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        DIGITAL

        +
        public static final UUID DIGITAL
        +
      • +
      + + + +
        +
      • +

        ANALOG

        +
        public static final UUID ANALOG
        +
      • +
      + + + +
        +
      • +

        AGGREGATE

        +
        public static final UUID AGGREGATE
        +
      • +
      + + + +
        +
      • +

        CSC_MEASUREMENT

        +
        public static final UUID CSC_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        CSC_FEATURE

        +
        public static final UUID CSC_FEATURE
        +
      • +
      + + + +
        +
      • +

        SENSOR_LOCATION

        +
        public static final UUID SENSOR_LOCATION
        +
      • +
      + + + +
        +
      • +

        PLX_SPOT_CHECK_MEASUREMENT

        +
        public static final UUID PLX_SPOT_CHECK_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        PLX_CONTINUOUS_MEASUREMENT

        +
        public static final UUID PLX_CONTINUOUS_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        PLX_FEATURES

        +
        public static final UUID PLX_FEATURES
        +
      • +
      + + + +
        +
      • +

        CYCLING_POWER_MEASUREMENT

        +
        public static final UUID CYCLING_POWER_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        CYCLING_POWER_VECTOR

        +
        public static final UUID CYCLING_POWER_VECTOR
        +
      • +
      + + + +
        +
      • +

        CYCLING_POWER_FEATURE

        +
        public static final UUID CYCLING_POWER_FEATURE
        +
      • +
      + + + +
        +
      • +

        CYCLING_POWER_CONTROL_POINT

        +
        public static final UUID CYCLING_POWER_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        LOCATION_AND_SPEED

        +
        public static final UUID LOCATION_AND_SPEED
        +
      • +
      + + + +
        +
      • +

        NAVIGATION

        +
        public static final UUID NAVIGATION
        +
      • +
      + + + +
        +
      • +

        POSITION_QUALITY

        +
        public static final UUID POSITION_QUALITY
        +
      • +
      + + + +
        +
      • +

        LN_FEATURE

        +
        public static final UUID LN_FEATURE
        +
      • +
      + + + +
        +
      • +

        LN_CONTROL_POINT

        +
        public static final UUID LN_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        ELEVATION

        +
        public static final UUID ELEVATION
        +
      • +
      + + + +
        +
      • +

        PRESSURE

        +
        public static final UUID PRESSURE
        +
      • +
      + + + +
        +
      • +

        TEMPERATURE

        +
        public static final UUID TEMPERATURE
        +
      • +
      + + + +
        +
      • +

        HUMIDITY

        +
        public static final UUID HUMIDITY
        +
      • +
      + + + +
        +
      • +

        TRUE_WIND_SPEED

        +
        public static final UUID TRUE_WIND_SPEED
        +
      • +
      + + + +
        +
      • +

        TRUE_WIND_DIRECTION

        +
        public static final UUID TRUE_WIND_DIRECTION
        +
      • +
      + + + +
        +
      • +

        APPARENT_WIND_SPEED

        +
        public static final UUID APPARENT_WIND_SPEED
        +
      • +
      + + + +
        +
      • +

        APPARENT_WIND_DIRECTION

        +
        public static final UUID APPARENT_WIND_DIRECTION
        +
      • +
      + + + +
        +
      • +

        GUST_FACTOR

        +
        public static final UUID GUST_FACTOR
        +
      • +
      + + + +
        +
      • +

        POLLEN_CONCENTRATION

        +
        public static final UUID POLLEN_CONCENTRATION
        +
      • +
      + + + +
        +
      • +

        UV_INDEX

        +
        public static final UUID UV_INDEX
        +
      • +
      + + + +
        +
      • +

        IRRADIANCE

        +
        public static final UUID IRRADIANCE
        +
      • +
      + + + +
        +
      • +

        RAINFALL

        +
        public static final UUID RAINFALL
        +
      • +
      + + + +
        +
      • +

        WIND_CHILL

        +
        public static final UUID WIND_CHILL
        +
      • +
      + + + +
        +
      • +

        HEAT_INDEX

        +
        public static final UUID HEAT_INDEX
        +
      • +
      + + + +
        +
      • +

        DEW_POINT

        +
        public static final UUID DEW_POINT
        +
      • +
      + + + +
        +
      • +

        DESCRIPTOR_VALUE_CHANGED

        +
        public static final UUID DESCRIPTOR_VALUE_CHANGED
        +
      • +
      + + + +
        +
      • +

        AEROBIC_HEART_RATE_LOWER_LIMIT

        +
        public static final UUID AEROBIC_HEART_RATE_LOWER_LIMIT
        +
      • +
      + + + +
        +
      • +

        AGE

        +
        public static final UUID AGE
        +
      • +
      + + + +
        +
      • +

        ANAEROBIC_HEART_RATE_LOWER_LIMIT

        +
        public static final UUID ANAEROBIC_HEART_RATE_LOWER_LIMIT
        +
      • +
      + + + +
        +
      • +

        ANAEROBIC_HEART_RATE_UPPER_LIMIT

        +
        public static final UUID ANAEROBIC_HEART_RATE_UPPER_LIMIT
        +
      • +
      + + + +
        +
      • +

        ANAEROBIC_THRESHOLD

        +
        public static final UUID ANAEROBIC_THRESHOLD
        +
      • +
      + + + +
        +
      • +

        AEROBIC_HEART_RATE_UPPER_LIMIT

        +
        public static final UUID AEROBIC_HEART_RATE_UPPER_LIMIT
        +
      • +
      + + + +
        +
      • +

        DATE_OF_BIRTH

        +
        public static final UUID DATE_OF_BIRTH
        +
      • +
      + + + +
        +
      • +

        DATE_OF_THRESHOLD_ASSESSMENT

        +
        public static final UUID DATE_OF_THRESHOLD_ASSESSMENT
        +
      • +
      + + + +
        +
      • +

        EMAIL_ADDRESS

        +
        public static final UUID EMAIL_ADDRESS
        +
      • +
      + + + +
        +
      • +

        FAT_BURN_HEART_RATE_LOWER_LIMIT

        +
        public static final UUID FAT_BURN_HEART_RATE_LOWER_LIMIT
        +
      • +
      + + + +
        +
      • +

        FAT_BURN_HEART_RATE_UPPER_LIMIT

        +
        public static final UUID FAT_BURN_HEART_RATE_UPPER_LIMIT
        +
      • +
      + + + +
        +
      • +

        FIRST_NAME

        +
        public static final UUID FIRST_NAME
        +
      • +
      + + + +
        +
      • +

        FIVE_ZONE_HEART_RATE_LIMITS

        +
        public static final UUID FIVE_ZONE_HEART_RATE_LIMITS
        +
      • +
      + + + +
        +
      • +

        GENDER

        +
        public static final UUID GENDER
        +
      • +
      + + + +
        +
      • +

        HEART_RATE_MAX

        +
        public static final UUID HEART_RATE_MAX
        +
      • +
      + + + +
        +
      • +

        HEIGHT

        +
        public static final UUID HEIGHT
        +
      • +
      + + + +
        +
      • +

        HIP_CIRCUMFERENCE

        +
        public static final UUID HIP_CIRCUMFERENCE
        +
      • +
      + + + +
        +
      • +

        LAST_NAME

        +
        public static final UUID LAST_NAME
        +
      • +
      + + + +
        +
      • +

        MAXIMUM_RECOMMENDED_HEART_RATE

        +
        public static final UUID MAXIMUM_RECOMMENDED_HEART_RATE
        +
      • +
      + + + +
        +
      • +

        RESTING_HEART_RATE

        +
        public static final UUID RESTING_HEART_RATE
        +
      • +
      + + + +
        +
      • +

        SPORT_TYPE_FOR_AEROBIC_AND_ANAEROBIC_THRESHOLDS

        +
        public static final UUID SPORT_TYPE_FOR_AEROBIC_AND_ANAEROBIC_THRESHOLDS
        +
      • +
      + + + +
        +
      • +

        THREE_ZONE_HEART_RATE_LIMITS

        +
        public static final UUID THREE_ZONE_HEART_RATE_LIMITS
        +
      • +
      + + + +
        +
      • +

        TWO_ZONE_HEART_RATE_LIMIT

        +
        public static final UUID TWO_ZONE_HEART_RATE_LIMIT
        +
      • +
      + + + +
        +
      • +

        VO2_MAX

        +
        public static final UUID VO2_MAX
        +
      • +
      + + + +
        +
      • +

        WAIST_CIRCUMFERENCE

        +
        public static final UUID WAIST_CIRCUMFERENCE
        +
      • +
      + + + +
        +
      • +

        WEIGHT

        +
        public static final UUID WEIGHT
        +
      • +
      + + + +
        +
      • +

        DATABASE_CHANGE_INCREMENT

        +
        public static final UUID DATABASE_CHANGE_INCREMENT
        +
      • +
      + + + +
        +
      • +

        USER_INDEX

        +
        public static final UUID USER_INDEX
        +
      • +
      + + + +
        +
      • +

        BODY_COMPOSITION_FEATURE

        +
        public static final UUID BODY_COMPOSITION_FEATURE
        +
      • +
      + + + +
        +
      • +

        BODY_COMPOSITION_MEASUREMENT

        +
        public static final UUID BODY_COMPOSITION_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        WEIGHT_MEASUREMENT

        +
        public static final UUID WEIGHT_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        WEIGHT_SCALE_FEATURE

        +
        public static final UUID WEIGHT_SCALE_FEATURE
        +
      • +
      + + + +
        +
      • +

        USER_CONTROL_POINT

        +
        public static final UUID USER_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        MAGNETIC_FLUX_DENSITY_2D

        +
        public static final UUID MAGNETIC_FLUX_DENSITY_2D
        +
      • +
      + + + +
        +
      • +

        MAGNETIC_FLUX_DENSITY_3D

        +
        public static final UUID MAGNETIC_FLUX_DENSITY_3D
        +
      • +
      + + + +
        +
      • +

        LANGUAGE

        +
        public static final UUID LANGUAGE
        +
      • +
      + + + +
        +
      • +

        BAROMETRIC_PRESSURE_TREND

        +
        public static final UUID BAROMETRIC_PRESSURE_TREND
        +
      • +
      + + + +
        +
      • +

        BOND_MANAGEMENT_CONTROL_POINT

        +
        public static final UUID BOND_MANAGEMENT_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        BOND_MANAGEMENT_FEATURE

        +
        public static final UUID BOND_MANAGEMENT_FEATURE
        +
      • +
      + + + +
        +
      • +

        CENTRAL_ADDRESS_RESOLUTION

        +
        public static final UUID CENTRAL_ADDRESS_RESOLUTION
        +
      • +
      + + + +
        +
      • +

        CGM_MEASUREMENT

        +
        public static final UUID CGM_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        CGM_FEATURE

        +
        public static final UUID CGM_FEATURE
        +
      • +
      + + + +
        +
      • +

        CGM_STATUS

        +
        public static final UUID CGM_STATUS
        +
      • +
      + + + +
        +
      • +

        CGM_SESSION_START_TIME

        +
        public static final UUID CGM_SESSION_START_TIME
        +
      • +
      + + + +
        +
      • +

        CGM_SESSION_RUN_TIME

        +
        public static final UUID CGM_SESSION_RUN_TIME
        +
      • +
      + + + +
        +
      • +

        CGM_SPECIFIC_OPS_CONTROL_POINT

        +
        public static final UUID CGM_SPECIFIC_OPS_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        INDOOR_POSITIONING_CONFIGURATION

        +
        public static final UUID INDOOR_POSITIONING_CONFIGURATION
        +
      • +
      + + + +
        +
      • +

        LATITUDE

        +
        public static final UUID LATITUDE
        +
      • +
      + + + +
        +
      • +

        LONGITUDE

        +
        public static final UUID LONGITUDE
        +
      • +
      + + + +
        +
      • +

        LOCAL_NORTH_COORDINATE

        +
        public static final UUID LOCAL_NORTH_COORDINATE
        +
      • +
      + + + +
        +
      • +

        LOCAL_EAST_COORDINATE

        +
        public static final UUID LOCAL_EAST_COORDINATE
        +
      • +
      + + + +
        +
      • +

        FLOOR_NUMBER

        +
        public static final UUID FLOOR_NUMBER
        +
      • +
      + + + +
        +
      • +

        ALTITUDE

        +
        public static final UUID ALTITUDE
        +
      • +
      + + + +
        +
      • +

        UNCERTAINTY

        +
        public static final UUID UNCERTAINTY
        +
      • +
      + + + +
        +
      • +

        LOCATION_NAME

        +
        public static final UUID LOCATION_NAME
        +
      • +
      + + + +
        +
      • +

        URI

        +
        public static final UUID URI
        +
      • +
      + + + +
        +
      • +

        HTTP_HEADERS

        +
        public static final UUID HTTP_HEADERS
        +
      • +
      + + + +
        +
      • +

        HTTP_STATUS_CODE

        +
        public static final UUID HTTP_STATUS_CODE
        +
      • +
      + + + +
        +
      • +

        HTTP_ENTITY_BODY

        +
        public static final UUID HTTP_ENTITY_BODY
        +
      • +
      + + + +
        +
      • +

        HTTP_CONTROL_POINT

        +
        public static final UUID HTTP_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        HTTPS_SECURITY

        +
        public static final UUID HTTPS_SECURITY
        +
      • +
      + + + +
        +
      • +

        TDS_CONTROL_POINT

        +
        public static final UUID TDS_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        OTS_FEATURE

        +
        public static final UUID OTS_FEATURE
        +
      • +
      + + + +
        +
      • +

        OBJECT_NAME

        +
        public static final UUID OBJECT_NAME
        +
      • +
      + + + +
        +
      • +

        OBJECT_TYPE

        +
        public static final UUID OBJECT_TYPE
        +
      • +
      + + + +
        +
      • +

        OBJECT_SIZE

        +
        public static final UUID OBJECT_SIZE
        +
      • +
      + + + +
        +
      • +

        OBJECT_FIRST_CREATED

        +
        public static final UUID OBJECT_FIRST_CREATED
        +
      • +
      + + + +
        +
      • +

        OBJECT_LAST_MODIFIED

        +
        public static final UUID OBJECT_LAST_MODIFIED
        +
      • +
      + + + +
        +
      • +

        OBJECT_ID

        +
        public static final UUID OBJECT_ID
        +
      • +
      + + + +
        +
      • +

        OBJECT_PROPERTIES

        +
        public static final UUID OBJECT_PROPERTIES
        +
      • +
      + + + +
        +
      • +

        OBJECT_ACTION_CONTROL_POINT

        +
        public static final UUID OBJECT_ACTION_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        OBJECT_LIST_CONTROL_POINT

        +
        public static final UUID OBJECT_LIST_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        OBJECT_LIST_FILTER

        +
        public static final UUID OBJECT_LIST_FILTER
        +
      • +
      + + + +
        +
      • +

        OBJECT_CHANGED

        +
        public static final UUID OBJECT_CHANGED
        +
      • +
      + + + +
        +
      • +

        RESOLVABLE_PRIVATE_ADDRESS_ONLY

        +
        public static final UUID RESOLVABLE_PRIVATE_ADDRESS_ONLY
        +
      • +
      + + + +
        +
      • +

        FITNESS_MACHINE_FEATURE

        +
        public static final UUID FITNESS_MACHINE_FEATURE
        +
      • +
      + + + +
        +
      • +

        TREADMILL_DATA

        +
        public static final UUID TREADMILL_DATA
        +
      • +
      + + + +
        +
      • +

        CROSS_TRAINER_DATA

        +
        public static final UUID CROSS_TRAINER_DATA
        +
      • +
      + + + +
        +
      • +

        STEP_CLIMBER_DATA

        +
        public static final UUID STEP_CLIMBER_DATA
        +
      • +
      + + + +
        +
      • +

        STAIR_CLIMBER_DATA

        +
        public static final UUID STAIR_CLIMBER_DATA
        +
      • +
      + + + +
        +
      • +

        ROWER_DATA

        +
        public static final UUID ROWER_DATA
        +
      • +
      + + + +
        +
      • +

        INDOOR_BIKE_DATA

        +
        public static final UUID INDOOR_BIKE_DATA
        +
      • +
      + + + +
        +
      • +

        TRAINING_STATUS

        +
        public static final UUID TRAINING_STATUS
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_SPEED_RANGE

        +
        public static final UUID SUPPORTED_SPEED_RANGE
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_INCLINATION_RANGE

        +
        public static final UUID SUPPORTED_INCLINATION_RANGE
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_RESISTANCE_LEVEL_RANGE

        +
        public static final UUID SUPPORTED_RESISTANCE_LEVEL_RANGE
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_HEART_RATE_RANGE

        +
        public static final UUID SUPPORTED_HEART_RATE_RANGE
        +
      • +
      + + + +
        +
      • +

        SUPPORTED_POWER_RANGE

        +
        public static final UUID SUPPORTED_POWER_RANGE
        +
      • +
      + + + +
        +
      • +

        FITNESS_MACHINE_CONTROL_POINT

        +
        public static final UUID FITNESS_MACHINE_CONTROL_POINT
        +
      • +
      + + + +
        +
      • +

        FITNESS_MACHINE_STATUS

        +
        public static final UUID FITNESS_MACHINE_STATUS
        +
      • +
      + + + +
        +
      • +

        CHARACTERISTIC_EXTENDED_PROPERTIES

        +
        public static final UUID CHARACTERISTIC_EXTENDED_PROPERTIES
        +
      • +
      + + + +
        +
      • +

        CHARACTERISTIC_USER_DESCRIPTION_DESCRIPTOR_UUID

        +
        public static final UUID CHARACTERISTIC_USER_DESCRIPTION_DESCRIPTOR_UUID
        +
      • +
      + + + +
        +
      • +

        CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_UUID

        +
        public static final UUID CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_UUID
        +
      • +
      + + + +
        +
      • +

        SERVER_CHARACTERISTIC_CONFIGURATION

        +
        public static final UUID SERVER_CHARACTERISTIC_CONFIGURATION
        +
      • +
      + + + +
        +
      • +

        CHARACTERISTIC_PRESENTATION_FORMAT_DESCRIPTOR_UUID

        +
        public static final UUID CHARACTERISTIC_PRESENTATION_FORMAT_DESCRIPTOR_UUID
        +
      • +
      + + + +
        +
      • +

        CHARACTERISTIC_AGGREGATE_FORMAT

        +
        public static final UUID CHARACTERISTIC_AGGREGATE_FORMAT
        +
      • +
      + + + +
        +
      • +

        VALID_RANGE

        +
        public static final UUID VALID_RANGE
        +
      • +
      + + + +
        +
      • +

        EXTERNAL_REPORT_REFERENCE

        +
        public static final UUID EXTERNAL_REPORT_REFERENCE
        +
      • +
      + + + +
        +
      • +

        REPORT_REFERENCE

        +
        public static final UUID REPORT_REFERENCE
        +
      • +
      + + + +
        +
      • +

        NUMBER_OF_DIGITALS

        +
        public static final UUID NUMBER_OF_DIGITALS
        +
      • +
      + + + +
        +
      • +

        VALUE_TRIGGER_SETTING

        +
        public static final UUID VALUE_TRIGGER_SETTING
        +
      • +
      + + + +
        +
      • +

        ENVIRONMENTAL_SENSING_CONFIGURATION

        +
        public static final UUID ENVIRONMENTAL_SENSING_CONFIGURATION
        +
      • +
      + + + +
        +
      • +

        ENVIRONMENTAL_SENSING_MEASUREMENT

        +
        public static final UUID ENVIRONMENTAL_SENSING_MEASUREMENT
        +
      • +
      + + + +
        +
      • +

        ENVIRONMENTAL_SENSING_TRIGGER_SETTING

        +
        public static final UUID ENVIRONMENTAL_SENSING_TRIGGER_SETTING
        +
      • +
      + + + +
        +
      • +

        TIME_TRIGGER_SETTING

        +
        public static final UUID TIME_TRIGGER_SETTING
        +
      • +
      + + + +
        +
      • +

        DEVICE_INFORMATION_UUIDS

        +
        public static final UUID[] DEVICE_INFORMATION_UUIDS
        +
      • +
      + + + +
        +
      • +

        CURRENT_TIME_SERVICE

        +
        public static final UUID CURRENT_TIME_SERVICE
        +
      • +
      + + + +
        +
      • +

        CURRENT_TIME_SERVICE__CURRENT_TIME

        +
        public static final UUID CURRENT_TIME_SERVICE__CURRENT_TIME
        +
      • +
      + + + +
        +
      • +

        CURRENT_TIME_SERVICE__LOCAL_TIME_INFO

        +
        public static final UUID CURRENT_TIME_SERVICE__LOCAL_TIME_INFO
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Uuids

        +
        public Uuids()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        fromShort

        +
        public static UUID fromShort(int assignedNumber)
        +
        Overload of fromShort(short) so you don't have to downcast hardcoded integers yourself.
        +
      • +
      + + + +
        +
      • +

        fromShort

        +
        public static UUID fromShort(short assignedNumber,
        +                             String uuidTemplate)
        +
        Convenience overload of fromShort(String, String) that converts the given + short to a String hex representation. + For example to create the battery level characteristic you would call + Uuids.fromShort((short)0x180f, STANDARD_UUID_TEMPLATE).
        +
      • +
      + + + +
        +
      • +

        fromShort

        +
        public static UUID fromShort(int assignedNumber,
        +                             String uuidTemplate)
        +
        Convenience overload of fromShort(short, String) so you don't + have to downcast hardcoded integers yourself.
        +
      • +
      + + + +
        +
      • +

        fromShort

        +
        public static UUID fromShort(String assignedNumber,
        +                             String uuidTemplate)
        +
        Replaces the characters at indices 4, 5, 6, and 7 of uuidTemplate with the + assignedNumber parameter and returns the resulting UUID using UUID.fromString(String).
        +
        +
        Parameters:
        +
        assignedNumber - A String of length <= 4 as the hex representation of a 2-byte (short) value, for example "2a19".
        +
        uuidTemplate - See STANDARD_UUID_TEMPLATE for an example.
        +
        Returns:
        +
        INVALID if there's any issue, otherwise a valid UUID.
        +
        +
      • +
      + + + +
        +
      • +

        fromInt

        +
        public static UUID fromInt(int assignedNumber)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        fromInt

        +
        public static UUID fromInt(String assignedNumber,
        +                           String uuidTemplate)
        +
        Replaces the characters at indices 0-7 (inclusive) of uuidTemplate with the + assignedNumber parameter and returns the resulting UUID using UUID.fromString(String).
        +
        +
        Parameters:
        +
        assignedNumber - A String of length <= 8 as the hex representation of a 4-byte (int) value, for example "12630102".
        +
        uuidTemplate - See STANDARD_UUID_TEMPLATE for an example.
        +
        Returns:
        +
        INVALID if there's any issue, otherwise a valid UUID.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getInt

        +
        public static int getInt(UUID uuid)
        +
        Parses the first 8 characters of the string representations of the given UUID as an integer hex string.
        +
      • +
      + + + +
        +
      • +

        random

        +
        public static UUID random()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/WrongThreadError.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/WrongThreadError.html new file mode 100644 index 0000000..dc0d398 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/WrongThreadError.html @@ -0,0 +1,264 @@ + + + + + +WrongThreadError (SweetBlue) + + + + + + + + + + + + +
+
com.idevicesinc.sweetblue.utils
+

Class WrongThreadError

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WrongThreadError

        +
        public WrongThreadError(String message)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-frame.html new file mode 100644 index 0000000..b4cfd8e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-frame.html @@ -0,0 +1,118 @@ + + + + + +com.idevicesinc.sweetblue.utils (SweetBlue) + + + + + +

com.idevicesinc.sweetblue.utils

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +

Exceptions

+ +

Errors

+ +
+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-summary.html new file mode 100644 index 0000000..f5dc54e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-summary.html @@ -0,0 +1,661 @@ + + + + + +com.idevicesinc.sweetblue.utils (SweetBlue) + + + + + + + + + + + +
+

Package com.idevicesinc.sweetblue.utils

+
+
Contains a few optional utilities that you may find useful, but nothing in here is a core part of the library as far as the library user is concerned.
+
+

See: Description

+
+
+ + + + +

Package com.idevicesinc.sweetblue.utils Description

+
Contains a few optional utilities that you may find useful, but nothing in here is a core part of the library as far as the library user is concerned.
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-tree.html new file mode 100644 index 0000000..87c8105 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/com/idevicesinc/sweetblue/utils/package-tree.html @@ -0,0 +1,278 @@ + + + + + +com.idevicesinc.sweetblue.utils Class Hierarchy (SweetBlue) + + + + + + + + + + + +
+

Hierarchy For Package com.idevicesinc.sweetblue.utils

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/constant-values.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/constant-values.html new file mode 100644 index 0000000..d0ec6e9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/constant-values.html @@ -0,0 +1,1242 @@ + + + + + +Constant Field Values (SweetBlue) + + + + + + + + + + + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

com.idevicesinc.*

+ + +
    +
  • + + + + + + + + + + + + + + +
    com.idevicesinc.sweetblue.utils.ByteBuffer 
    Modifier and TypeConstant FieldValue
    + +public static final byteDEFAULT_BUFFER_SIZE10
    +
  • +
  • + + + + + + + + + + + + + + +
    com.idevicesinc.sweetblue.utils.DebugLogger 
    Modifier and TypeConstant FieldValue
    + +public static final intDEFAULT_MAX_SIZE50
    +
  • +
  • + + + + + + + + + + + + + + +
    com.idevicesinc.sweetblue.utils.Distance 
    Modifier and TypeConstant FieldValue
    + +public static final doubleFEET_PER_METER3.28084
    +
  • +
  • + + + + + + + + + + + + + + + + + + + +
    com.idevicesinc.sweetblue.utils.Uuids 
    Modifier and TypeConstant FieldValue
    + +protected static final StringBLUETOOTH_CONNECTED_HASH"744f6c7e41fde48b9e9d6433c5d8e2fda86a3c2e"
    + +public static final StringSTANDARD_UUID_TEMPLATE"00000000-0000-1000-8000-00805f9b34fb"
    +
  • +
+
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/deprecated-list.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/deprecated-list.html new file mode 100644 index 0000000..1aaafc8 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/deprecated-list.html @@ -0,0 +1,557 @@ + + + + + +Deprecated List (SweetBlue) + + + + + + + + +
+ + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+ + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/doc_style.css b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/doc_style.css new file mode 100644 index 0000000..4d9a8af --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/doc_style.css @@ -0,0 +1,494 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:90%; + margin:0; + padding: 0 2em; +} + +/*Customizations*/ +body, +.TableRowColor{background-color:#F9F9F9; } +.TableHeadingColor{background-color: #999; color: #fff;} +.TableHeadingColor th b{ font-size: 0.6em !important; font-weight: normal; +} +.TableRowColor { border-color: #E6E7E8;} +.NavBarCell1{background-color: #ccc;} +table{border: none;} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#eb4623; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} + +/* + Fixes for a number of issues with the default stylesheet. + */ + + /* Fixes huge font size in
{@code} blocks. */
+ pre code {
+ 	font-size:inherit;
+ }
+
+/*
+ Fixes issue with no blank line before 
 in class-level Javadoc
+ when the 
 is preceded by a block of text with no 

. + */ + .description .block pre { + margin-top:1em; + } \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/help-doc.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/help-doc.html new file mode 100644 index 0000000..c2439cf --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/help-doc.html @@ -0,0 +1,223 @@ + + + + + +API Help (SweetBlue) + + + + + + +

JavaScript is disabled on your browser.
+ + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index-all.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index-all.html new file mode 100644 index 0000000..342d1c9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index-all.html @@ -0,0 +1,10293 @@ + + + + + +Index (SweetBlue) + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N O P Q R S T U V W Z  + + +

A

+
+
abortReliableWrite(BleDevice) - Static method in class com.idevicesinc.sweetblue.compat.K_Util
+
+
Deprecated.
+
+
abortReliableWrite(BluetoothGatt) - Static method in class com.idevicesinc.sweetblue.compat.K_Util
+
 
+
accept() - Static method in class com.idevicesinc.sweetblue.DescriptorFilter.Please
+
+
Accept the current BluetoothGattCharacteristic as the one to perform the operation on.
+
+
ACCEPT - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
acceptIf(boolean) - Static method in class com.idevicesinc.sweetblue.DescriptorFilter.Please
+
+
Similar to DescriptorFilter.Please.accept(), allowing you to pass in a boolean conditional to specify whether + to accept the current BluetoothGattCharacteristic.
+
+
acknowledge() - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+
Return this from BleManagerConfig.ScanFilter.onEvent(ScanEvent) to acknowledge the discovery.
+
+
acknowledge(BleDeviceConfig) - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+
Same as BleManagerConfig.ScanFilter.Please.acknowledge() but allows you to pass a BleDeviceConfig + instance to the BleDevice that's about to be created.
+
+
acknowledgeIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
acknowledgeIf(boolean, BleDeviceConfig) - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
activity() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the Activity associated with the Event
+
+
add(BleDevice.WriteBuilder) - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Add an BleDevice.WriteBuilder to the write queue.
+
+
add(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Add a write to the write queue.
+
+
add(UUID, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Add a write to the write queue.
+
+
add(String, String) - Method in class com.idevicesinc.sweetblue.utils.BasicUuidNameMap
+
+
Add a UUID-to-debug name entry.
+
+
add(GenericListener_Void<T_Event>, T_Event) - Method in class com.idevicesinc.sweetblue.utils.EventQueue
+
 
+
add_multiple(Iterator<HistoricalData>, int, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
add_multiple(ForEach_Returning<HistoricalData>, int, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
add_multiple(Iterator<HistoricalData>, int, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
add_multiple(ForEach_Returning<HistoricalData>, int, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
add_multiple_end() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
add_multiple_end() - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
add_multiple_next(String, UUID, HistoricalData) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
add_multiple_next(String, UUID, HistoricalData) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
add_multiple_start() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
add_multiple_start() - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
add_single(String, UUID, HistoricalData, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
add_single(String, UUID, HistoricalData, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
add_single(HistoricalData, int, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
add_single(HistoricalData, int, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
addAll(Collection<BleDevice.WriteBuilder>) - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Add a Collection of writes to the write queue.
+
+
addCharacteristic(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
+
+
Add a new BluetoothGattCharacteristic to this service.
+
+
addDescriptor(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+ +
+
addHistoricalData(UUID, byte[], EpochTime) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Manual way to add data to the historical data list managed by this device.
+
+
addHistoricalData(UUID, EpochTime, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Just an overload of BleDevice.addHistoricalData(UUID, byte[], EpochTime) with the data and epochTime parameters switched around.
+
+
addHistoricalData(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
addHistoricalData(UUID, HistoricalData) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
addHistoricalData(UUID, Iterator<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.addHistoricalData(UUID, byte[], EpochTime) but for large datasets this is more efficient when writing to disk.
+
+
addHistoricalData(UUID, List<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.addHistoricalData(UUID, byte[], EpochTime) but for large datasets this is more efficient when writing to disk.
+
+
addHistoricalData(UUID, ForEach_Returning<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.addHistoricalData(UUID, byte[], EpochTime) but for large datasets this is more efficient when writing to disk.
+
+
addService(BleService) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
addService(BleService, BleServer.ServiceAddListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Starts the process of adding a service to this server.
+
+
addService(BluetoothGattService) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
addService(BluetoothGattService) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
addService(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase
+
+
Add a new service to the database.
+
+
addServiceData(Map<UUID, byte[]>) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the service data for this BleScanInfo instance.
+
+
addServiceData(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Add the given UUID and data to this instance's service data map.
+
+
addServiceUuid(UUID, BleUuid.UuidSize) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Add a UUID with the given BleUuid.UuidSize to this instance's UUID list.
+
+
addServiceUuid(UUID) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Overload of BleScanInfo.addServiceUuid(UUID, BleUuid.UuidSize), which sets the size to BleUuid.UuidSize.SHORT, if it can fit, otherwise it will + default to BleUuid.UuidSize.FULL
+
+
addServiceUUIDs(List<UUID>) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Add the given List of UUIDs to this instance's UUID list.
+
+
addTime(double) - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
+
Adds the time it took for a just-completed operation to finish + and updates the running average time.
+
+
Advanced - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
This annotation is used to tag certain classes or methods that + someone new to the library can most-likely safely ignore.
+
+
ADVERTISE_ANDROID_VERSION_NOT_SUPPORTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
Status code for (@link BleServer.AdvertiseListener.AdvertisingEvent#status} when trying to advertise on + a device which isn't running an android OS of Lollipop or higher.
+
+
ADVERTISE_SUCCESS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
Status code used for BleServer.AdvertisingListener.AdvertisingEvent.status() when advertising has been + successfully started.
+
+
advertisedServices() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
A list of UUIDs parsed from BleManagerConfig.ScanFilter.ScanEvent.scanRecord() as a convenience.
+
+
AdvertisingFlag - Enum in com.idevicesinc.sweetblue.utils
+
 
+
advertisingFlags() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Returns the advertising flags, if any, parsed from BleManagerConfig.ScanFilter.ScanEvent.scanRecord().
+
+
AEROBIC_HEART_RATE_LOWER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
AEROBIC_HEART_RATE_UPPER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
AGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
AGGREGATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_CATEGORY_ID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_CATEGORY_ID_BIT_MASK - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_LEVEL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_NOTIFICATION_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_NOTIFICATION_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ALERT_STATUS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
allowCallsFromAllThreads - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Deprecated. +
- This value is not used anymore. Just left here so we don't cause build errors.
+
+
+
allowDuplicatePollEntries - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is false - if true and you call BleDevice.startPoll(UUID, Interval, BleDevice.ReadWriteListener) + or BleDevice.startChangeTrackingPoll(UUID, Interval, BleDevice.ReadWriteListener)() with identical + parameters then two identical polls would run which would probably be wasteful and unintentional.
+
+
allowManagerStatePolling - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Deprecated. +
- Use BleManagerConfig.defaultStatePollRate instead. If you want it disabled, set that option to Interval.DISABLED.
+
+
+
allowsRetry() - Method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
+ +
+
allowsRetry() - Method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
+ +
+
Alpha - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
This annotation is used to tag certain classes or methods that are considered "alpha" level quality.
+
+
ALTITUDE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
alwaysBondOnConnect - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is false - Controls whether SweetBlue will automatically bond when connecting to a peripheral (rather than letting Android do it itself).
+
+
alwaysUseAutoConnect - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+ +
+
ANAEROBIC_HEART_RATE_LOWER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ANAEROBIC_HEART_RATE_UPPER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ANAEROBIC_THRESHOLD - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ANALOG - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
andAmendData(byte[]) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Last chance to amend or replace BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.data() before it's written to the log.
+
+
andAmendEpochTime(EpochTime) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Last chance to amend or replace BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.epochTime() before it's written to the log.
+
+
andLimitLogTo(long) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Calling this will crop the log to the given limit before> BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.data() is written.
+
+
APP_NEEDS_PERMISSION - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
APPARENT_WIND_DIRECTION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
APPARENT_WIND_SPEED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
appData - Variable in class com.idevicesinc.sweetblue.BleManager
+
+
Field for app to associate any data it wants with the singleton instance of this class + instead of having to subclass or manage associative hash maps or something.
+
+
appData - Variable in class com.idevicesinc.sweetblue.BleNode
+
+
Field for app to associate any data it wants with instances of this class + instead of having to subclass or manage associative hash maps or something.
+
+
appData() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Convenience method that casts BleNode.appData for you.
+
+
appData() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the arbitrary app-specific data passed to BluetoothEnabler.BluetoothEnablerFilter.Please#withAppData(Object), or null.
+
+
APPEARANCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
append(byte) - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Append a byte to the buffer.
+
+
append(byte[]) - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Append a byte array to this buffer
+
+
append(byte[], int) - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Append the given byte array (of the length given, so you can pass in an array 100 bytes, but specify 50 to be added.
+
+
apply(Object, Field, Object) - Method in interface com.idevicesinc.sweetblue.utils.P_JSONUtil.JSONApplier
+
 
+
applyJSONToObject(Object, JSONObject) - Static method in class com.idevicesinc.sweetblue.utils.P_JSONUtil
+
 
+
asHighPriority(boolean) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
This will set the scan to be of the highest priority.
+
+
ASSERT(boolean) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Fires a callback to BleManager.AssertListener if condition is false.
+
+
ASSERT(boolean, String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.ASSERT(boolean) but with an added message.
+
+
attemptTime_latest() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.ConnectionFailEvent
+
+
How long the last connection attempt took before failing.
+
+
attemptTime_total() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.ConnectionFailEvent
+
+
How long it's been since BleDevice.connect() (or overloads) were initially called.
+
+
Auth() - Constructor for class com.idevicesinc.sweetblue.BleTransaction.Auth
+
 
+
AUTH_RETRY_STATE_IDLE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
AUTH_RETRY_STATE_MITM - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
AUTH_RETRY_STATE_NO_MITM - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
autoBondFixes - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - By default SweetBlue will force a bond/unbond for certain phones (mostly Sony, Motorola) because it has been found to + improve connection rates with them, see BleDeviceConfig.BondFilter docs.
+
+
autoConnectUsage() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
autoEnableNotifiesOnReconnect - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - whether to automatically enable notifications that were enabled via a call to any of the enableNotify() methods + in BleDevice upon device reconnection.
+
+
autoGetServices - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - whether to automatically get services immediately after a BleDevice is + BleDeviceState.CONNECTED.
+
+
AUTOMATION_IO_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
autoNegotiateMtuOnReconnect - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - whether to automatically renegotiate the MTU size that was set via BleDevice.setMtu(int, ReadWriteListener), or + BleDevice.setMtu(int).
+
+
autoPauseResumeDetection - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - Controls whether BleManager.onResume() and BleManager.onPause() will get called + automatically by using Application.ActivityLifecycleCallbacks.
+
+
autoReconnectDeviceWhenBleTurnsBackOn - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - if devices are kept in memory for a BleManager.turnOff()/BleManager.turnOn() cycle + (or a BleManager.reset()) because BleDeviceConfig.retainDeviceWhenBleTurnsOff is true, then a BleDevice.connect() + will be attempted for any devices that were previously BleDeviceState.CONNECTED.
+
+
autoScanActiveTime - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is Interval.DISABLED - Length of time in seconds that the library will automatically scan for devices.
+
+
autoScanDelayAfterBleTurnsOn - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is Interval.DISABLED.
+
+
autoScanDelayAfterResume - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 0.5 seconds - Unless Interval.DISABLED, + this option will kick off a scan for BleManagerConfig.autoScanActiveTime seconds + BleManagerConfig.autoScanDelayAfterResume seconds after BleManager.onResume() is called.
+
+
autoScanDuringOta - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is false - set this to allow or disallow autoscanning while any + BleDevice is BleDeviceState.PERFORMING_OTA.
+
+
autoScanPauseInterval - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 3.0 seconds - Length of time in seconds between automatic scan pulses defined by BleManagerConfig.autoScanActiveTime.
+
+
autoScanPauseTimeWhileAppIsBackgrounded - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is Interval.DISABLED - Same as BleManagerConfig.autoScanPauseInterval except this value is used while the app is paused.
+
+
autoStripeWrites - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Default is true - this will automatically stripe writes that are larger than the MTU size into multiple WRITE requests for you.
+
+
autoUpdateRate - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 0.0202 seconds - The rate at which the library's internal update loop ticks.
+
+
avg(HistoricalDataColumn) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsSelectColumn
+
 
+
+ + + +

B

+
+
Backend_HistoricalDatabase - Interface in com.idevicesinc.sweetblue.backend.historical
+
+
Defines a specification for an interface over a disk-persisted database (probably SQL-based but not necessarily) + storing arbitrary historical data for each MAC-address/UUID combination provided.
+
+
Backend_HistoricalDatabase_Default - Class in com.idevicesinc.sweetblue.backend.historical
+
+
Defines a specification for an interface over a disk-persisted database (probably SQL-based but not necessarily) + storing arbitrary historical data for each MAC-address/UUID combination provided.
+
+
Backend_HistoricalDatabase_Default(Context) - Constructor for class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
Backend_HistoricalDatabase_Default() - Constructor for class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
Backend_HistoricalDataList - Interface in com.idevicesinc.sweetblue.backend.historical
+
+
Defines a specification for an interface over an in-memory list of historical data that optionally syncs to/from + disk using an implementation of Backend_HistoricalDatabase.
+
+
Backend_HistoricalDataList.AsyncLoadCallback - Interface in com.idevicesinc.sweetblue.backend.historical
+
 
+
Backend_HistoricalDataList_Default - Class in com.idevicesinc.sweetblue.backend.historical
+
 
+
Backend_HistoricalDataList_Default() - Constructor for class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
Backend_Modules - Class in com.idevicesinc.sweetblue.backend
+
+
A collection of Class instances used through Class.newInstance() to create instances of backend modules.
+
+
Backend_Modules() - Constructor for class com.idevicesinc.sweetblue.backend.Backend_Modules
+
 
+
BAROMETRIC_PRESSURE_TREND - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BasicUuidNameMap - Class in com.idevicesinc.sweetblue.utils
+
+
Manual convenience implementation of UuidNameMap that's basically just a HashMap.
+
+
BasicUuidNameMap() - Constructor for class com.idevicesinc.sweetblue.utils.BasicUuidNameMap
+
 
+
BATTERY_LEVEL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BATTERY_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
between(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_ClauseColumn
+
 
+
binaryStringToBytes(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
bit() - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
bit() - Method in interface com.idevicesinc.sweetblue.utils.Flag
+
+
Returns the bit (0x1, 0x2, 0x4, etc.) this enum represents based on the Flag.ordinal().
+
+
bits() - Method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
 
+
BitwiseEnum - Interface in com.idevicesinc.sweetblue.utils
+
+
Contract to force enum implementors to comply to common bitwise operations.
+
+
BleAdvertisingPacket - Class in com.idevicesinc.sweetblue
+
+
Class to used for advertising Bluetooth services, used with BleServer.startAdvertising(BleAdvertisingPacket)
+
+
BleAdvertisingPacket(UUID[], Map<UUID, byte[]>, int, int, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Base constructor which all other constructors in this class overload.
+
+
BleAdvertisingPacket(UUID) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, int) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, int, BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, int, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, int, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], int) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], int, BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], int, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], int, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, UUID, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, UUID, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], UUID, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID[], UUID, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, Map<UUID, byte[]>) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, Map<UUID, byte[]>, BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, Map<UUID, byte[]>, int, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, Map<UUID, byte[]>, int, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, byte[], int, byte[]) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket(UUID, byte[], int, byte[], BleAdvertisingPacket.Option...) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+ +
+
BleAdvertisingPacket.Option - Enum in com.idevicesinc.sweetblue
+
+
Enumeration for advertising options
+
+
BleAdvertisingSettings - Class in com.idevicesinc.sweetblue
+
+
Class used specify Ble Advertising settings.
+
+
BleAdvertisingSettings(BleAdvertisingSettings.BleAdvertisingMode, BleAdvertisingSettings.BleTransmissionPower, Interval) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+
Base constructor which sets all relevant Ble advertising settings
+
+
BleAdvertisingSettings() - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+ +
+
BleAdvertisingSettings(BleAdvertisingSettings.BleTransmissionPower, Interval) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+ +
+
BleAdvertisingSettings(BleAdvertisingSettings.BleTransmissionPower) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+ +
+
BleAdvertisingSettings(Interval) - Constructor for class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+ +
+
BleAdvertisingSettings.BleAdvertisingMode - Enum in com.idevicesinc.sweetblue
+
+
Type-safe parallel of static final int members of AdvertiseSettings.
+
+
BleAdvertisingSettings.BleTransmissionPower - Enum in com.idevicesinc.sweetblue
+
+
Type-safe parallel of static final int members of AdvertiseSettings.
+
+
BleCharacteristic - Class in com.idevicesinc.sweetblue
+
+
Proxy of BluetoothGattCharacteristic to force stricter compile-time checks and order of operations + when creating characteristics for BleServer.
+
+
BleCharacteristic(UUID, BleCharacteristicProperty, BleCharacteristicPermission, BleDescriptor...) - Constructor for class com.idevicesinc.sweetblue.BleCharacteristic
+
 
+
BleCharacteristic(UUID, BleDescriptor, BleCharacteristicPermission, BleCharacteristicProperty...) - Constructor for class com.idevicesinc.sweetblue.BleCharacteristic
+
 
+
BleCharacteristic(UUID, BleDescriptor, BleCharacteristicProperty, BleCharacteristicPermission...) - Constructor for class com.idevicesinc.sweetblue.BleCharacteristic
+
 
+
BleCharacteristic(UUID, BleCharacteristicPermission, BleCharacteristicProperty, BleDescriptor...) - Constructor for class com.idevicesinc.sweetblue.BleCharacteristic
+
 
+
BleCharacteristic(UUID, BleCharacteristicProperty[], BleCharacteristicPermission[], BleDescriptor...) - Constructor for class com.idevicesinc.sweetblue.BleCharacteristic
+
 
+
BleCharacteristicPermission - Enum in com.idevicesinc.sweetblue
+
+
This enum enforces compile-time constraints over various public static int PERMISSION_ members + of BluetoothGattCharacteristic.
+
+
BleCharacteristicProperty - Enum in com.idevicesinc.sweetblue
+
+
This enum enforces compile-time constraints over various public static int PROPERTY_ members + of BluetoothGattCharacteristic.
+
+
BleCharacteristicWrapper - Class in com.idevicesinc.sweetblue
+
+
Wrapper class which holds an instance of BluetoothGattCharacteristic.
+
+
BleConnectionPriority - Enum in com.idevicesinc.sweetblue
+
+
This enum enforces compile-time constraints over various public static int CONNECTION_PRIORITY_* members + of BluetoothGatt and is passed to BleDevice.setConnectionPriority(BleConnectionPriority, BleDevice.ReadWriteListener) + and returned from BleDevice.getConnectionPriority().
+
+
BleDescriptor - Class in com.idevicesinc.sweetblue
+
+
Proxy of BluetoothGattDescriptor to force stricter compile-time checks and order of operations + when creating descriptors for BleServer.
+
+
BleDescriptor(UUID, BleDescriptorPermission) - Constructor for class com.idevicesinc.sweetblue.BleDescriptor
+
 
+
BleDescriptor(UUID, BleDescriptorPermission...) - Constructor for class com.idevicesinc.sweetblue.BleDescriptor
+
 
+
BleDescriptorPermission - Enum in com.idevicesinc.sweetblue
+
+
This enum enforces compile-time constraints over various public static int PERMISSION_ members + of BluetoothGattDescriptor.
+
+
BleDescriptorWrapper - Class in com.idevicesinc.sweetblue
+
+
Wrapper class which holds an instance of BluetoothGattDescriptor.
+
+
BleDevice - Class in com.idevicesinc.sweetblue
+
+
This is the one other class you will use the most besides BleManager.
+
+
BleDevice.BondListener - Interface in com.idevicesinc.sweetblue
+
+ +
+
BleDevice.BondListener.BondEvent - Class in com.idevicesinc.sweetblue
+
+
Struct passed to BleDevice.BondListener.onEvent(BondEvent) to provide more information about a BleDevice.bond() attempt.
+
+
BleDevice.BondListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Used on BleDevice.BondListener.BondEvent.status() to roughly enumerate success or failure.
+
+
BleDevice.ConnectionFailListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation of this callback to BleDevice.setListener_ConnectionFail(ConnectionFailListener).
+
+
BleDevice.ConnectionFailListener.ConnectionFailEvent - Class in com.idevicesinc.sweetblue
+
+
Structure passed to BleDevice.ConnectionFailListener.onEvent(ConnectionFailEvent) to provide more info about how/why the connection failed.
+
+
BleDevice.ConnectionFailListener.Status - Enum in com.idevicesinc.sweetblue
+
+
The reason for the connection failure.
+
+
BleDevice.ConnectionFailListener.Timing - Enum in com.idevicesinc.sweetblue
+
+ +
+
BleDevice.DefaultConnectionFailListener - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleDevice.ConnectionFailListener that attempts a certain number of retries.
+
+
BleDevice.ReadWriteListener - Interface in com.idevicesinc.sweetblue
+
+
Deprecated. +
- Refactored to ReadWriteListener. This class will stay until version 3.0, when it will + be removed.
+
+
+
BleDevice.ReadWriteListener.ReadWriteEvent - Class in com.idevicesinc.sweetblue
+
+
Deprecated.
+
Provides a bunch of information about a completed read, write, or notification.
+
+
BleDevice.ReadWriteListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Deprecated.
+
A value returned to GenericListener_Void.onEvent(Event) + by way of BleDevice.ReadWriteListener.ReadWriteEvent.status() that indicates success of the + operation or the reason for its failure.
+
+
BleDevice.ReadWriteListener.Target - Enum in com.idevicesinc.sweetblue
+
+
Deprecated.
+
The type of GATT "object", provided by BleDevice.ReadWriteListener.ReadWriteEvent.target().
+
+
BleDevice.ReadWriteListener.Type - Enum in com.idevicesinc.sweetblue
+
+
Deprecated.
+
The type of operation for a BleDevice.ReadWriteListener.ReadWriteEvent - read, write, poll, etc.
+
+
BleDevice.StateListener - Interface in com.idevicesinc.sweetblue
+
+
Deprecated. +
- Refactored to DeviceStateListener.
+
+
+
BleDevice.StateListener.StateEvent - Class in com.idevicesinc.sweetblue
+
+
Deprecated.
+
Subclass that adds the device field.
+
+
BleDevice.WriteBuilder - Class in com.idevicesinc.sweetblue
+
+
Deprecated. +
- Use WriteBuilder instead. This will be removed in v 3.0
+
+
+
BleDeviceConfig - Class in com.idevicesinc.sweetblue
+
+
Provides a number of options to (optionally) pass to BleDevice.setConfig(BleDeviceConfig).
+
+
BleDeviceConfig() - Constructor for class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Creates a BleDeviceConfig with all default options set.
+
+
BleDeviceConfig(JSONObject) - Constructor for class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Creates a BleDeviceConfig with all default options set.
+
+
BleDeviceConfig.AuthTransactionFactory<T extends BleTransaction.Auth> - Interface in com.idevicesinc.sweetblue
+
 
+
BleDeviceConfig.BondFilter - Interface in com.idevicesinc.sweetblue
+
+
As of now there are two main default uses for this class...
+
+
BleDeviceConfig.BondFilter.CharacteristicEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleDeviceConfig.BondFilter.CharacteristicEventType - Enum in com.idevicesinc.sweetblue
+
+
An enumeration of the type of characteristic operation for a BleDeviceConfig.BondFilter.CharacteristicEvent.
+
+
BleDeviceConfig.BondFilter.Please - Class in com.idevicesinc.sweetblue
+
+
Return value for the various interface methods of BleDeviceConfig.BondFilter.
+
+
BleDeviceConfig.BondFilter.StateChangeEvent - Class in com.idevicesinc.sweetblue
+
+
Just a dummy subclass of BleDevice.StateListener.StateEvent so that this gets auto-imported for implementations of BleDeviceConfig.BondFilter.
+
+
BleDeviceConfig.DefaultBondFilter - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleDeviceConfig.BondFilter that unbonds for certain phone models upon discovery and disconnects.
+
+
BleDeviceConfig.InitTransactionFactory<T extends BleTransaction.Init> - Interface in com.idevicesinc.sweetblue
+
 
+
BleDeviceConfig.RefreshOption - Enum in com.idevicesinc.sweetblue
+
+
Enumeration used with BleDeviceConfig.useGattRefresh.
+
+
BleDeviceIterator - Class in com.idevicesinc.sweetblue
+
+
Implementation of Iterator for BleDevice instances, returned from BleManager.getDevices() and its overloads.
+
+
BleDeviceIterator(List<BleDevice>) - Constructor for class com.idevicesinc.sweetblue.BleDeviceIterator
+
 
+
BleDeviceIterator(List<BleDevice>, int) - Constructor for class com.idevicesinc.sweetblue.BleDeviceIterator
+
 
+
BleDeviceIterator(List<BleDevice>, Object...) - Constructor for class com.idevicesinc.sweetblue.BleDeviceIterator
+
 
+
BleDeviceOrigin - Enum in com.idevicesinc.sweetblue
+
+
Enumeration signifying how a BleDevice instance was created.
+
+
BleDeviceState - Enum in com.idevicesinc.sweetblue
+
+
An enumeration of the various states that a BleDevice can be in.
+
+
BleManager - Class in com.idevicesinc.sweetblue
+
+
The entry point to the library.
+
+
bleManager() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
 
+
BleManager.AssertListener - Interface in com.idevicesinc.sweetblue
+
+
Mostly only for SweetBlue library developers.
+
+
BleManager.AssertListener.AssertEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleManager.DiscoveryListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleManager.setListener_Discovery(BleManager.DiscoveryListener) to receive + callbacks when a device is newly discovered, rediscovered, or undiscovered after calling various BleManager.startScan() + or BleManager.startPeriodicScan(Interval, Interval) methods.
+
+
BleManager.DiscoveryListener.DiscoveryEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleManager.DiscoveryListener.LifeCycle - Enum in com.idevicesinc.sweetblue
+
+
Enumerates changes in the "discovered" state of a device.
+
+
BleManager.NativeStateListener - Interface in com.idevicesinc.sweetblue
+
+
Deprecated. +
This will be removed in v3.
+
+
+
BleManager.NativeStateListener.NativeStateEvent - Class in com.idevicesinc.sweetblue
+
+
Deprecated.
+
Class declared here to be make it implicitly imported for overrides.
+
+
BleManager.ResetListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleManager.reset(BleManager.ResetListener) + to be notified when a reset operation is complete.
+
+
BleManager.ResetListener.Progress - Enum in com.idevicesinc.sweetblue
+
+
Enumeration of the progress of the reset.
+
+
BleManager.ResetListener.ResetEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleManager.StateListener - Interface in com.idevicesinc.sweetblue
+
+
Deprecated. +
- Refactored to ManagerStateListener.
+
+
+
BleManager.StateListener.StateEvent - Class in com.idevicesinc.sweetblue
+
+
Deprecated.
+
Subclass that adds the manager field.
+
+
BleManager.UhOhListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleManager.setListener_UhOh(BleManager.UhOhListener) + to receive a callback when an BleManager.UhOhListener.UhOh occurs.
+
+
BleManager.UhOhListener.Remedy - Enum in com.idevicesinc.sweetblue
+
+
The suggested remedy for each BleManager.UhOhListener.UhOh.
+
+
BleManager.UhOhListener.UhOh - Enum in com.idevicesinc.sweetblue
+
+
An UhOh is a warning about an exceptional (in the bad sense) and unfixable problem with the underlying stack that + the app can warn its user about.
+
+
BleManager.UhOhListener.UhOhEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleManagerConfig - Class in com.idevicesinc.sweetblue
+
+
Provides a number of options to pass to the BleManager.get(Context, BleManagerConfig) + singleton getter or BleManager.setConfig(BleManagerConfig).
+
+
BleManagerConfig() - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Creates a BleManagerConfig with all default options set.
+
+
BleManagerConfig(JSONObject) - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Creates a BleManagerConfig with all default options set.
+
+
BleManagerConfig(boolean) - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Convenience constructor that populates BleManagerConfig.uuidNameMaps with Uuids + using ReflectionUuidNameMap if logging is enabled.
+
+
BleManagerConfig.DefaultScanFilter - Class in com.idevicesinc.sweetblue
+
+
Convenience implementation of BleManagerConfig.ScanFilter which filters using + a whitelist of known primary advertising UUIDs passed in to the constructor.
+
+
BleManagerConfig.DeviceNameComparator - Class in com.idevicesinc.sweetblue
+
+
Default sorter class for sorting the list of devices in BleManager.
+
+
BleManagerConfig.P_AndroidDeviceLayerFactory - Class in com.idevicesinc.sweetblue
+
 
+
BleManagerConfig.P_AndroidGattLayerFactory - Class in com.idevicesinc.sweetblue
+
 
+
BleManagerConfig.ScanFilter - Interface in com.idevicesinc.sweetblue
+
+
An optional whitelisting mechanism for scanning.
+
+
BleManagerConfig.ScanFilter.Please - Class in com.idevicesinc.sweetblue
+
+
Small struct passed back from BleManagerConfig.ScanFilter.onEvent(ScanEvent).
+
+
BleManagerConfig.ScanFilter.ScanEvent - Class in com.idevicesinc.sweetblue
+
+
Instances of this class are passed to BleManagerConfig.ScanFilter.onEvent(ScanEvent) to aid in making a decision.
+
+
BleManagerState - Enum in com.idevicesinc.sweetblue
+
+
An enumeration of the various states that a BleManager can be in.
+
+
BleNode - Class in com.idevicesinc.sweetblue
+
+
Abstract base class for BleDevice and BleServer, mostly just to statically tie their APIs together + wherever possible.
+
+
BleNode(BleManager) - Constructor for class com.idevicesinc.sweetblue.BleNode
+
 
+
BleNode.ConnectionFailListener - Interface in com.idevicesinc.sweetblue
+
+ +
+
BleNode.ConnectionFailListener.AutoConnectUsage - Enum in com.idevicesinc.sweetblue
+
+ +
+
BleNode.ConnectionFailListener.ConnectionFailEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleNode.ConnectionFailListener.Please - Class in com.idevicesinc.sweetblue
+
+ +
+
BleNode.HistoricalDataLoadListener - Interface in com.idevicesinc.sweetblue
+
+
A callback that is used by various overloads of BleDevice.loadHistoricalData() that accept instances hereof.
+
+
BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent - Class in com.idevicesinc.sweetblue
+
+
Event struct passed to BleNode.HistoricalDataLoadListener.onEvent(HistoricalDataLoadEvent) that provides + further information about the status of a historical data load to memory using BleDevice.loadHistoricalData() + (or overloads).
+
+
BleNode.HistoricalDataLoadListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Enumerates the status codes for operations kicked off from BleDevice.loadHistoricalData() (or overloads).
+
+
BleNode.HistoricalDataQueryListener - Interface in com.idevicesinc.sweetblue
+
+
A callback that is used by BleNode.select() to listen for when a database query is done processing.
+
+
BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent - Class in com.idevicesinc.sweetblue
+
+
Event struct passed to BleNode.HistoricalDataQueryListener.onEvent(HistoricalDataQueryEvent) that provides + further information about the status of a historical data load to memory using BleDevice.loadHistoricalData() + (or overloads).
+
+
BleNode.HistoricalDataQueryListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Enumerates the status codes for operations kicked off from BleNode.select().
+
+
BleNodeConfig - Class in com.idevicesinc.sweetblue
+
+
Provides a number of options to (optionally) pass to BleServer.setConfig(BleNodeConfig).
+
+
BleNodeConfig() - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Creates a BleNodeConfig with all default options set.
+
+
BleNodeConfig(JSONObject) - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Creates a BleNodeConfig with all default options set.
+
+
BleNodeConfig.DefaultHistoricalDataLogFilter - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleNodeConfig.HistoricalDataLogFilter set on BleNodeConfig.historicalDataLogFilter + that logs the most recent data reading to memory only, flushing the previous one.
+
+
BleNodeConfig.DefaultReconnectFilter - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleNodeConfig.ReconnectFilter that uses BleNodeConfig.ReconnectFilter.Please.retryInstantly() for the + first reconnect attempt, and from then on uses the Interval rate passed to the constructor
+
+
BleNodeConfig.DefaultTaskTimeoutRequestFilter - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleNodeConfig.TaskTimeoutRequestFilter that simply sets the timeout + for all BleTask instances to BleNodeConfig.DefaultTaskTimeoutRequestFilter.DEFAULT_TASK_TIMEOUT seconds.
+
+
BleNodeConfig.HistoricalDataFactory - Interface in com.idevicesinc.sweetblue
+
+
Provide an instance to BleNodeConfig.historicalDataFactory to return custom subclasses + of HistoricalData if you would like.
+
+
BleNodeConfig.HistoricalDataLogFilter - Interface in com.idevicesinc.sweetblue
+
+
Provide an instance of this class to BleNodeConfig.historicalDataLogFilter to control + how/if historical data from BLE operations is logged.
+
+
BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent - Class in com.idevicesinc.sweetblue
+
+
Event passed to BleNodeConfig.HistoricalDataLogFilter.onEvent(HistoricalDataLogEvent) that provides + information you can use to determine whether or not BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent.data() should be logged.
+
+
BleNodeConfig.HistoricalDataLogFilter.Please - Class in com.idevicesinc.sweetblue
+
+ +
+
BleNodeConfig.HistoricalDataLogFilter.Source - Enum in com.idevicesinc.sweetblue
+
+
Signifies where the data came from, usually from a BLE read or notification.
+
+
BleNodeConfig.ReconnectFilter - Interface in com.idevicesinc.sweetblue
+
+
An optional interface you can implement on BleNodeConfig.reconnectFilter to control reconnection behavior.
+
+
BleNodeConfig.ReconnectFilter.Please - Class in com.idevicesinc.sweetblue
+
+ +
+
BleNodeConfig.ReconnectFilter.ReconnectEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleNodeConfig.ReconnectFilter.Type - Enum in com.idevicesinc.sweetblue
+
+
An enum provided through BleNodeConfig.ReconnectFilter.ReconnectEvent.type() that describes what reconnect stage we're at.
+
+
BleNodeConfig.TaskTimeoutRequestFilter - Interface in com.idevicesinc.sweetblue
+
+
Provides a way to control timeout behavior for various BleTask instances.
+
+
BleNodeConfig.TaskTimeoutRequestFilter.Please - Class in com.idevicesinc.sweetblue
+
+
Use static constructor methods to create instances to return from BleNodeConfig.TaskTimeoutRequestFilter.onEvent(TaskTimeoutRequestEvent).
+
+
BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent - Class in com.idevicesinc.sweetblue
+
+
Event passed to BleNodeConfig.TaskTimeoutRequestFilter.onEvent(TaskTimeoutRequestEvent) that provides + information about the BleTask that will soon be executed.
+
+
BleScanApi - Enum in com.idevicesinc.sweetblue
+
+
Type-safe parallel of various static final int members of ScanSettings and a way to + force pre-Lollipop scanning mode.
+
+
BleScanInfo - Class in com.idevicesinc.sweetblue.utils
+
+
Class used to store information from a BLE scan record.
+
+
BleScanInfo() - Constructor for class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Basic constructor to use if you are building a scan record to advertise.
+
+
BleScanInfo(Pointer<Integer>, Pointer<Integer>, List<UUID>, boolean, short, byte[], Map<UUID, byte[]>, String, boolean) - Constructor for class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Constructor used internally when a BleDevice is discovered.
+
+
BleScanMode - Enum in com.idevicesinc.sweetblue
+
+
Deprecated. +
This is deprecated in favor of BleScanApi.
+
+
+
BleScanPower - Enum in com.idevicesinc.sweetblue
+
+
Type-safe parallel of various static final int members of ScanSettings for setting the scanning power + when using the Lollipop scanning API.
+
+
BleServer - Class in com.idevicesinc.sweetblue
+
+
Get an instance from BleManager.getServer().
+
+
BleServer.AdvertisingListener - Interface in com.idevicesinc.sweetblue
+
+ +
+
BleServer.AdvertisingListener.AdvertisingEvent - Class in com.idevicesinc.sweetblue
+
+
Sub class representing the Advertising Event
+
+
BleServer.AdvertisingListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Enumeration describing the m_status of calling BleServer.startAdvertising(BleAdvertisingPacket).
+
+
BleServer.ConnectionFailListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation of this callback to BleServer.setListener_ConnectionFail(ConnectionFailListener).
+
+
BleServer.ConnectionFailListener.ConnectionFailEvent - Class in com.idevicesinc.sweetblue
+
+
Structure passed to BleServer.ConnectionFailListener.onEvent(ConnectionFailEvent) to provide more info about how/why the connection failed.
+
+
BleServer.ConnectionFailListener.Status - Enum in com.idevicesinc.sweetblue
+
+
The reason for the connection failure.
+
+
BleServer.DefaultConnectionFailListener - Class in com.idevicesinc.sweetblue
+
+
Default implementation of BleServer.ConnectionFailListener that attempts a certain number of retries.
+
+
BleServer.ExchangeListener - Interface in com.idevicesinc.sweetblue
+
+
Tagging interface, not to be implemented directly as this is just the base interface to statically tie together + BleServer.IncomingListener and BleServer.OutgoingListener with common enums/structures.
+
+
BleServer.ExchangeListener.ExchangeEvent - Class in com.idevicesinc.sweetblue
+
+
Like BleServer.ExchangeListener, this class should not be used directly as this is just a base class to statically tie together + BleServer.IncomingListener.IncomingEvent and BleServer.OutgoingListener.OutgoingEvent with a common API.
+
+
BleServer.ExchangeListener.Target - Enum in com.idevicesinc.sweetblue
+
+
The type of GATT object, provided by BleServer.ExchangeListener.ExchangeEvent.target().
+
+
BleServer.ExchangeListener.Type - Enum in com.idevicesinc.sweetblue
+
+
The type of exchange being executed, read, write, or notify.
+
+
BleServer.IncomingListener - Interface in com.idevicesinc.sweetblue
+
+ +
+
BleServer.IncomingListener.IncomingEvent - Class in com.idevicesinc.sweetblue
+
+
Struct passed to BleServer.IncomingListener.onEvent(BleServer.IncomingListener.IncomingEvent)} that provides details about the client and what it wants from us, the server.
+
+
BleServer.IncomingListener.Please - Class in com.idevicesinc.sweetblue
+
+ +
+
BleServer.OutgoingListener - Interface in com.idevicesinc.sweetblue
+
+ +
+
BleServer.OutgoingListener.OutgoingEvent - Class in com.idevicesinc.sweetblue
+
+
Struct passed to BleServer.OutgoingListener.onEvent(BleServer.OutgoingListener.OutgoingEvent) + that provides details of what was sent to the client and if it succeeded.
+
+
BleServer.OutgoingListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Enumeration of the various success and error statuses possible for an outgoing message.
+
+
BleServer.ServiceAddListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation of this callback to BleServer.setListener_ServiceAdd(ServiceAddListener).
+
+
BleServer.ServiceAddListener.ServiceAddEvent - Class in com.idevicesinc.sweetblue
+
+
Event struct passed to BleServer.ServiceAddListener.onEvent(ServiceAddEvent) to give you information about the success + of a service addition or the reason(s) for its failure.
+
+
BleServer.ServiceAddListener.Status - Enum in com.idevicesinc.sweetblue
+
+
Enumeration of the different ways that service addition can fail (and one way for it to succeed), + provided through BleServer.OutgoingListener.OutgoingEvent.status().
+
+
BleServer.StateListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleServer.setListener_State(StateListener) and/or + BleManager.setListener_ServerState(BleServer.StateListener) to receive state change events.
+
+
BleServer.StateListener.StateEvent - Class in com.idevicesinc.sweetblue
+
+ +
+
BleServerState - Enum in com.idevicesinc.sweetblue
+
+
An enumeration of the various states that a BleServer can be in on a per-client (mac address) basis.
+
+
BleService - Class in com.idevicesinc.sweetblue
+
+
Proxy of BluetoothGattService to force stricter compile-time checks and order of operations + when creating services for BleServer.
+
+
BleService(UUID, BleCharacteristic...) - Constructor for class com.idevicesinc.sweetblue.BleService
+
 
+
BleServices - Class in com.idevicesinc.sweetblue
+
+
Static-only class with some common BLE services for BleServer.addService(BleService).
+
+
BleServiceWrapper - Class in com.idevicesinc.sweetblue
+
+
Wrapper class which holds an instance of BluetoothGattService.
+
+
BleStatuses - Class in com.idevicesinc.sweetblue
+
+
A collection of various BLE status codes that for whatever reason are not exposed through Android's + public BLE layer - this can be because they are public but use the @hide annotation, + or they are not public in the first place, or they can only be found by Googling + for native C/C++ library code.
+
+
BleStatuses() - Constructor for class com.idevicesinc.sweetblue.BleStatuses
+
 
+
BleTask - Enum in com.idevicesinc.sweetblue
+
+
Under the hood, SweetBlue uses a priority task queue to serialize all interaction with the native BLE stack.
+
+
BleTransaction - Class in com.idevicesinc.sweetblue
+
+
Abstract base class for transactions passed to various methods of BleDevice.
+
+
BleTransaction() - Constructor for class com.idevicesinc.sweetblue.BleTransaction
+
 
+
BleTransaction.Auth - Class in com.idevicesinc.sweetblue
+
+
Tagging subclass to force type-discrepancy for various BleDevice.connect() overloads.
+
+
BleTransaction.EndReason - Enum in com.idevicesinc.sweetblue
+
+ +
+
BleTransaction.Init - Class in com.idevicesinc.sweetblue
+
+
Tagging subclass to force type-discrepancy for various BleDevice.connect() overloads.
+
+
BleTransaction.Ota - Class in com.idevicesinc.sweetblue
+
+
Tagging subclass to force type-correctness for BleDevice.performOta(BleTransaction.Ota).
+
+
BleUuid - Class in com.idevicesinc.sweetblue.utils
+
+
Class used to store a UUID along with the BleUuid.UuidSize of the UUID.
+
+
BleUuid(UUID, BleUuid.UuidSize) - Constructor for class com.idevicesinc.sweetblue.utils.BleUuid
+
 
+
BleUuid.UuidSize - Enum in com.idevicesinc.sweetblue.utils
+
+
Enumeration used to dictate the "size" of a UUID when building a scan packet.
+
+
BleWriteTransaction - Class in com.idevicesinc.sweetblue
+
 
+
BleWriteTransaction() - Constructor for class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Use this constructor if you don't plan on setting a BleWriteTransaction.FailListener to listen for + write fails in the queue.
+
+
BleWriteTransaction(BleWriteTransaction.FailListener) - Constructor for class com.idevicesinc.sweetblue.BleWriteTransaction
+
+ +
+
BleWriteTransaction(BleWriteTransaction.WriteQueueListener, BleWriteTransaction.FailListener) - Constructor for class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Instantiate a new BleWriteTransaction with a BleWriteTransaction.WriteQueueListener, which + allows you to perform operations between each write in the queue, and a BleWriteTransaction.FailListener to + tell the Transaction what to do on a write failure.
+
+
BleWriteTransaction.FailListener - Interface in com.idevicesinc.sweetblue
+
+
Interface for handling failures when writing.
+
+
BleWriteTransaction.FailListener.Please - Class in com.idevicesinc.sweetblue
+
+
Class used to dictate what should happen if a write fail happens.
+
+
BleWriteTransaction.WriteQueueListener - Interface in com.idevicesinc.sweetblue
+
+
Interface for listening between each write made in the queue.
+
+
BleWriteTransaction.WriteQueueListener.Please - Class in com.idevicesinc.sweetblue
+
+
Class used to tell this BleWriteTransaction to either proceed to the next write, + or cancel this transaction.
+
+
BLOOD_PRESSURE_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BLOOD_PRESSURE_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BLOOD_PRESSURE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BLUETOOTH_CONNECTED_HASH - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BluetoothEnabler - Class in com.idevicesinc.sweetblue.utils
+
+
This class is used to handle the new hairy logic for getting bluetooth low-energy scan results that is introduced with Build.VERSION_CODES.M.
+
+
BluetoothEnabler.BluetoothEnablerFilter - Interface in com.idevicesinc.sweetblue.utils
+
+
Provide an implementation to BluetoothEnabler.BluetoothEnabler(Activity, BluetoothEnablerFilter) to receive callbacks or simply use the provided class + BluetoothEnabler.DefaultBluetoothEnablerFilter by calling BluetoothEnabler.start(Activity).
+
+
BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent - Class in com.idevicesinc.sweetblue.utils
+
+
Events passed to BluetoothEnabler.BluetoothEnablerFilter.onEvent(BluetoothEnablerEvent) so that the programmer can assign logic to the user's decision to + enable or disable certain required permissions and settings.
+
+
BluetoothEnabler.BluetoothEnablerFilter.Please - Class in com.idevicesinc.sweetblue.utils
+
+ +
+
BluetoothEnabler.BluetoothEnablerFilter.Stage - Enum in com.idevicesinc.sweetblue.utils
+
+
Enumerates changes in the "enabling" stage before a + Bluetooth LE scan is started.
+
+
BluetoothEnabler.BluetoothEnablerFilter.Status - Enum in com.idevicesinc.sweetblue.utils
+
+ +
+
BluetoothEnabler.DefaultBluetoothEnablerFilter - Class in com.idevicesinc.sweetblue.utils
+
+
A default implementation of BluetoothEnablerListener used in BluetoothEnabler.start(Activity).
+
+
BODY_COMPOSITION_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BODY_COMPOSITION_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BODY_COMPOSITION_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BODY_SENSOR_LOCATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
bond(BleDevice.BondListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.bond() but you can pass a listener to be notified of the details behind success or failure.
+
+
bond() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Attempts to create a bond.
+
+
bond() - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+
Device should be bonded if it isn't already.
+
+
bond(BleDevice.BondListener) - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+ +
+
BOND_FAIL_REASON_NOT_APPLICABLE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+ +
+
BOND_FAIL_REASON_NOT_AVAILABLE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
Used when attempting to bond on a device whose API level is less than 19, or does not have access to android's + BluetoothDevice.createBond() method.
+
+
BOND_MANAGEMENT_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BOND_MANAGEMENT_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BOND_MANAGEMENT_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BOND_SUCCESS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt succeeded.
+
+
bondFailReason() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
bondFilter - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is instance of BleDeviceConfig.DefaultBondFilter.
+
+
bondIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+ +
+
bondIf(boolean, BleDevice.BondListener) - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+ +
+
bondingFailFailsConnection - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
bondRetryFilter - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BondRetryFilter.DefaultBondRetryFilter - This allows to you implement your own logic on whether or not SweetBlue should + retry a failed bond.
+
+
BondRetryFilter - Interface in com.idevicesinc.sweetblue
+
+
Interface used to tell SweetBlue how to behave when a bond attempt fails.
+
+
BondRetryFilter.DefaultBondRetryFilter - Class in com.idevicesinc.sweetblue
+
+
The default BondRetryFilter that SweetBlue uses.
+
+
BondRetryFilter.Please - Class in com.idevicesinc.sweetblue
+
+
Please class to tell the library if it should retry bonding to the device again or not.
+
+
BondRetryFilter.RetryEvent - Class in com.idevicesinc.sweetblue
+
+
Event class which holds an instance of the device that a bond has failed on, and the failure code.
+
+
BondRetryFilter.Status - Enum in com.idevicesinc.sweetblue
+
 
+
boolToByte(boolean) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a boolean to a byte (true is 0x1, false is 0x0).
+
+
BOOT_KEYBOARD_INPUT_REPORT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BOOT_KEYBOARD_OUTPUT_REPORT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
BOOT_MOUSE_INPUT_REPORT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
broadcast() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Build this BluetoothGattCharacteristic, and add it to it's parent BluetoothGattService.
+
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicPermissions
+
 
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+
Build this BluetoothGattDescriptor, and add it to its parent BluetoothGattCharacteristic.
+
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorPermissions
+
 
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
build() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
+
+
Builds the current BluetoothGattService, and returns the parent GattDatabase.
+
+
buildPacket() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Build a byte[] scan record from the data stored in this instance.
+
+
ByteBuffer - Class in com.idevicesinc.sweetblue.utils
+
+
Convenience class to build up a byte array by appending bytes, or byte arrays.
+
+
ByteBuffer(int) - Constructor for class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Initialize this buffer with the given initial size
+
+
ByteBuffer(byte[]) - Constructor for class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Create a new ByteBuffer with the given byte array.
+
+
ByteBuffer() - Constructor for class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Construct a new ByteBuffer with the default of ByteBuffer.DEFAULT_BUFFER_SIZE.
+
+
bytes() - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Returns the bytes currently in this buffer.
+
+
bytesAndClear() - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Returns the bytes that were added to this buffer.
+
+
byteSize() - Method in enum com.idevicesinc.sweetblue.utils.BleUuid.UuidSize
+
 
+
bytesToBinaryString(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a hex string
+
+
bytesToBinaryString(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a hex string + Also inserts spaces between every count bytes (for legibility)
+
+
bytesToDouble(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a double
+
+
bytesToDouble(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert bytes to a double from the given byte array, starting at the given offset.
+
+
bytesToFloat(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a float
+
+
bytesToFloat(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert bytes to a float from the given byte array, starting at the given offset.
+
+
bytesToHexString(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a hex string
+
+
bytesToInt(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to an int
+
+
bytesToInt(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert bytes to an int from the given byte array, starting at the given offset.
+
+
bytesToLong(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a long
+
+
bytesToLong(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert bytes to a long from the given byte array, starting at the given offset.
+
+
bytesToMacAddress(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
bytesToShort(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte array to a short
+
+
bytesToShort(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Outputs a Pointer from the given byte array, starting at the offset provided.
+
+
byteToBool(byte) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte to a boolean
+
+
byteToBool(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a byte to a boolean from the given byte array, at the given offset.
+
+
+ + + +

C

+
+
cacheDeviceOnUndiscovery - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - controls whether a BleDevice is placed into an in-memory cache when it becomes BleDeviceState.UNDISCOVERED.
+
+
callBooleanReturnMethod(Object, String, boolean) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Reflection
+
 
+
callBooleanReturnMethod(Object, String, Class[], boolean, Object...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Reflection
+
 
+
cancel() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
 
+
cancel() - Static method in class com.idevicesinc.sweetblue.BleWriteTransaction.WriteQueueListener.Please
+
+
Cancels this BleWriteTransaction.
+
+
cancelConnection(BluetoothDevice) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
cancelConnection(BluetoothDevice) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
cancelDiscovery() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
cast() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Just some sugar for casting to subclasses.
+
+
cast(Class<T>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Safer version of BleNode.cast() that will return BleDevice.NULL or BleServer.NULL + if the cast cannot be made.
+
+
CENTRAL_ADDRESS_RESOLUTION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_SESSION_RUN_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_SESSION_START_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_SPECIFIC_OPS_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CGM_STATUS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ChangeEvent(int, int, int) - Constructor for class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
 
+
characteristc() - Method in class com.idevicesinc.sweetblue.DescriptorFilter.DescriptorEvent
+
+
Deprecated. +
- Method name is misspelled, but left in here so as to not break any current implementations.
+
+
+
characteristic() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
characteristic() - Method in class com.idevicesinc.sweetblue.DescriptorFilter.DescriptorEvent
+
+
Convenience method which returns the current BluetoothGattCharacteristic.
+
+
characteristic() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
CHARACTERISTIC_AGGREGATE_FORMAT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CHARACTERISTIC_EXTENDED_PROPERTIES - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CHARACTERISTIC_PRESENTATION_FORMAT_DESCRIPTOR_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CHARACTERISTIC_USER_DESCRIPTION_DESCRIPTOR_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
charUuid() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The UUID of the characteristic associated with this BleDevice.ReadWriteListener.ReadWriteEvent.
+
+
charUuid() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEvent
+
+
Returns the UUID of the characteristic in question.
+
+
charUuid() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+ +
+
charUuid() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+
The ble characteristic UUID associated with the task if BleTask.usesCharUuid() + returns true, or Uuids.INVALID otherwise.
+
+
charUuid() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The UUID of the characteristic associated with this BleServer.ExchangeListener.ExchangeEvent.
+
+
charUuid() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
The UUID of the characteristic associated with this BleDevice.ReadWriteListener.ReadWriteEvent.
+
+
clamp() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns a new instance clamped between 0% and 100%.
+
+
clear() - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Clears the buffer of any existing data.
+
+
clearAllData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
One method to remove absolutely all "metadata" related to this device that is stored on disk and/or cached in memory in any way.
+
+
clearHistoricalData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device.
+
+
clearHistoricalData(long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device.
+
+
clearHistoricalData(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device within the given range.
+
+
clearHistoricalData(EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device within the given range.
+
+
clearHistoricalData(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device for a particular + characteristic UUID.
+
+
clearHistoricalData(UUID...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.clearHistoricalData(UUID) that just calls that method multiple times.
+
+
clearHistoricalData(UUID, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device for a particular + characteristic UUID.
+
+
clearHistoricalData(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device for a particular + characteristic UUID within the given range.
+
+
clearHistoricalData(UUID, EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device for a particular + characteristic UUID within the given range.
+
+
clearHistoricalData_memoryOnly() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device.
+
+
clearHistoricalData_memoryOnly(long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device.
+
+
clearHistoricalData_memoryOnly(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device within the given range.
+
+
clearHistoricalData_memoryOnly(EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device within the given range.
+
+
clearHistoricalData_memoryOnly(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device for a particular + characteristic UUID.
+
+
clearHistoricalData_memoryOnly(UUID, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device for a particular + characteristic UUID.
+
+
clearHistoricalData_memoryOnly(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears all HistoricalData tracked by this device for a particular + characteristic UUID within the given range.
+
+
clearHistoricalData_memoryOnly(UUID, EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears the first count number of HistoricalData tracked by this device for a particular + characteristic UUID within the given range.
+
+
clearName() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Clears any name previously provided through BleDevice.setName(String) or overloads.
+
+
clearQueue() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
This method will clear the task queue of all tasks.
+
+
clearServiceData() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Clear all service data that may be in this BleScanInfo instance.
+
+
clearServices() - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
clearServices() - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
clearServiceUUIDs() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Clears any service UUIDs in this instance.
+
+
clearSharedPreferences() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
clearSharedPreferences(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
clearSharedPreferences(String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Clears all data currently being held in SharedPreferences for a particular device.
+
+
clearSharedPreferences() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Clears all data currently being held in SharedPreferences for all devices.
+
+
CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
clone() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig
+
 
+
clone() - Method in class com.idevicesinc.sweetblue.BleManagerConfig
+
 
+
clone() - Method in class com.idevicesinc.sweetblue.BleNodeConfig
+
 
+
close() - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
close() - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
close() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
close() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Closes the Cursor, releasing all of its resources and making it completely invalid.
+
+
com.idevicesinc.sweetblue - package com.idevicesinc.sweetblue
+
+
Contains the core public-facing classes BleDevice and BleManager + and most of the internal guts for SweetBlue, the easiest way to do BLE on Android.
+
+
com.idevicesinc.sweetblue.annotations - package com.idevicesinc.sweetblue.annotations
+
+
Contains Annotation declarations used throughout the library.
+
+
com.idevicesinc.sweetblue.backend - package com.idevicesinc.sweetblue.backend
+
+
Contains specification and default implementation of "backend" modules for SweetBlue.
+
+
com.idevicesinc.sweetblue.backend.historical - package com.idevicesinc.sweetblue.backend.historical
+
+
Contains specification and default implementation of a "backend" for instances of BleDevice + that stores and manages historical data.
+
+
com.idevicesinc.sweetblue.compat - package com.idevicesinc.sweetblue.compat
+
+
Contains utility classes for hiding away newer API calls.
+
+
com.idevicesinc.sweetblue.utils - package com.idevicesinc.sweetblue.utils
+
+
Contains a few optional utilities that you may find useful, but nothing in here is a core part of the library as far as the library user is concerned.
+
+
compare(BleDevice, BleDevice) - Method in class com.idevicesinc.sweetblue.BleManagerConfig.DeviceNameComparator
+
 
+
compareTo(EpochTime) - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
 
+
completeChar() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicPermissions
+
 
+
completeChar() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+ +
+
completeChar() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorPermissions
+
 
+
completeDesc() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorPermissions
+
 
+
completeService() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Calls GattDatabase.CharacteristicBuilder.build(), then builds the parent BluetoothGattService, and add it to the database.
+
+
completeService() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicPermissions
+
 
+
completeService() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+
Calls GattDatabase.DescriptorBuilder.build(), then builds the parent BluetoothGattCharacteristic, then builds the parent BluetoothGattService.
+
+
completeService() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorPermissions
+
 
+
completeService() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
concatStrings(String...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
CONN_CANCEL - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_FAIL_ESTABLISH - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_LMP_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_NO_RESOURCES - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_SUCCESS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_TERMINATE_LOCAL_HOST - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_TERMINATE_PEER_USER - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
CONN_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
connect() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Starts a connection process, or does nothing if already BleDeviceState.CONNECTED or BleDeviceState.CONNECTING.
+
+
connect(BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleDevice.StateListener, BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleDevice.ConnectionFailListener, BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.connect() but provides a hook for the app to do some kind of authentication handshake if it wishes.
+
+
connect(BleTransaction.Auth, BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth, BleDevice.StateListener, BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Init) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.connect() but provides a hook for the app to do some kind of initialization before it's considered fully + BleDeviceState.INITIALIZED.
+
+
connect(BleTransaction.Init, BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth, BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Yet another overload.
+
+
connect(BleTransaction.Init, BleDevice.StateListener, BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth, BleTransaction.Init) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth, BleTransaction.Init, BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(BleTransaction.Auth, BleTransaction.Init, DeviceStateListener, BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
connect(String) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
connect(String, BleServer.StateListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
connect(String, BleServer.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
connect(String, BleServer.StateListener, BleServer.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Connect to the given client mac address and provided listeners that are shorthand for calling BleServer.setListener_State(StateListener) + BleServer.setListener_ConnectionFail(ConnectionFailListener).
+
+
connect(BleDevice, boolean, Context, BluetoothGattCallback) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
+
Deprecated.
+
+
connect(BluetoothDevice, boolean, Context, BluetoothGattCallback) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
 
+
connect(BluetoothDevice, boolean) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
connect(BluetoothDevice, boolean) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
connectFailRetryConnectingOverall - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is null - whether SweetBlue should retry a connect after successfully connecting via + BLE.
+
+
connectionFailEvent() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
Returns the more detailed information about why the connection failed.
+
+
connectionPriority() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
contains(Object[], Object) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
CONTINUOUS_GLUCOSE_MONITORING_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
copyStringToBuffer(int, CharArrayBuffer) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
createBond(BleDevice) - Static method in class com.idevicesinc.sweetblue.compat.K_Util
+
+
Deprecated.
+
+
createBond(BluetoothDevice) - Static method in class com.idevicesinc.sweetblue.compat.K_Util
+
 
+
CROSS_TRAINER_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CSC_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CSC_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CURRENT_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CURRENT_TIME_SERVICE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CURRENT_TIME_SERVICE__CURRENT_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CURRENT_TIME_SERVICE__LOCAL_TIME_INFO - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CURRENT_TIME_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
currentTime() - Static method in class com.idevicesinc.sweetblue.BleServices
+
+
Returns a new service conforming to the "Current Time Service" specification.
+
+
cursor() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
+
The resulting Cursor from the database query.
+
+
CYCLING_POWER_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CYCLING_POWER_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CYCLING_POWER_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CYCLING_POWER_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CYCLING_POWER_VECTOR - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
CYCLING_SPEED_AND_CADENCE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

D

+
+
data() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
data() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
The data to be written.
+
+
data() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
The data received from the peripheral.
+
+
data() - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsSelectColumn
+
 
+
data_byte() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Returns the first byte from BleDevice.ReadWriteListener.ReadWriteEvent.data(), or 0x0 if not available.
+
+
data_byte() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Returns the first byte from NotificationListener.NotificationEvent.data(), or 0x0 if not available.
+
+
data_int(boolean) - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convenience method that attempts to parse BleDevice.ReadWriteListener.ReadWriteEvent.data() as an int.
+
+
data_int(boolean) - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convenience method that attempts to parse NotificationListener.NotificationEvent.data() as an int.
+
+
data_long(boolean) - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convenience method that attempts to parse BleDevice.ReadWriteListener.ReadWriteEvent.data() as a long.
+
+
data_long(boolean) - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convenience method that attempts to parse NotificationListener.NotificationEvent.data() as a long.
+
+
data_received() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The data received from the client if BleServer.ExchangeListener.ExchangeEvent.type() is BleServer.ExchangeListener.Type.isWrite(), otherwise an empty byte array.
+
+
data_sent() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+
The data that was attempted to be sent back to the client if BleServer.ExchangeListener.ExchangeEvent.type() BleServer.ExchangeListener.Type.isRead() is true.
+
+
data_short(boolean) - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convenience method that attempts to parse BleDevice.ReadWriteListener.ReadWriteEvent.data() as a short.
+
+
data_short(boolean) - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convenience method that attempts to parse NotificationListener.NotificationEvent.data() as a short.
+
+
data_string() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
data_string(String) - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convenience method that attempts to parse BleDevice.ReadWriteListener.ReadWriteEvent.data() as a String with the given charset, for example "UTF-8".
+
+
data_string() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
data_string(String) - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convenience method that attempts to parse NotificationListener.NotificationEvent.data() as a String with the given charset, for example "UTF-8".
+
+
data_utf8() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convenience method that attempts to parse the data as a UTF-8 string.
+
+
data_utf8() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convenience method that attempts to parse the data as a UTF-8 string.
+
+
DATABASE_CHANGE_INCREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DATE_OF_BIRTH - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DATE_OF_THRESHOLD_ASSESSMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DATE_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DAY_DATE_TIME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DAY_OF_WEEK - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
deactivate() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
debugizeDeviceName(String, String, boolean) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
DebugLogger - Class in com.idevicesinc.sweetblue.utils
+
+
Logger class which prints SweetBlue logs to Android's logcat.
+
+
DebugLogger() - Constructor for class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Default constructor which sets the max log size of DebugLogger.DEFAULT_MAX_SIZE.
+
+
DebugLogger(int) - Constructor for class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Constructor which allows you to set a custom max log count size.
+
+
DebugLogger(int, boolean) - Constructor for class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Constructor which allows you to set a custom max log count size, and whether or not you want the logger to print to log cat.
+
+
DebugLogger.LogEvent - Interface in com.idevicesinc.sweetblue.utils
+
 
+
DEFAULT_AUTO_SCAN_DELAY_AFTER_RESUME - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_AUTO_SCAN_PAUSE_TIME - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_AUTO_UPDATE_RATE - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_BUFFER_SIZE - Static variable in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
The default size to initialize the ByteBuffer with.
+
+
DEFAULT_CLASSIC_SCAN_BOOST_TIME - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_CONNECTION_FAIL_RETRY_COUNT - Static variable in class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
+
The default retry count provided to BleDevice.DefaultConnectionFailListener.
+
+
DEFAULT_CONNECTION_FAIL_RETRY_COUNT - Static variable in class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
+
The default retry count provided to BleServer.DefaultConnectionFailListener.
+
+
DEFAULT_CRASH_RESOLVER_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultTaskTimeoutRequestFilter
+
+
Value used for crash resolver process because this can take a bit longer.
+
+
DEFAULT_DELAY_BEFORE_IDLE - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_FAIL_COUNT_BEFORE_USING_AUTOCONNECT - Static variable in class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
+ +
+
DEFAULT_FAIL_COUNT_BEFORE_USING_AUTOCONNECT - Static variable in class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
+ +
+
DEFAULT_GATT_REFRESH_DELAY - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
This only applies when BleDeviceConfig.useGattRefresh is true.
+
+
DEFAULT_IDLE_UPDATE_RATE - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_INITIAL_RECONNECT_DELAY - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
DEFAULT_MANAGER_STATE_POLL_RATE - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_MAX_BOND_RETRIES - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
The default value used for BondRetryFilter.DefaultBondRetryFilter.
+
+
DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
The default value of BleDeviceConfig.maxConnectionFailHistorySize, the size of the list that keeps track of a BleNode's connection failure history.
+
+
DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
The default size of the list that keeps track of a BleNode's connection failure history.
+
+
DEFAULT_MAX_SIZE - Static variable in class com.idevicesinc.sweetblue.utils.DebugLogger
+
 
+
DEFAULT_MINIMUM_SCAN_TIME - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
DEFAULT_MTU_SIZE - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
The default MTU size in bytes for gatt reads/writes/notifies/etc.
+
+
DEFAULT_RSSI_AUTO_POLL_RATE - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
DEFAULT_RSSI_MAX - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default fallback value for BleDeviceConfig.rssi_max.
+
+
DEFAULT_RSSI_MIN - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default fallback value for BleDeviceConfig.rssi_min.
+
+
DEFAULT_RUNNING_AVERAGE_N - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
DEFAULT_SCAN_INFINITE_INTERVAL_TIME - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_SCAN_INFINITE_PAUSE_TIME - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_SCAN_KEEP_ALIVE - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
This is a good default value for BleDeviceConfig.undiscoveryKeepAlive.
+
+
DEFAULT_SCAN_REPORT_DELAY - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DEFAULT_TASK_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultTaskTimeoutRequestFilter
+
+
Default value for all tasks.
+
+
DEFAULT_TX_POWER - Static variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
DEFAULT_UH_OH_CALLBACK_THROTTLE - Static variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
defaultAuthFactory - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Set a default BleTransaction.Auth factory which will be used to dispatch a new instance + of the transaction when connecting to a BleDevice.
+
+
defaultAuthTransaction - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Deprecated. +
This is still here only so we don't break current builds. It will be removed in version 3. Use + BleDeviceConfig.defaultAuthFactory instead, so each device gets it's own instance, instead of sharing the same one. + If you are connecting to more than 1 device at a time, SweetBlue will throw an Exception.
+
+
+
DefaultBluetoothEnablerFilter() - Constructor for class com.idevicesinc.sweetblue.utils.BluetoothEnabler.DefaultBluetoothEnablerFilter
+
 
+
DefaultBondFilter() - Constructor for class com.idevicesinc.sweetblue.BleDeviceConfig.DefaultBondFilter
+
 
+
DefaultBondRetryFilter(int) - Constructor for class com.idevicesinc.sweetblue.BondRetryFilter.DefaultBondRetryFilter
+
+
Constructor which allows you to specify the maximum number of bond retry attempts before giving up.
+
+
DefaultBondRetryFilter() - Constructor for class com.idevicesinc.sweetblue.BondRetryFilter.DefaultBondRetryFilter
+
+
Constructor which sets the max bond retries to BleDeviceConfig.DEFAULT_MAX_BOND_RETRIES before giving up.
+
+
DefaultConnectionFailListener() - Constructor for class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
 
+
DefaultConnectionFailListener(int, int) - Constructor for class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
 
+
DefaultConnectionFailListener() - Constructor for class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
 
+
DefaultConnectionFailListener(int, int) - Constructor for class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
 
+
defaultDiscoveryListener - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is null - can also be set post-construction with BleManager.setListener_Discovery(DiscoveryListener), + which will override the implementation provided here.
+
+
DefaultHistoricalDataLogFilter() - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig.DefaultHistoricalDataLogFilter
+
 
+
defaultInitFactory - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Set a default BleTransaction.Init factory which will be used to dispatch a new instance + of the transaction when connecting to a BleDevice.
+
+
defaultInitTransaction - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Deprecated. +
This is still here only so we don't break current builds. It will be removed in version 3. Use + BleDeviceConfig.defaultInitFactory instead, so each device gets it's own instance, instead of sharing the same one. If you are connecting + to more than 1 device at a time, SweetBlue will throw an Exception.
+
+
+
defaultListComparator - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+ +
+
DefaultLogger - Class in com.idevicesinc.sweetblue
+
 
+
DefaultLogger() - Constructor for class com.idevicesinc.sweetblue.DefaultLogger
+
 
+
DefaultReconnectFilter() - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
DefaultReconnectFilter(Interval, Interval, Interval, Interval) - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
defaultScanFilter - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is null, meaning no filtering - all discovered devices will + be piped through your BleManager.DiscoveryListener instance + and added to the internal list of BleManager.
+
+
DefaultScanFilter(Collection<UUID>) - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig.DefaultScanFilter
+
 
+
DefaultScanFilter(UUID) - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig.DefaultScanFilter
+
 
+
defaultStatePollRate - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is BleManagerConfig.DEFAULT_MANAGER_STATE_POLL_RATE seconds - The rate at which the library will poll the native manager's + state.
+
+
DefaultTaskTimeoutRequestFilter() - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig.DefaultTaskTimeoutRequestFilter
+
 
+
defaultTxPower - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_TX_POWER - this value is used if we can't establish a device's calibrated transmission power from the device itself, + either through its scan record or by reading the standard characteristic.
+
+
DefaultUpdateLoopFactory() - Constructor for class com.idevicesinc.sweetblue.PI_UpdateLoop.DefaultUpdateLoopFactory
+
 
+
delayBetweenTasks - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is Interval.DISABLED - This sets an amount of time to delay between executing each task in the queue.
+
+
delete_fromMemoryAndDatabase(EpochTimeRange, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
delete_fromMemoryAndDatabase(EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
delete_fromMemoryOnly(EpochTimeRange, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
delete_fromMemoryOnly(EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
delete_fromMemoryOnlyForNowButDatabaseSoon(EpochTimeRange, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
delete_fromMemoryOnlyForNowButDatabaseSoon(EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
delete_multipleUuids(String[], UUID[], EpochTimeRange, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
delete_multipleUuids(String[], UUID[], EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
delete_singleUuid_all(String, UUID) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
delete_singleUuid_all(String, UUID) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
delete_singleUuid_inRange(String, UUID, EpochTimeRange, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
delete_singleUuid_inRange(String, UUID, EpochTimeRange, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
delete_singleUuid_singleDate(String, UUID, long) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
delete_singleUuid_singleDate(String, UUID, long) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
delta(long, long) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns a new Interval representing the delta between the two epoch times.
+
+
denull(EpochTimeRange) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
denull(HistoricalData) - Static method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
deny() - Static method in class com.idevicesinc.sweetblue.DescriptorFilter.Please
+
+ +
+
DENY - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
denyIf(boolean) - Static method in class com.idevicesinc.sweetblue.DescriptorFilter.Please
+
+ +
+
DENYING_LOCATION_ACCESS - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
descriptor() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
descriptor() - Method in class com.idevicesinc.sweetblue.DescriptorFilter.DescriptorEvent
+
+
Convenience method which returns the BluetoothGattDescriptor.
+
+
DESCRIPTOR_VALUE_CHANGED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
descriptorFilter() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
This is the DescriptorFilter that was used for this read/write operation, if any.
+
+
DescriptorFilter - Interface in com.idevicesinc.sweetblue
+
+
Interface used when the Bluetooth device you're trying to connect to has multiple + BluetoothGattCharacteristics with the same UUID, in the same + BluetoothGattService.
+
+
DescriptorFilter.DescriptorEvent - Class in com.idevicesinc.sweetblue
+
+
Event class which is an argument in the DescriptorFilter.onEvent(DescriptorEvent) method of the + DescriptorFilter interface.
+
+
DescriptorFilter.Please - Class in com.idevicesinc.sweetblue
+
+
Class used to dictate if the current BluetoothGattCharacteristic is the correct one to operate on + by looking at it's BluetoothGattDescriptor value.
+
+
descriptorUuid() - Method in interface com.idevicesinc.sweetblue.DescriptorFilter
+
+
Return the UUID of the descriptor you want to read to distinguish which BluetoothGattCharacteristic you would + like to perform an op on.
+
+
descUuid() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The UUID of the descriptor associated with this BleDevice.ReadWriteListener.ReadWriteEvent.
+
+
descUuid() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+
The ble descriptor UUID associated with the task, or Uuids.INVALID otherwise.
+
+
descUuid() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The UUID of the descriptor associated with this BleServer.ExchangeListener.ExchangeEvent.
+
+
device() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+
The BleDevice that attempted to BleDevice.bond().
+
+
device() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
device() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
device() - Method in class com.idevicesinc.sweetblue.BleDevice.StateListener.StateEvent
+
+
Deprecated.
+
The device undergoing the state change.
+
+
device() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEvent
+
+
Returns the BleDevice in question.
+
+
device() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+
The device in question.
+
+
device() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+ +
+
device() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+ +
+
device() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+ +
+
device() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns the BleDevice that failed to bond.
+
+
device() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.MtuTestEvent
+
+
The BleDevice which just got it's MTU size negotiated with
+
+
device() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.TestResult
+
+
The BleDevice the test was run on.
+
+
device() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
DEVICE_INFORMATION_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DEVICE_INFORMATION_UUIDS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DEVICE_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
DeviceNameComparator() - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig.DeviceNameComparator
+
 
+
DeviceStateListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleDevice.setListener_State(DeviceStateListener) and/or + BleManager.setListener_DeviceState(DeviceStateListener) to receive state change events.
+
+
DEW_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
didEnter(int, int) - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
didEnter(int, int) - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
didEnter(int, int) - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
didEnter(T_State) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience forwarding of State.didEnter(int, int).
+
+
didEnter(int, int) - Method in interface com.idevicesinc.sweetblue.utils.State
+
+ +
+
didEnterAll(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience to return true if State.ChangeEvent.didEnter(State) returns true for all the State instances given.
+
+
didEnterAny(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience to return true if State.ChangeEvent.didEnter(State) returns true on any of the State instances given.
+
+
didExit(int, int) - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
didExit(int, int) - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
didExit(int, int) - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
didExit(T_State) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience forwarding of State.didExit(int, int).
+
+
didExit(int, int) - Method in interface com.idevicesinc.sweetblue.utils.State
+
+ +
+
didExitAll(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience to return true if State.ChangeEvent.didExit(State) returns true for all the State instances given.
+
+
didExitAny(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Convenience to return true if State.ChangeEvent.didExit(State) returns true on any of the State instances given.
+
+
DIGITAL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
disable() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
DISABLED - Static variable in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
+
Special value you can use in place of Java's built-in null, just for code readability.
+
+
DISABLED - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Use this special value to disable options in BleDeviceConfig and BleManagerConfig.
+
+
disableNotify(UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.disableNotify(java.util.UUID, BleDevice.ReadWriteListener) but you can use this if you don't care about the result.
+
+
disableNotify(UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.disableNotify(UUID, ReadWriteListener) but filters on the given Interval without a listener.
+
+
disableNotify(UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.disableNotify(UUID, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
disableNotify(UUID, UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.disableNotify(UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
disableNotify(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.disableNotify(UUID) for when you have characteristics with identical uuids under different services.
+
+
disableNotify(UUID, UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.disableNotify(UUID, UUID, DescriptorFilter, Interval) for when you have characteristics with identical uuids under different services.
+
+
disableNotify(UUID, UUID, DescriptorFilter, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.disableNotify(UUID, Interval) for when you have characteristics with identical uuids under different services.
+
+
disableNotify(UUID[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(UUID[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(UUID[], Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(UUID[], Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(Iterable<UUID>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(Iterable<UUID>, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(Iterable<UUID>, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disableNotify(Iterable<UUID>, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
disconnect() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Disconnects from a connected device or does nothing if already BleDeviceState.DISCONNECTED.
+
+
disconnect(String) - Method in class com.idevicesinc.sweetblue.BleServer
+
 
+
disconnect() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Disconnects this server completely, disconnecting all connected clients and shutting things down.
+
+
disconnect_remote() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.disconnect() but this call roughly simulates the disconnect as if it's because of the remote device going down, going out of range, etc.
+
+
disconnectAll() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Disconnects all devices that are BleDeviceState.CONNECTED.
+
+
disconnectAll_remote() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.disconnectAll() but drills down to BleDevice.disconnect_remote() instead.
+
+
disconnectBeforeUnbond - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Deprecated. 
+
+
disconnectIsCancellable - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Default is true - controls whether the library is allowed to optimize fast disconnect/reconnect cycles + by actually not disconnecting in the native stack at all.
+
+
disconnectWhenReady() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Similar to BleDevice.disconnect() with the difference being the disconnect task is set to a low priority.
+
+
dispatch() - Method in class com.idevicesinc.sweetblue.utils.EventQueue
+
 
+
Distance - Class in com.idevicesinc.sweetblue.utils
+
+
Wrapper for a positive-only physical distance supporting various units of measurement.
+
+
distance(int, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Rssi
+
 
+
distance(int, int, double, double, double) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Rssi
+
 
+
dividedBy(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Returns a new instance that is the result of doing this / other.
+
+
doBreak() - Static method in class com.idevicesinc.sweetblue.utils.ForEach_Breakable.Please
+
 
+
doContinue() - Static method in class com.idevicesinc.sweetblue.utils.ForEach_Breakable.Please
+
 
+
doesDataExist(String, UUID) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
doesDataExist(String, UUID) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
doForEach(EpochTimeRange, Object) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
doForEach(EpochTimeRange, Object) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
doForEach_break(Object, List<T>) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
doForEach_break(Object, Object) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
doNext() - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+ +
+
doNothing() - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+
Device's bond state should not be affected.
+
+
doNothing() - Static method in class com.idevicesinc.sweetblue.MtuTestCallback.Please
+
+
Don't perform any test for the new MTU size.
+
+
doNotLog() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Will not log the data.
+
+
doNotRespond() - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+ +
+
doNotRespond(BleServer.OutgoingListener) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Same as BleServer.IncomingListener.Please.doNotRespond() but allows you to provide a listener specific to this (non-)response.
+
+
doNotRetry() - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+
Return this to stop the connection fail retry loop.
+
+
doNotRetryIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+ +
+
doNotUseTimeout() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.Please
+
+
Tells SweetBlue to not timeout the task at all.
+
+
doubleToBytes(double) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a double to a byte array
+
+
doWriteTest(UUID, UUID, byte[]) - Static method in class com.idevicesinc.sweetblue.MtuTestCallback.Please
+
+
Tell SweetBlue what characteristic it should write to, and provide the data to write.
+
+
doWriteTest(UUID, UUID, byte[], BleDevice.ReadWriteListener.Type) - Static method in class com.idevicesinc.sweetblue.MtuTestCallback.Please
+
+
Tell SweetBlue what characteristic it should write to, and provide the data to write.
+
+
DST_OFFSET - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

E

+
+
ELEVATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
EMAIL_ADDRESS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
EMPTY - Static variable in interface com.idevicesinc.sweetblue.utils.FutureData
+
+
Deprecated. 
+
+
EMPTY_BYTE_ARRAY - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EMPTY_CHARACTERISTIC_LIST - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EMPTY_DESCRIPTOR_LIST - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EMPTY_FUTURE_DATA - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EMPTY_SERVICE_LIST - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EMPTY_UUID_ARRAY - Static variable in class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
EmptyCursor - Class in com.idevicesinc.sweetblue.utils
+
+
An implementation of Cursor used for error conditions and things like that where we don't want to return null.
+
+
EmptyCursor() - Constructor for class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
EmptyIterator<T> - Class in com.idevicesinc.sweetblue.utils
+
+
Convenience class for implementing an Iterator with no elements.
+
+
EmptyIterator() - Constructor for class com.idevicesinc.sweetblue.utils.EmptyIterator
+
 
+
enable() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
enableCrashResolver - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is false - this option may help mitigate crashes with "Unfortunately, + Bluetooth Share has stopped" error messages.
+
+
enableCrashResolverForReset - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - this option gates whether the "crash resolver" described in BleManagerConfig.enableCrashResolver + is invoked during a BleManager.reset() operation to forcefully clear the memory that causes the crash.
+
+
enableNotify(UUID[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(UUID[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(UUID[], Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(UUID[], Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(Iterable<UUID>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(Iterable<UUID>, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(Iterable<UUID>, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(Iterable<UUID>, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
enableNotify(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.enableNotify(java.util.UUID, BleDevice.ReadWriteListener) but you can use + this if you don't need a callback.
+
+
enableNotify(UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Enables notification on the given characteristic.
+
+
enableNotify(UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.enableNotify(java.util.UUID, Interval, BleDevice.ReadWriteListener) but you can use + this if you don't need a callback.
+
+
enableNotify(UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.enableNotify(UUID, ReadWriteListener) but forces a read after a given amount of time.
+
+
enableNotify(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.enableNotify(UUID) for when you have characteristics with identical uuids under different services.
+
+
enableNotify(UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.enableNotify(UUID, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
enableNotify(UUID, UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.enableNotify(UUID, Interval) for when you have characteristics with identical uuids under different services.
+
+
enableNotify(UUID, UUID, Interval, DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.enableNotify(UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
enabler() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the BluetoothEnabler associated with the Event.
+
+
enterMask() - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Returns all the states that were entered as a bit mask.
+
+
ENVIRONMENTAL_SENSING_CONFIGURATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ENVIRONMENTAL_SENSING_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ENVIRONMENTAL_SENSING_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ENVIRONMENTAL_SENSING_TRIGGER_SETTING - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
epochTime() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
Timestamp of when the data was obtained.
+
+
EpochTime - Class in com.idevicesinc.sweetblue.utils
+
+
A class fulfilling a similar role to Java's built-in Date, i.e.
+
+
EpochTime(Date) - Constructor for class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Converts from Java's built-in date.
+
+
EpochTime(long) - Constructor for class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Constructs a new instance using milliseconds since 1970.
+
+
EpochTime() - Constructor for class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Constructs a new instance using System.currentTimeMillis().
+
+
epochTime() - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsSelectColumn
+
 
+
epochTime() - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_Where
+
 
+
EpochTimeRange - Class in com.idevicesinc.sweetblue.utils
+
+
Class representing a range of time between two instances of EpochTime.
+
+
EpochTimeRange(EpochTime, EpochTime) - Constructor for class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range between the given epoch times.
+
+
EpochTimeRange(long, long) - Constructor for class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range between the given epoch times as primitive longs.
+
+
equals(Object) - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
 
+
equals(BleDevice) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
First checks referential equality and if false checks + equality of BleDevice.getMacAddress().
+
+
equals(Object) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns BleDevice.equals(BleDevice) if object is an instance of BleDevice.
+
+
equals(BleServer) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Does a referential equality check on the two servers.
+
+
equals(Object) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns BleServer.equals(BleServer) if object is an instance of BleServer.
+
+
equals(Object) - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
 
+
equals(Object) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Returns == using Unit.getRawValue().
+
+
Event - Class in com.idevicesinc.sweetblue.utils
+
+
Abstract base class for all events in SweetBlue, e.g.
+
+
Event() - Constructor for class com.idevicesinc.sweetblue.utils.Event
+
 
+
EventQueue - Class in com.idevicesinc.sweetblue.utils
+
 
+
EventQueue() - Constructor for class com.idevicesinc.sweetblue.utils.EventQueue
+
 
+
EXACT_TIME_256 - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
exitMask() - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Returns all the states that were exited as a bit mask.
+
+
Experimental - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
Classes, or methods marked with this annotation are experimental features.
+
+
Extendable - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
This annotation denotes a class which is meant to be extendable.
+
+
extended_props() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
EXTERNAL_REPORT_REFERENCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
extract(Object, Field) - Method in interface com.idevicesinc.sweetblue.utils.P_JSONUtil.JSONExtractor
+
 
+
+ + + +

F

+
+
fail() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Call this from subclasses to indicate that the transaction has failed.
+
+
failCode() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns the failure code the native stack returned as the reason that bonding failed.
+
+
failReason() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+
If BleDevice.BondListener.BondEvent.status() is BleDevice.BondListener.Status.FAILED_EVENTUALLY, this integer will + be one of the values enumerated in BluetoothDevice that start with UNBOND_REASON such as + BleStatuses.UNBOND_REASON_AUTH_FAILED.
+
+
failureCount() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
The number of times a reconnect attempt has failed so far.
+
+
failureCountSoFar() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.ConnectionFailEvent
+
+
The failure count so far.
+
+
FAT_BURN_HEART_RATE_LOWER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FAT_BURN_HEART_RATE_UPPER_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
feet() - Method in class com.idevicesinc.sweetblue.utils.Distance
+
+
Returns the value of this distance in feet.
+
+
feet(double) - Static method in class com.idevicesinc.sweetblue.utils.Distance
+
+
Creates a new value in feet.
+
+
FEET_PER_METER - Static variable in class com.idevicesinc.sweetblue.utils.Distance
+
 
+
fieldStringValue(Field) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Reflection
+
 
+
fileToBinaryDataList(Context, String, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Deprecated.
+
+
FIRMWARE_REVISION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FIRST_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FITNESS_MACHINE_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FITNESS_MACHINE_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FITNESS_MACHINE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FITNESS_MACHINE_STATUS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
FIVE_SECONDS - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
FIVE_SECS - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Convenience value representing five seconds.
+
+
FIVE_ZONE_HEART_RATE_LIMITS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Flag - Interface in com.idevicesinc.sweetblue.utils
+
 
+
floatToBytes(float) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a float to a byte array
+
+
FLOOR_NUMBER - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
forceBondDialog - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is false.
+
+
forceBondHackInterval - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is Interval.ONE_SEC.
+
+
forceIndefinite(boolean) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Force a indefinite scan.
+
+
forcePost(Runnable) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
forcePost(Runnable) - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
forcePreLollipopScan - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Deprecated. + +
+
+
ForEach_Breakable<T> - Interface in com.idevicesinc.sweetblue.utils
+
 
+
ForEach_Breakable.Please - Class in com.idevicesinc.sweetblue.utils
+
 
+
ForEach_Returning<T> - Interface in com.idevicesinc.sweetblue.utils
+
 
+
ForEach_Void<T> - Interface in com.idevicesinc.sweetblue.utils
+
 
+
from() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns the "from" date passed into the constructor, + or EpochTime.NULL if null + was originally passed in.
+
+
from(UUID) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsFrom
+
 
+
from(String, UUID) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsFrom
+
 
+
from1970_toGiven(EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range from 1970 to the given value.
+
+
from1970_toNow() - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range from 1970 to now.
+
+
FROM_1970_TO_MAX - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
FROM_MIN_TO_1970 - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
FROM_MIN_TO_MAX - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
fromBit(int) - Static method in enum com.idevicesinc.sweetblue.utils.AdvertisingFlag
+
 
+
fromBleScanMode(BleScanMode) - Static method in enum com.idevicesinc.sweetblue.BleScanApi
+
 
+
fromBleScanMode(BleScanMode) - Static method in enum com.idevicesinc.sweetblue.BleScanPower
+
 
+
fromCursor(Cursor) - Static method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
fromDiskValue(int) - Static method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
+
Transforms State.ChangeIntent.toDiskValue() back to the enum.
+
+
fromDouble(double) - Static method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns a new instance using the given double value.
+
+
fromDouble_clamped(double) - Static method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns a new instance clamped between 0% and 100%, regardless of input value.
+
+
fromGiven_toGiven(EpochTime, EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Basically just a more readable overload for the normal constructor EpochTimeRange.EpochTimeRange(EpochTime, EpochTime).
+
+
fromGiven_toMax(EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range from the given value to Long.MAX_VALUE.
+
+
fromGiven_toNow(EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range from the given value to now.
+
+
fromInt(int) - Static method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns a new instance using the given int value.
+
+
fromInt(int) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
fromInt(int, String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Convenience overload of Uuids.fromInt(String, String).
+
+
fromInt(String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+ +
+
fromInt(String, String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Replaces the characters at indices 0-7 (inclusive) of uuidTemplate with the + assignedNumber parameter and returns the resulting UUID using UUID.fromString(String).
+
+
fromInt_clamped(int) - Static method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns a new instance clamped between 0% and 100%, regardless of input value.
+
+
fromMin_toGiven(EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing the time range from Long.MIN_VALUE to the given value.
+
+
fromNative(int) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleAdvertisingMode
+
 
+
fromNative(int) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleTransmissionPower
+
 
+
fromNativeBit(int) - Static method in enum com.idevicesinc.sweetblue.BondRetryFilter.Status
+
 
+
fromNativeSettings(AdvertiseSettings) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
fromNativeStatus(int) - Static method in enum com.idevicesinc.sweetblue.BleServer.AdvertisingListener.Status
+
 
+
fromShort(String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+ +
+
fromShort(short) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+ +
+
fromShort(int) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Overload of Uuids.fromShort(short) so you don't have to downcast hardcoded integers yourself.
+
+
fromShort(short, String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Convenience overload of Uuids.fromShort(String, String) that converts the given + short to a String hex representation.
+
+
fromShort(int, String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Convenience overload of Uuids.fromShort(short, String) so you don't + have to downcast hardcoded integers yourself.
+
+
fromShort(String, String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Replaces the characters at indices 4, 5, 6, and 7 of uuidTemplate with the + assignedNumber parameter and returns the resulting UUID using UUID.fromString(String).
+
+
fromString(String) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Convenience forwarding of UUID.fromString(String), Uuids.fromShort(String), or Uuids.fromInt(String) depending on the length of string given.
+
+
FULL_MASK - Static variable in enum com.idevicesinc.sweetblue.BleDeviceState
+
+
Full bitwise mask made by ORing all BleDeviceState instances together.
+
+
FULL_MASK - Static variable in enum com.idevicesinc.sweetblue.BleManagerState
+
+
Full bitwise mask made by ORing all BleManagerState instances together.
+
+
FULL_MASK - Static variable in enum com.idevicesinc.sweetblue.BleServerState
+
+
Full bitwise mask made by ORing all BleServerState instances together.
+
+
FutureData - Interface in com.idevicesinc.sweetblue.utils
+
+
A simple interface whose implementations should be passed to methods like BleDevice.write(UUID, FutureData) + so you can provide time-sensitive data at the last possible moment.
+
+
+ + + +

G

+
+
GATT_AUTH_FAIL - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_BUSY - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_CMD_STARTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_CMD_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_DB_FULL - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_ENCRYPED_MITM - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_ENCRYPED_NO_MITM - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_ERR_UNLIKELY - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_ERROR - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_HANDLE_VALUE_CONF - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_HANDLE_VALUE_IND - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_HANDLE_VALUE_NOTIF - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_ILLEGAL_PARAMETER - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INSUF_AUTHENTICATION - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INSUF_AUTHORIZATION - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INSUF_ENCRYPTION - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INSUF_KEY_SIZE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INSUF_RESOURCE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INTERNAL_ERROR - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INVALID_ATTR_LEN - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INVALID_CFG - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INVALID_HANDLE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INVALID_OFFSET - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_INVALID_PDU - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_MORE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_NO_RESOURCES - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_NOT_ENCRYPTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_NOT_FOUND - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_NOT_LONG - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_OP_CODE_MAX - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_PENDING - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_PREPARE_Q_FULL - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_READ_MTU_OVERHEAD - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
The overhead in bytes that is subtracted from the total mtu size (e.g.
+
+
GATT_READ_NOT_PERMIT - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_EXEC_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_FIND_INFO - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_FIND_TYPE_VALUE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_MTU - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_NOT_SUPPORTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_PREPARE_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_READ - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_READ_BLOB - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_READ_BY_GRP_TYPE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_READ_BY_TYPE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_READ_MULTI - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_REQ_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_ERROR - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_EXEC_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_FIND_INFO - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_FIND_TYPE_VALUE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_MTU - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_PREPARE_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_READ - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_READ_BLOB - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_READ_BY_GRP_TYPE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_READ_BY_TYPE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_READ_MULTI - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_RSP_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_SERVICE_STARTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_SIGN_CMD_WRITE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_STATUS_NOT_APPLICABLE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
Status code used for BleDevice.ReadWriteListener.ReadWriteEvent.gattStatus() when the operation failed at a point where a + gatt status from the underlying stack isn't provided or applicable.
+
+
GATT_SUCCESS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_UNSUPPORT_GRP_TYPE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_WRITE_MTU_OVERHEAD - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
The overhead in bytes that is subtracted from the total mtu size (e.g.
+
+
GATT_WRITE_NOT_PERMIT - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GATT_WRONG_STATE - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
 
+
GattDatabase - Class in com.idevicesinc.sweetblue.utils
+
+
Use this class to build out a GATT database for your simulated devices when unit testing.
+
+
GattDatabase() - Constructor for class com.idevicesinc.sweetblue.utils.GattDatabase
+
 
+
GattDatabase.CharacteristicBuilder - Class in com.idevicesinc.sweetblue.utils
+
+
Builder class used to create and configure a BluetoothGattCharacteristic to be entered into a BluetoothGattService.
+
+
GattDatabase.CharacteristicPermissions - Class in com.idevicesinc.sweetblue.utils
+
 
+
GattDatabase.DescriptorBuilder - Class in com.idevicesinc.sweetblue.utils
+
+
Builder class used to create and configure a BluetoothGattDescriptor to be added to a BluetoothGattCharacteristic.
+
+
GattDatabase.DescriptorPermissions - Class in com.idevicesinc.sweetblue.utils
+
 
+
GattDatabase.Permissions<T extends GattDatabase.Permissions> - Class in com.idevicesinc.sweetblue.utils
+
 
+
GattDatabase.Properties - Class in com.idevicesinc.sweetblue.utils
+
 
+
GattDatabase.ServiceBuilder - Class in com.idevicesinc.sweetblue.utils
+
+
Builder class used to help building out BluetoothGattServices.
+
+
gattRefreshDelay - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
gattRefreshOption - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.RefreshOption.BEFORE_SERVICE_DISCOVERY - This determines when SweetBlue will refresh the gatt database.
+
+
gattStatus() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The native gatt status returned from the stack, if applicable.
+
+
gattStatus() - Method in class com.idevicesinc.sweetblue.BleDevice.StateListener.StateEvent
+
+
Deprecated.
+
The change in gattStatus that may have precipitated the state change, or BleStatuses.GATT_STATUS_NOT_APPLICABLE.
+
+
gattStatus() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
gattStatus() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+ +
+
gattStatus() - Method in class com.idevicesinc.sweetblue.BleServer.StateListener.StateEvent
+
+
The change in gattStatus that may have precipitated the state change, or BleStatuses.GATT_STATUS_NOT_APPLICABLE.
+
+
gattStatus() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
The native gatt status returned from the stack, if applicable.
+
+
gattStatus_received() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+
The gattStatus received from an attempted communication with the client.
+
+
gattStatus_sent() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+ +
+
GENDER - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GENERIC_ACCESS_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GENERIC_ATTRIBUTES_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GenericListener_T<T_Event extends Event,T_Return> - Interface in com.idevicesinc.sweetblue.utils
+
 
+
GenericListener_Void<T_Event extends Event> - Interface in com.idevicesinc.sweetblue.utils
+
 
+
get(EpochTimeRange, int) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
get(EpochTimeRange, int) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
get(Context) - Static method in class com.idevicesinc.sweetblue.BleManager
+
+
Create the singleton instance or retrieve the already-created singleton instance with default configuration options set.
+
+
get(Context, BleManagerConfig) - Static method in class com.idevicesinc.sweetblue.BleManager
+
+
Create the singleton instance or retrieve the already-created singleton instance with custom configuration options set.
+
+
get() - Static method in class com.idevicesinc.sweetblue.utils.TimeTracker
+
 
+
getAddress() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getAdvertisedServiceData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the manufacturer data, if any, parsed from BleDevice.getScanRecord().
+
+
getAdvertisedServices() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the advertised services, if any, parsed from BleDevice.getScanRecord().
+
+
getAdvertisingFlags() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the advertising flags, if any, parse from BleDevice.getScanRecord().
+
+
getAdvertisingMode() - Method in class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+
Returns the advertising mode specified with BleAdvertisingSettings.BleAdvertisingMode
+
+
getAdvFlags() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Get the advertising flags for this instance.
+
+
getAmendedData() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Returns the amended data provided through BleNodeConfig.HistoricalDataLogFilter.Please.andAmendData(byte[]), or null if not applicable.
+
+
getAmendedEpochTime() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Returns the amended epoch time provided through BleNodeConfig.HistoricalDataLogFilter.Please.andAmendEpochTime(EpochTime), or EpochTime.NULL if not applicable.
+
+
getApplicationContext() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the Application provided to the constructor.
+
+
getAverageReadTime() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
See similar explanation for BleDevice.getAverageWriteTime().
+
+
getAverageWriteTime() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the average round trip time in seconds for all write operations started with BleDevice.write(UUID, byte[]) or + BleDevice.write(UUID, byte[], ReadWriteListener).
+
+
getBit() - Method in enum com.idevicesinc.sweetblue.utils.AdvertisingFlag
+
 
+
getBleState() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getBlob(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getBlob() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Returns the data instance (WARNING: not cloned) passed into the constructor.
+
+
getBlob() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns the BLOB of the historical data as a byte[], equivalent to HistoricalData.getBlob() + but a raw byte[] is used for performance reasons.
+
+
getBlob_string() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Attempts to parse HistoricalData.getBlob() as a UTF-8 string.
+
+
getBluetoothLeAdvertiser(BluetoothAdapter) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
getBondedDevices() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getCharacteristic() - Method in class com.idevicesinc.sweetblue.BleCharacteristicWrapper
+
+
Returns the instance of BluetoothGattCharacteristic held in this class.
+
+
getCharacteristicForUUID(UUID) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
 
+
getClientCount() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the total number of clients this server is connecting or connected to (or previously so).
+
+
getClientCount(BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the number of clients that are in the current state.
+
+
getClientCount(BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the number of clients that are in any of the given states.
+
+
getClients(ForEach_Void<String>) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Offers a more "functional" means of iterating through the internal list of clients instead of + using BleServer.getClients() or BleServer.getClients_List().
+
+
getClients(ForEach_Void<String>, BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Same as BleServer.getClients(ForEach_Void) but will only return clients + in the given state provided.
+
+
getClients(ForEach_Void<String>, BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Same as BleServer.getClients(ForEach_Void) but will only return clients + in any of the given states provided.
+
+
getClients(ForEach_Breakable<String>) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Overload of BleServer.getClients(ForEach_Void) + if you need to break out of the iteration at any point.
+
+
getClients(ForEach_Breakable<String>, BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Overload of BleServer.getClients(ForEach_Void, BleServerState) + if you need to break out of the iteration at any point.
+
+
getClients(ForEach_Breakable<String>, BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Same as BleServer.getClients(ForEach_Breakable) but will only return clients + in any of the given states provided.
+
+
getClients() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns all the clients connected or connecting (or previously so) to this server.
+
+
getClients(BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns all the clients connected or connecting (or previously so) to this server.
+
+
getClients(BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns all the clients connected or connecting (or previously so) to this server.
+
+
getClients_List() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Overload of BleServer.getClients() that returns a List for you.
+
+
getClients_List(BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Overload of BleServer.getClients(BleServerState) that returns a List for you.
+
+
getClients_List(BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Overload of BleServer.getClients(BleServerState[]) that returns a List for you.
+
+
getColumnCount() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getColumnIndex(String) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getColumnIndex() - Method in enum com.idevicesinc.sweetblue.utils.HistoricalDataColumn
+
+
Gets the name of this database column - you can use this for example to help navigate the Cursor + returned by BleNode.queryHistoricalData(String).
+
+
getColumnIndexOrThrow(String) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getColumnName(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getColumnName() - Method in enum com.idevicesinc.sweetblue.utils.HistoricalDataColumn
+
+
Gets the name of this database column - you can use this for example to do raw queries through BleNode.queryHistoricalData(String).
+
+
getColumnNames() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getConfig() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Return the BleDeviceConfig this device is set to use.
+
+
getConfigClone() - Method in class com.idevicesinc.sweetblue.BleManager
+
 
+
getConnectionPriority() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the connection priority value set by BleDevice.setConnectionPriority(BleConnectionPriority, ReadWriteListener), or BleNodeConfig.DEFAULT_MTU_SIZE if + it was never set explicitly.
+
+
getConnectionRetryCount() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the connection failure retry count during a retry loop.
+
+
getConnectionState(P_NativeDeviceLayer, int) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getCount(String, UUID, EpochTimeRange) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
getCount(String, UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
getCount(EpochTimeRange) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getCount(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getCount() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getCount() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns the numbers of rows in the cursor.
+
+
getCurrentTime() - Static method in class com.idevicesinc.sweetblue.utils.Utils_Time
+
+
Returns the current time as a byte array, useful for implementing BleServices.currentTime() for example.
+
+
getCursor(String, UUID, EpochTimeRange) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
getCursor(String, UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
getCursor(EpochTimeRange) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getCursor(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getData() - Method in interface com.idevicesinc.sweetblue.utils.FutureData
+
+
Return the data that should (for example) be sent to a peripheral through BleDevice.write(UUID, FutureData).
+
+
getData() - Method in class com.idevicesinc.sweetblue.utils.PresentData
+
+
Returns the data sent into the constructor PresentData.PresentData(byte[])
+
+
getDelta() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns the raw milliseconds between EpochTimeRange.from() and EpochTimeRange.to().
+
+
getDescription() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
getDescriptor() - Method in class com.idevicesinc.sweetblue.BleDescriptorWrapper
+
+
Returns the instance of BluetoothGattDescriptor held in this class.
+
+
getDescriptorForUUID(UUID) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
 
+
getDevice(String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Gets a known BleDeviceState.DISCOVERED device by MAC address, or BleDevice.NULL if there is no such device.
+
+
getDevice(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the first device that is in the given state, or BleDevice.NULL if no match is found.
+
+
getDevice() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Forwards BleManager.getDeviceAt(int) with index of 0.
+
+
getDevice(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the first device that matches the query, or BleDevice.NULL if no match is found.
+
+
getDevice(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the first device which returns true for BleDevice.isAny(int), or BleDevice.NULL if no such device is found.
+
+
getDevice() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Returns the device this transaction is running on.
+
+
getDevice() - Method in class com.idevicesinc.sweetblue.compat.L_Util.ScanResult
+
 
+
getDevice_next(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevice_next(BleDevice, BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevice_next(BleDevice, Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevice_previous(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevice_previous(BleDevice, BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevice_previous(BleDevice, Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDeviceAt(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDeviceCount() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the total number of devices this manager is...managing.
+
+
getDeviceCount(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the number of devices that are in the current state.
+
+
getDeviceCount(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the number of devices that match the given query.
+
+
getDeviceIndex(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getDevices(ForEach_Void<BleDevice>) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Offers a more "functional" means of iterating through the internal list of devices instead of + using BleManager.getDevices() or BleManager.getDevices_List().
+
+
getDevices(ForEach_Void<BleDevice>, BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.getDevices(ForEach_Void) but will only return devices + in the given state provided.
+
+
getDevices(ForEach_Breakable<BleDevice>) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices(ForEach_Void) + if you need to break out of the iteration at any point.
+
+
getDevices(ForEach_Breakable<BleDevice>, BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices(ForEach_Void, BleDeviceState) + if you need to break out of the iteration at any point.
+
+
getDevices() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns all the devices managed by this class.
+
+
getDevices(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.getDevice(BleDeviceState) except returns all matching devices.
+
+
getDevices(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.getDevice(Object...) except returns all matching devices.
+
+
getDevices(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.getDevices() except filters using BleDevice.isAny(int).
+
+
getDevices_bonded() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to return a Set of currently bonded devices.
+
+
getDevices_List() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices() that returns a List for you.
+
+
getDevices_List(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices(BleDeviceState) that returns a List for you.
+
+
getDevices_List(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices(Object...) that returns a List for you.
+
+
getDevices_List(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getDevices(int) that returns a List for you.
+
+
getDevices_List_sorted() - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getDevices_List_sorted(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getDevices_List_sorted(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getDevices_List_sorted(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getDevices_previouslyConnected() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the mac addresses of all devices that we know about from both current and previous + app sessions.
+
+
getDevices_sorted() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.getDevices(), but with the devices sorted using BleManagerConfig.defaultListComparator, which + by default sorts by BleDevice.getName_debug().
+
+
getDisplayType() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
 
+
getDisplayType() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
 
+
getDistance() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the approximate distance in meters based on BleDevice.getRssi() and + BleDevice.getTxPower().
+
+
getDouble(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getEffectiveWriteMtuSize() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the effective MTU size for a write.
+
+
getEpochTime() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Returns the timestamp passed into the constructor.
+
+
getEpochTime() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns the epoch time of the historical data as a long, equivalent to + HistoricalData.getEpochTime() but raw long is used for performance reasons.
+
+
getEpochTime_date() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Convenience to return the timestamp as a Date instance.
+
+
getEpochTime_dateString(DateFormat) - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Convenience to return the timestamp as a formatted string, for example pass new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").
+
+
getEpochTime_millis() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Convenience to return the epoch time as milliseconds since 1970.
+
+
getExponentValue() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
getExtras() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getFlags(BleAdvertisingPacket.Option[]) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
 
+
getFloat(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getFormat() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
 
+
getFormat() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
 
+
getFutureLocalTimeInfo() - Static method in class com.idevicesinc.sweetblue.utils.Utils_Time
+
+ +
+
getFutureTime() - Static method in class com.idevicesinc.sweetblue.utils.Utils_Time
+
+ +
+
getHandler() - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
getHandler() - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
getHistoricalData() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns the historical data at the current position.
+
+
getHistoricalData_atOffset(UUID, int) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.addHistoricalData(UUID, byte[], EpochTime) but returns the data from the chronological offset, i.e.
+
+
getHistoricalData_atOffset(UUID, EpochTimeRange, int) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.getHistoricalData_atOffset(java.util.UUID, int) but offset is relative to the time range provided.
+
+
getHistoricalData_cursor(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns a cursor capable of random access to the database-persisted historical data for this device.
+
+
getHistoricalData_cursor(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.getHistoricalData_cursor(UUID) but constrains the results to the given time range.
+
+
getHistoricalData_forEach(UUID, ForEach_Void<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Provides all historical data through the "for each" provided.
+
+
getHistoricalData_forEach(UUID, EpochTimeRange, ForEach_Void<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Provides all historical data through the "for each" provided within the range provided.
+
+
getHistoricalData_forEach(UUID, ForEach_Breakable<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Provides all historical data through the "for each" provided.
+
+
getHistoricalData_forEach(UUID, EpochTimeRange, ForEach_Breakable<HistoricalData>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Provides all historical data through the "for each" provided within the range provided.
+
+
getHistoricalData_iterator(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns an iterator that will iterate through all HistoricalData entries.
+
+
getHistoricalData_iterator(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns an iterator that will iterate through all HistoricalData entries within the range provided.
+
+
getHistoricalData_latest(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the cached data from the lastest successful read or notify received for a given uuid.
+
+
getHistoricalDataCount(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the number of historical data entries that have been logged for the device's given characteristic.
+
+
getHistoricalDataCount(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the number of historical data entries that have been logged + for the device's given characteristic within the range provided.
+
+
getHistoricalDataTableName(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the database table name for the underlying store of historical data for the given UUID.
+
+
getIndex() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getInt(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getInt(UUID) - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
+
Parses the first 8 characters of the string representations of the given UUID as an integer hex string.
+
+
getIntent(T_State) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
Returns the intention behind the state change, or State.ChangeIntent.NULL if no state + change for the given state occurred.
+
+
getIntValue(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Deprecated. 
+
+
getIterator(EpochTimeRange) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getIterator(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getLastDisconnectIntent() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
This enum gives you an indication of the last interaction with a device across app sessions or in-app BLE + BleManagerState.OFF->BleManagerState.ON cycles or undiscovery->rediscovery, which + basically means how it was last BleDeviceState.DISCONNECTED.
+
+
getLastDiscoveryTime() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
getLastLog() - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Returns the last log statement
+
+
getLastLogs(int) - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Return a List with the last count of log statements.
+
+
getLeastSignificantBits() - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
+
You shouldn't need to call this yourself, but it's left public for flexibility.
+
+
getLimit() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Returns the limit provided through BleNodeConfig.HistoricalDataLogFilter.Please.andLimitLogTo(long), or Long.MAX_VALUE if not applicable.
+
+
getListener_Advertise() - Method in class com.idevicesinc.sweetblue.BleServer
+
 
+
getListener_Discovery() - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getListener_Incoming() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the listener provided to BleServer.setListener_Incoming(IncomingListener).
+
+
getLoadState() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getLoadState() - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getLocalTimeInfo() - Static method in class com.idevicesinc.sweetblue.utils.Utils_Time
+
+
Returns the local time info as a byte array, useful for implementing BleServices.currentTime() for example.
+
+
getLogList() - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
Returns a List of log statements.
+
+
getLogList_prettyString() - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
+
This is a convenience method which calls DebugLogger.getLogList(), then runs it through Utils_String.prettyFormatLogList(List).
+
+
getLong(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getMacAddress() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getMacAddress() - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getMacAddress() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the MAC address of this device, as retrieved from the native stack or provided through BleManager.newDevice(String) (or overloads thereof).
+
+
getMacAddress() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns the MAC address of the remote BleDevice or local BleServer.
+
+
getMacAddress() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the local mac address provided by BluetoothAdapter.getAddress().
+
+
getManager() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns this endpoint's manager.
+
+
getManufacturerData() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Returns the manufacturer data
+
+
getManufacturerData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the manufacturer data, if any, parsed from BleDevice.getScanRecord().
+
+
getManufacturerData() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Get the manufacturer data from this instance.
+
+
getManufacturerId() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Returns the manufacturer Id being used
+
+
getManufacturerId() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the manufacturer id, if any, parsed from BleDevice.getScanRecord() }.
+
+
getManufacturerId() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Get the manufacturer Id from this BleScanInfo instance.
+
+
getMostSignificantBits() - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
+
You shouldn't need to call this yourself, but it's left public for flexibility.
+
+
getMtu() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the "maximum transmission unit" value set by BleDevice.setMtu(int, ReadWriteListener), or BleNodeConfig.DEFAULT_MTU_SIZE if + it was never set explicitly.
+
+
getName() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the name this BleServer is using (and will be advertised as, if applicable).
+
+
getName() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getName() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Returns the device name
+
+
getName() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
 
+
getName() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
 
+
getName_debug() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns a name useful for logging and debugging.
+
+
getName_native() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the raw, unmodified device name retrieved from the stack.
+
+
getName_normalized() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
The name retrieved from BleDevice.getName_native() can change arbitrarily, + like the last 4 of the MAC address can get appended sometimes, and spaces + might get changed to underscores or vice-versa, caps to lowercase, etc.
+
+
getName_override() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
By default returns the same value as BleDevice.getName_native().
+
+
getNative() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Provides just-in-case lower-level access to the native device instance.
+
+
getNative() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the native manager.
+
+
getNative() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Provides just-in-case lower-level access to the native server instance.
+
+
getNativeAdapter() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the native bluetooth adapter.
+
+
getNativeAdaptor() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getNativeAdvertisingCallback() - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
getNativeBleCharacteristic(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns the native characteristic for the given UUID in case you need lower-level access.
+
+
getNativeBleCharacteristic(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristic(UUID) for when you have characteristics with identical uuids under different services.
+
+
getNativeBleDescriptor(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptor(UUID, UUID, UUID) that will return the first descriptor we find + matching the given UUID.
+
+
getNativeBleDescriptor(UUID, UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns the BleDescriptorWrapper for the given UUID in case you need lower-level access.
+
+
getNativeBleDescriptor_inChar(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptor(UUID, UUID, UUID) that will return the first descriptor we find + inside the given characteristic matching the given UUID.
+
+
getNativeBleDescriptor_inService(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptor(UUID, UUID, UUID) that will return the first descriptor we find + inside the given service matching the given UUID.
+
+
getNativeBleService(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns the native service for the given UUID in case you need lower-level access.
+
+
getNativeCharacteristic(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Deprecated. + +
+
+
getNativeCharacteristic(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+ +
+
getNativeCharacteristic(UUID, UUID, DescriptorFilter) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristic(UUID, UUID) for when you have characteristics with identical uuids within the same service.
+
+
getNativeCharacteristics(ForEach_Void<BluetoothGattCharacteristic>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristics() that uses a for each construct instead of returning an iterator.
+
+
getNativeCharacteristics(ForEach_Breakable<BluetoothGattCharacteristic>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristics() that uses a for each construct instead of returning an iterator.
+
+
getNativeCharacteristics(UUID, ForEach_Void<BluetoothGattCharacteristic>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristics(UUID) that uses a for each construct instead of returning an iterator.
+
+
getNativeCharacteristics(UUID, ForEach_Breakable<BluetoothGattCharacteristic>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeCharacteristics(UUID) that uses a for each construct instead of returning an iterator.
+
+
getNativeCharacteristics() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all BluetoothGattCharacteristic instances.
+
+
getNativeCharacteristics(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Same as BleNode.getNativeCharacteristics() but you can filter on the service UUID.
+
+
getNativeCharacteristics_List() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Convenience overload of BleNode.getNativeCharacteristics() that returns a List.
+
+
getNativeCharacteristics_List(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Convenience overload of BleNode.getNativeCharacteristics(UUID) that returns a List.
+
+
getNativeCode() - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
+
Returns the analogous native code, if applicable.
+
+
getNativeDescriptor(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Deprecated. + +
+
+
getNativeDescriptor(UUID, UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+ +
+
getNativeDescriptor_inChar(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+ +
+
getNativeDescriptor_inService(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+ +
+
getNativeDescriptors() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node.
+
+
getNativeDescriptors(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given characteristic.
+
+
getNativeDescriptors(ForEach_Void<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors() using a for each construct.
+
+
getNativeDescriptors(ForEach_Breakable<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors() using a for each construct.
+
+
getNativeDescriptors(UUID, UUID, ForEach_Void<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors(UUID, UUID) using a for each construct.
+
+
getNativeDescriptors(UUID, UUID, ForEach_Breakable<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors(UUID, UUID) using a for each construct.
+
+
getNativeDescriptors_inChar(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given characteristic.
+
+
getNativeDescriptors_inChar(UUID, ForEach_Void<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors_inChar(UUID) using a for each construct.
+
+
getNativeDescriptors_inChar(UUID, ForEach_Breakable<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors_inChar(UUID) using a for each construct.
+
+
getNativeDescriptors_inChar_List(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given characteristic as a list.
+
+
getNativeDescriptors_inService(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given service.
+
+
getNativeDescriptors_inService(UUID, ForEach_Void<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors_inService(UUID) using a for each construct.
+
+
getNativeDescriptors_inService(UUID, ForEach_Breakable<BluetoothGattDescriptor>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeDescriptors_inService(UUID) using a for each construct.
+
+
getNativeDescriptors_inService_List(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given service as a list.
+
+
getNativeDescriptors_List() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node as a list.
+
+
getNativeDescriptors_List(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all descriptors on this node in the given characteristic as a list.
+
+
getNativeGatt() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
See pertinent warning for BleDevice.getNative().
+
+
getNativeLayer() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Provides just-in-case access to the abstracted server instance.
+
+
getNativeManager() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getNativeMode() - Method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleAdvertisingMode
+
+
Returns one of the static final int members of AdvertiseSettings, or -1 for BleAdvertisingSettings.BleAdvertisingMode.AUTO.
+
+
getNativeMode() - Method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleTransmissionPower
+
+
Returns one of the static final int members of AdvertiseSettings
+
+
getNativeMode() - Method in enum com.idevicesinc.sweetblue.BleConnectionPriority
+
+
Returns one of the static final int members of BleConnectionPriority whose name starts with CONNECTION_PRIORITY_.
+
+
getNativeMode() - Method in enum com.idevicesinc.sweetblue.BleScanMode
+
+
Deprecated.
+
Returns one of the static final int members of ScanSettings, or -1 for BleScanMode.AUTO.
+
+
getNativeMode() - Method in enum com.idevicesinc.sweetblue.BleScanPower
+
 
+
getNativeScanCallback() - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
getNativeServer() - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
getNativeServer() - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
getNativeService(UUID) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Deprecated. + +
+
+
getNativeServices() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns all BluetoothGattService instances.
+
+
getNativeServices(ForEach_Void<BluetoothGattService>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeServices() that uses a for each construct instead of returning an iterator.
+
+
getNativeServices(ForEach_Breakable<BluetoothGattService>) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Overload of BleNode.getNativeServices() that uses a for each construct instead of returning an iterator.
+
+
getNativeServices_List() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Convenience overload of BleNode.getNativeServices() that returns a List.
+
+
getNativeStateMask() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the actual native state mask representation of the BleDeviceState for this device.
+
+
getNativeStateMask() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the native bitwise state mask representation of BleManagerState for this device.
+
+
getNativeStatus() - Method in enum com.idevicesinc.sweetblue.BleServer.AdvertisingListener.Status
+
 
+
getNegotiatedMtuSize() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.MtuTestEvent
+
+
The MTU size that was negotiated with the peripheral.
+
+
getNext() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getNext(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getNext(Object...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getNotificationUri() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getOrigin() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
How the device was originally created, either from scanning or explicit creation.
+
+
getPosition() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getPosition() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns the current position of the cursor in the row set.
+
+
getPrevious() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getPrevious(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getPrevious(Object...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
This is going to be removed in version 3. If this is something you use a lot, please let us know at + sweetblue@idevicesinc.com.
+
+
+
getPriority() - Method in class com.idevicesinc.sweetblue.P_Task_FactoryReset
+
 
+
getRange() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
getRange() - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
getRawValue() - Method in class com.idevicesinc.sweetblue.utils.Distance
+
 
+
getRawValue() - Method in class com.idevicesinc.sweetblue.utils.Interval
+
 
+
getRawValue() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
 
+
getRawValue() - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Subclasses must implement this to return their raw double value.
+
+
getRecord() - Method in class com.idevicesinc.sweetblue.compat.L_Util.ScanResult
+
 
+
getRemedy() - Method in enum com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOh
+
+ +
+
getRemoteDevice(String) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getRetryCount() - Method in class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
 
+
getRetryCount() - Method in class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
 
+
getRssi() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the raw RSSI retrieved from when the device was discovered, + rediscovered, or when you call BleDevice.readRssi() or BleDevice.startRssiPoll(Interval).
+
+
getRssi() - Method in class com.idevicesinc.sweetblue.compat.L_Util.ScanResult
+
 
+
getRssiPercent() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Raw RSSI from BleDevice.getRssi() is a little cryptic, so this gives you a friendly 0%-100% value for signal strength.
+
+
getRunningAverage() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getRunningAverageN() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getScanInfo() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the BleScanInfo instance held by this BleDevice.
+
+
getScanRecord() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the scan record from when we discovered the device.
+
+
getServer() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.getServer(BleServer.IncomingListener) without any initial set-up parameters.
+
+
getServer(BleServer.IncomingListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns a BleServer instance.
+
+
getServer(GattDatabase) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getServer(GattDatabase, BleServer.ServiceAddListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager#getServer(IncomingListener, GattDatabase, BleServer.ServiceAddListener), with no BleServer.IncomingListener set.
+
+
getServer(BleServer.IncomingListener, GattDatabase, BleServer.ServiceAddListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns a BleServer instance.
+
+
getService() - Method in class com.idevicesinc.sweetblue.BleServiceWrapper
+
+
Returns the instance of BluetoothGattService held in this class.
+
+
getService(UUID) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
getService(UUID) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
getServiceData() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Returns a Map of 16bit service UUIDs, along with the associated byte arrays.
+
+
getServiceData() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Returns a Map of the service data in this instance.
+
+
getServiceList() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase
+
+
Return the list of BluetoothGattServices in this database.
+
+
getServiceManager() - Method in class com.idevicesinc.sweetblue.BleNode
+
 
+
getServices() - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
getServices() - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
getServiceUUIDS() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Returns a list of service UUIDs.
+
+
getShort(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getShortName() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
getSizeBits() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
getSizeBytes() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
getStage() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Returns the current BluetoothEnabler.BluetoothEnablerFilter.Stage the enabler is on
+
+
getState() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
getStateListener() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the DeviceStateListener this device currently using.
+
+
getStateMask() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the bitwise state mask representation of BleDeviceState for this device.
+
+
getStateMask() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns the abstracted bitwise state mask representation of BleManagerState for this device.
+
+
getStateMask(String) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns the bitwise state mask representation of BleServerState for the given client mac address.
+
+
getStepsCompleted() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getStepsRemaining() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getString(Activity, String) - Static method in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
getString(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getStringValue(byte[], String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
getStringValue(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
getTableName(String, UUID) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
getTableName(String, UUID) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
getTaskType() - Method in class com.idevicesinc.sweetblue.P_Task_FactoryReset
+
 
+
getThread() - Method in interface com.idevicesinc.sweetblue.P_SweetHandler
+
 
+
getTime() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Returns the total time that this transaction has been running.
+
+
getTimeElapsed() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getTimeInNativeState(BleManagerState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getTimeInState(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
If BleDevice.is(BleDeviceState) returns true for the given state (i.e.
+
+
getTimeInState(BleManagerState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
getTimeout() - Method in class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+
Returns the timeout period.
+
+
getTimeRemaining() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getTotalAverage() - Method in class com.idevicesinc.sweetblue.utils.TimeEstimator
+
 
+
getTransitoryConnectionState(int) - Static method in enum com.idevicesinc.sweetblue.BleDeviceState
+
+
A convenience for UI purposes, this returns the "highest" connection state representing + a transition from one state to another, so something with "ING" in the name (except BleDeviceState.PERFORMING_OTA).
+
+
getTransmissionPower() - Method in class com.idevicesinc.sweetblue.BleAdvertisingSettings
+
+
Returns the advertising transmission power specified with BleAdvertisingSettings.BleTransmissionPower
+
+
getTxPower() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the calibrated transmission power of the device.
+
+
getTxPower() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Gets the Tx power
+
+
getType(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
getUUID() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
 
+
getUUID() - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
 
+
getUuidBytes(UUID, BleUuid.UuidSize) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Returns a byte[] from the given UUID, the size of which is controlled by BleUuid.UuidSize.
+
+
getUuidName(String) - Method in class com.idevicesinc.sweetblue.utils.BasicUuidNameMap
+
 
+
getUuidName(String) - Method in class com.idevicesinc.sweetblue.utils.ReflectionUuidNameMap
+
 
+
getUuidName(String) - Method in interface com.idevicesinc.sweetblue.utils.UuidNameMap
+
+
Returns the name of the UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL".
+
+
getUuidName(String) - Method in class com.idevicesinc.sweetblue.utils.UuidNameMap_ListWrapper
+
 
+
getUuids() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Returns a HashSet of UUIDS that will be advertised
+
+
getWantsAllOnMoveCalls() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
GLUCOSE_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GLUCOSE_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GLUCOSE_MEASUREMENT_CONTEXT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
GLUCOSE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
go() - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery
+
 
+
go(BleNode.HistoricalDataQueryListener) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery
+
 
+
gt(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
"greater than" comparison.
+
+
gt(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"greater than" comparison.
+
+
gt(double) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"greater than" comparison.
+
+
gte(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
"greater than or equal" comparison.
+
+
gte(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"greater than or equal" comparison.
+
+
gte(double) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"greater than or equal" comparison.
+
+
GUST_FACTOR - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

H

+
+
HARDWARE_REVISION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
hasClient(BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if this server has any clients in the given state.
+
+
hasClient(BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if this server has any clients in any of the given states.
+
+
hasClients() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if this server has any connected or connecting clients (or previously so).
+
+
hasDevice(String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Shortcut for checking if BleManager.getDevice(String) returns BleDevice.NULL.
+
+
hasDevice(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
hasDevice(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if we have a device in the given state.
+
+
hasDevice(Object...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if we have a device that matches the given query.
+
+
hasDevice(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if there is any BleDevice for which BleDevice.isAny(int) with the given mask returns true.
+
+
hasDevices() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns whether we have any devices.
+
+
hashCode() - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
 
+
hashCode() - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Hashes Unit.getRawValue() to an int using Double.hashCode().
+
+
hasHistoricalData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any historical data at all for this device.
+
+
hasHistoricalData(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any historical data at all for this device within the given range.
+
+
hasHistoricalData(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any historical data for the given uuid.
+
+
hasHistoricalData(UUID[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any historical data for any of the given uuids.
+
+
hasHistoricalData(UUID, EpochTimeRange) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any historical data for the given uuid within the given range.
+
+
hasManifestPermission(Context, String) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
hasNext() - Method in class com.idevicesinc.sweetblue.BleDeviceIterator
+
 
+
hasNext() - Method in class com.idevicesinc.sweetblue.utils.EmptyIterator
+
 
+
hasNext() - Method in class com.idevicesinc.sweetblue.utils.SingleElementIterator
+
 
+
hasPermission(Context, String) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
hasUuid(UUID) - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Returns true if this advertising packet contains the uuid given.
+
+
haveMatchingIds(List<UUID>, Collection<UUID>) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
HEALTH_THERMOMETER_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEART_RATE_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEART_RATE_MAX - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEART_RATE_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEART_RATE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEAT_INDEX - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HEIGHT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
hexStringToBytes(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a hex string into a byte array
+
+
HID_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HID_INFORMATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
highestStateReached_latest() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+
The highest state reached by the latest connection attempt.
+
+
highestStateReached_total() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+
The highest state reached during the whole connection attempt cycle.
+
+
HIP_CIRCUMFERENCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HISTORICAL_DATA_LIST - Static variable in class com.idevicesinc.sweetblue.backend.Backend_Modules
+
 
+
HISTORICAL_DATABASE - Static variable in class com.idevicesinc.sweetblue.backend.Backend_Modules
+
 
+
HistoricalData - Class in com.idevicesinc.sweetblue.utils
+
+
Simple struct wrapping arbitrary blob data as a byte array along with an epoch timestamp + marking when the blob was originally created/collected.
+
+
HistoricalData(long, byte[]) - Constructor for class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
HistoricalData(EpochTime, byte[]) - Constructor for class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
HistoricalData(byte[], long) - Constructor for class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
HistoricalData(byte[], EpochTime) - Constructor for class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
HistoricalData(byte[]) - Constructor for class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
HistoricalDataColumn - Enum in com.idevicesinc.sweetblue.utils
+
+
Enumeration/abstraction of database columns used to persist HistoricalData.
+
+
HistoricalDataCursor - Interface in com.idevicesinc.sweetblue.utils
+
+
This interface defines a wrapper around a database cursor (similar to Cursor) + specific to a database representing a series of HistoricalData serializations.
+
+
historicalDataFactory - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Implement this to override the default behavior, which is simply to return an instance created with + the constructor HistoricalData.HistoricalData(byte[], com.idevicesinc.sweetblue.utils.EpochTime).
+
+
historicalDataLogFilter - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Default is an instance of BleNodeConfig.DefaultHistoricalDataLogFilter - + set an implementation here to control how/if data is logged.
+
+
HistoricalDataQuery - Class in com.idevicesinc.sweetblue.utils
+
+
Class used to construct queries for BleNode.select().
+
+
HistoricalDataQuery.Part - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_AllowsFrom - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_AllowsSelectColumn - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_ClauseColumn - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_From - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_Function - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_Select - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_SelectColumn - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQuery.Part_Where - Class in com.idevicesinc.sweetblue.utils
+
 
+
HistoricalDataQueryEvent(BleNode, UUID, Cursor, BleNode.HistoricalDataQueryListener.Status, String) - Constructor for class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
 
+
history() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+
Returns a chronologically-ordered list of all BleDevice.ConnectionFailListener.ConnectionFailEvent instances returned through + BleDevice.ConnectionFailListener.onEvent(ConnectionFailEvent) since the first call to BleDevice.connect(), + including the current instance.
+
+
history() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+
Returns a chronologically-ordered list of all BleServer.ConnectionFailListener.ConnectionFailEvent instances returned through + BleServer.ConnectionFailListener.onEvent(ConnectionFailEvent) since the first call to BleDevice.connect(), + including the current instance.
+
+
HTTP_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HTTP_ENTITY_BODY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HTTP_HEADERS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HTTP_PROXY_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HTTP_STATUS_CODE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HTTPS_SECURITY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HUMAN_INTERFACE_DEVICE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HUMIDITY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
HUNDRED - Static variable in class com.idevicesinc.sweetblue.utils.Percent
+
+
Convenience value representing 100%.
+
+
+ + + +

I

+
+
idealMinScanTime - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is BleDeviceConfig.DEFAULT_MINIMUM_SCAN_TIME seconds - Minimum amount of time in seconds that the library strives to give to a scanning operation.
+
+
idleUpdateRate - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 0.5 seconds - The rate at which the library's internal update loop ticks, after + BleManagerConfig.minTimeToIdle has elapsed.
+
+
IEE_REGULATORY_CERT_DATA_LIST - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ignore() - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+
Return this from BleManagerConfig.ScanFilter.onEvent(ScanEvent) to say no to the discovery.
+
+
ignoreIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
IMMEDIATE_ALERT_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
IMMEDIATE_TEMPERATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Immutable - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
Classes marked with this Annotation have immutable internal state, or the apparent behavior of so.
+
+
includeDeviceName() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Whether or not this advertisement includes the device name
+
+
includeOtaReadWriteTimesInAverage - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is false - BleDevice.getAverageReadTime() and BleDevice.getAverageWriteTime() can be + skewed if the peripheral you are connecting to adjusts its maximum throughput for OTA firmware updates and the like.
+
+
includesDisk(int) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
 
+
includesMemory(int) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
 
+
includeTxPowerLevel() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Whether or not this advertisement includes the Tx power level in the packet
+
+
indicate() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
INDOOR_BIKE_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
INDOOR_POSITIONING_CONFIGURATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
INDOOR_POSITIONING_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
INFINITE - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Use this special value to signify positive infinite.
+
+
infinitePauseInterval - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is BleManagerConfig.DEFAULT_SCAN_INFINITE_PAUSE_TIME - This is the amount of time SweetBlue will wait before resuming a scan.
+
+
infiniteScanInterval - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is BleManagerConfig.DEFAULT_SCAN_INFINITE_INTERVAL_TIME - When running an infinite scan, SweetBlue will pause the scan, and restart it again a short + time later, defined by BleManagerConfig.infinitePauseInterval.
+
+
init(BleManager) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
init(BleManager) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
init(Backend_HistoricalDatabase, UpdateLoop, String, UUID, String, boolean) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
init(Backend_HistoricalDatabase, UpdateLoop, String, UUID, String, boolean) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
Init() - Constructor for class com.idevicesinc.sweetblue.BleTransaction.Init
+
 
+
instant(EpochTime) - Static method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns a new instance representing an instant zero length time range.
+
+
intent() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+
Tells whether the bond was created through an explicit call through SweetBlue, or otherwise.
+
+
intentMask() - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
For each old->new bit difference, this mask will tell you if the transition was intentional.
+
+
INTERMEDIATE_CUFF_PRESSURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
INTERNET_PROTOCOL_SUPPORT_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Interval - Class in com.idevicesinc.sweetblue.utils
+
+
Used to set time-based options in BleManagerConfig and BleDeviceConfig and + for various methods and callbacks of BleManager and BleDevice.
+
+
intToBytes(int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert an int to a byte array
+
+
INVALID - Static variable in class com.idevicesinc.sweetblue.utils.Distance
+
+
Convenience value representing an invalid/impossible distance, arbitrarily chosen to be negative one meter.
+
+
INVALID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
+
A UUID instance composed of all zeros and used instead of null in various places.
+
+
INVALID_TX_POWER - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Constant for an invalid or unknown transmission power.
+
+
IRRADIANCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
is(BleDeviceState) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns whether the device is in the provided state.
+
+
is(Object...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Similar to BleDevice.is(BleDeviceState) and BleDevice.isAny(BleDeviceState...) but allows you to give a simple query + made up of BleDeviceState and Boolean pairs.
+
+
is(BleManagerState) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns whether the manager is in the provided state.
+
+
is(String, BleServerState) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if the given client is in the state provided.
+
+
isAdvertising() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Checks to see if the device is currently advertising.
+
+
isAdvertising(UUID) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Checks to see if the device is currently advertising the given UUID.
+
+
isAdvertisingSupported() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Checks to see if the device supports advertising BLE services.
+
+
isAdvertisingSupported() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Checks to see if the device supports advertising BLE services.
+
+
isAdvertisingSupportedByAndroidVersion() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Checks to see if the device is running an Android OS which supports + advertising.
+
+
isAdvertisingSupportedByAndroidVersion() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Checks to see if the device is running an Android OS which supports + advertising.
+
+
isAdvertisingSupportedByChipset() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Checks to see if the device supports advertising.
+
+
isAdvertisingSupportedByChipset() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Checks to see if the device supports advertising.
+
+
isAdvertisingSupportedByChipset(BleManager) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
+
Deprecated.
+
+
isAdvertisingSupportedByChipset(BluetoothAdapter) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
isAfterLast() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isAfterLast() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns whether the cursor is pointing to the position after the last + row.
+
+
isAll(BleDeviceState...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns whether the device is in all of the provided states.
+
+
isAll(int) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is complete bitwise overlap between the provided value and BleDevice.getStateMask().
+
+
isAll(BleManagerState...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns whether the manager is in all of the provided states.
+
+
isAll(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if there is complete bitwise overlap between the provided value and BleManager.getStateMask().
+
+
isAll(String, int) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if there is complete bitwise overlap between the provided value and BleServer.getStateMask(String).
+
+
isAny(BleDeviceState...) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns whether the device is in any of the provided states.
+
+
isAny(int) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if there is any bitwise overlap between the provided value and BleDevice.getStateMask().
+
+
isAny(BleManagerState...) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns whether the manager is in any of the provided states.
+
+
isAny(int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if there is partial bitwise overlap between the provided value and BleManager.getStateMask().
+
+
isAny(String, int) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if there is any bitwise overlap between the provided value and BleServer.getStateMask(String).
+
+
isAny(String, BleServerState...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Returns true if the given client is in any of the states provided.
+
+
isBeforeFirst() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isBeforeFirst() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns whether the cursor is pointing to the position before the first + row.
+
+
isBetween_inclusive(EpochTime, EpochTime) - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Does an inclusive check for this being in the given range.
+
+
isBetween_inclusive(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+ +
+
isBleSupported() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Checks the underlying stack to see if BLE is supported on the phone.
+
+
isBluetoothEnabled() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isCancelled() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Status
+
 
+
isClosed() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isClosed() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
return true if the cursor is closed
+
+
isConnectable() - Method in class com.idevicesinc.sweetblue.BleAdvertisingPacket
+
+
Whether or not this advertisement is connectable
+
+
isConnectable() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience method to tell you whether a call to BleDevice.connect() (or overloads) has a chance of succeeding.
+
+
isDeviceSpecific() - Method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns whether this is associated with a BleDevice.
+
+
isDirect() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns whether this bond attempt was from a direct bond call, from calling BleDevice.bond(BleDevice.BondListener), or + BleDevice.bond().
+
+
isDisabled(Interval) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns true if the given Interval is either null + or its value is less than or equal to zero.
+
+
isDisabled(Double) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+ +
+
isDone() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
 
+
isDone() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
 
+
isEnabled(BluetoothEnabler.BluetoothEnablerFilter.Stage) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns whether the passed BluetoothEnabler.BluetoothEnablerFilter.Stage is enabled.
+
+
isEnabled(BluetoothEnabler.BluetoothEnablerFilter.Stage) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Returns whether the passed BluetoothEnabler.BluetoothEnablerFilter.Stage has been enabled.
+
+
isEnabled(Interval) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns true if the given Interval is not null + and its value is greater than zero.
+
+
isEnabled(double) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+ +
+
isFirst() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isFirst() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns whether the cursor is pointing to the first row.
+
+
isFor(UUID) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
Returns true if this event is associated with the given uuid.
+
+
isFor(UUID[]) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
Returns true if this event is associated with any of the given uuids.
+
+
isFor(String) - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
 
+
isFor(UUID) - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
 
+
isFor(Object) - Method in class com.idevicesinc.sweetblue.utils.Event
+
+
More reader-friendly of Event.isForAll(Object...) or Event.isForAny(Object...) in the event you only have one parameter to match.
+
+
isFor(T_State) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+ +
+
isForAll(Object...) - Method in class com.idevicesinc.sweetblue.utils.Event
+
+
Convenience query method to check if this event "is for"/relevant-to all of the supplied values.
+
+
isForAll(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+ +
+
isForAny(Object...) - Method in class com.idevicesinc.sweetblue.utils.Event
+
+
Convenience query method to check if this event "is for"/relevant-to any of the supplied values.
+
+
isForAny(T_State...) - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+ +
+
isForegrounded() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns this manager's knowledge of the app's foreground state.
+
+
isHistoricalDataLoaded() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if the historical data for all historical data for + this device is loaded into memory.
+
+
isHistoricalDataLoaded(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if the historical data for a given uuid is loaded into memory.
+
+
isHistoricalDataLoading() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns whether the device is currently loading any historical data to memory, either through + BleDevice.loadHistoricalData() (or overloads) or BleDevice.getHistoricalData_iterator(UUID) (or overloads).
+
+
isHistoricalDataLoading(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns whether the device is currently loading any historical data to memory for the given uuid, either through + BleDevice.loadHistoricalData() (or overloads) or BleDevice.getHistoricalData_iterator(UUID) (or overloads).
+
+
isInvalid() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns true if EpochTimeRange.from() is greater than EpochTimeRange.to().
+
+
isInvalidOrZero() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+ +
+
isKitKat() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isLast() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Stage
+
 
+
isLast() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isLast() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Returns whether the cursor is pointing to the last row.
+
+
isLocationEnabledForScanning() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if location is enabled to a degree that allows scanning on Build.VERSION_CODES.M and above.
+
+
isLocationEnabledForScanning() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isLocationEnabledForScanning(Context) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isLocationEnabledForScanning_byManifestPermissions() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if you're either pre-Android-M, or app has permission for either Manifest.permission.ACCESS_COARSE_LOCATION + or Manifest.permission.ACCESS_FINE_LOCATION in your AndroidManifest.xml, false otherwise.
+
+
isLocationEnabledForScanning_byManifestPermissions(Context) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isLocationEnabledForScanning_byOsServices() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if you're either pre-Android-M, or location services are enabled, the same is if you go to the Android Settings app + and manually toggle Location ON/OFF.
+
+
isLocationEnabledForScanning_byOsServices() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isLocationEnabledForScanning_byOsServices(Context) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
+
Adapted from http://stackoverflow.com/a/22980843/4248895.
+
+
isLocationEnabledForScanning_byRuntimePermissions() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if you're either pre-Android-M, or app has runtime permissions enabled by checking + * + See more information at https://developer.android.com/training/permissions/index.html.
+
+
isLocationEnabledForScanning_byRuntimePermissions() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isLocationEnabledForScanning_byRuntimePermissions(Context) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isLocationRelated() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Stage
+
 
+
isLollipop() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isLollipopScanMode() - Method in enum com.idevicesinc.sweetblue.BleScanMode
+
+
Deprecated.
+
+
isLongTerm() - Method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+ +
+
isManagerNull() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isManagerSpecific() - Method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns whether this is associated with BleManager.
+
+
isManufacturer(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isMarshmallow() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isMultipleAdvertisementSupported() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
isNativeNotification() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+ +
+
isNativeNotification() - Method in enum com.idevicesinc.sweetblue.NotificationListener.Type
+
+ +
+
isNotification() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
isNotification() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+ +
+
isNotificationOrIndication() - Method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Type
+
+ +
+
isNotifyEnabled(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if notifications are enabled for the given uuid.
+
+
isNotifyEnabling(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if SweetBlue is in the process of enabling notifications for the given uuid.
+
+
isNougat() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDevice.BondListener.Status
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+
Returns whether this BleDevice.ConnectionFailListener.ConnectionFailEvent instance is a "dummy" value.
+
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns true if this is referentially equal to BleDevice.NULL.
+
+
isNull() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Status
+
+
Deprecated.
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Target
+
+
Deprecated.
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.Status
+
+ +
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.Status
+
+ +
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Source
+
+ +
+
isNull() - Method in class com.idevicesinc.sweetblue.BleServer.AdvertisingListener.AdvertisingEvent
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleServer.AdvertisingListener.Status
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+
Returns whether this BleServer.ConnectionFailListener.ConnectionFailEvent instance is a "dummy" value.
+
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleServer
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+
Will return true in certain early-out cases when there is no issue and the response can continue.
+
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleServer.OutgoingListener.Status
+
+ +
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleServer.ServiceAddListener.Status
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
isNull() - Method in enum com.idevicesinc.sweetblue.NotificationListener.Status
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.NotificationListener.Type
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Returns true if this instance is considered null.
+
+
isNull() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Stage
+
 
+
isNull() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Status
+
+ +
+
isNull(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
isNull() - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Returns true if this is referentially equal to EpochTime.NULL.
+
+
isNull() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns true if this is referentially equal to EpochTimeRange.NULL.
+
+
isNull() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Checks if this is referentially equal to HistoricalData.NULL.
+
+
isNull() - Method in interface com.idevicesinc.sweetblue.utils.State
+
+
Returns true if this state is meant to stand in for Java's built-in null.
+
+
isNull() - Method in interface com.idevicesinc.sweetblue.utils.UsesCustomNull
+
+
Returns true if the object's state represents what would otherwise be Java's built-in null.
+
+
isOnMainThread() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isPerformingSystemCall() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
 
+
isProduct(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isRead() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
isRead() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+ +
+
isRead() - Method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Type
+
+
Shorthand for checking if this equals BleServer.ExchangeListener.Type.READ.
+
+
isRetry() - Method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+
Returns true for everything except BleNode.ConnectionFailListener.Please.doNotRetry().
+
+
isRunning() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Returns whether the transaction is currently running.
+
+
isRunning() - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
isRunning() - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
isScanning() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method which reports true if the BleManager is in any of the following states:

+ BleManagerState.SCANNING, BleManagerState.SCANNING_PAUSED, BleManagerState.BOOST_SCANNING, or BleManagerState.STARTING_SCAN
+
+
isScanningReady() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Tells you whether a call to BleManager.startScan() (or overloads), will succeed or not.
+
+
isServerNull() - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
isServerNull() - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
isServerSpecific() - Method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns whether this is associated with a BleServer.
+
+
isShortName() - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Returns whether the name is a shortened version or not.
+
+
isShortTerm() - Method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+ +
+
isShouldContinue() - Method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+ +
+
isShouldTryAgain() - Method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+ +
+
isSuccess(int) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
 
+
isValid() - Method in class com.idevicesinc.sweetblue.utils.Distance
+
+
Returns true if Distance.meters() is >= 0.
+
+
isValid() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns true if EpochTimeRange.from() is less than or equal to EpochTimeRange.to().
+
+
isWrite() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
isWrite() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+ +
+
isWrite() - Method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Type
+
+ +
+
isZero() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns true if EpochTimeRange.from() and EpochTimeRange.to() are equal.
+
+
+ + + +

K

+
+
K_Util - Class in com.idevicesinc.sweetblue.compat
+
 
+
+ + + +

L

+
+
L_Util - Class in com.idevicesinc.sweetblue.compat
+
 
+
L_Util.AdvertisingCallback - Interface in com.idevicesinc.sweetblue.compat
+
 
+
L_Util.ScanCallback - Interface in com.idevicesinc.sweetblue.compat
+
 
+
L_Util.ScanResult - Class in com.idevicesinc.sweetblue.compat
+
 
+
Lambda - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
Used to denote interface declarations whose implementations can essentially act like lambdas (i.e.
+
+
LANGUAGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LAST_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
lastDisconnectIntent() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+ +
+
LATITUDE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
length() - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Returns the current length of the buffer
+
+
level(int) - Static method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
 
+
lifeCycle() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+
The discovery BleManager.DiscoveryListener.LifeCycle that the device has undergone.
+
+
LINK_LOSS_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LN_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LN_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
load(String, UUID, EpochTimeRange, ForEach_Void<HistoricalData>) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
load(String, UUID, EpochTimeRange, ForEach_Void<HistoricalData>) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
load(Backend_HistoricalDataList.AsyncLoadCallback) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
load(Backend_HistoricalDataList.AsyncLoadCallback) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList_Default
+
 
+
LOAD_STATE__LOADED - Static variable in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
LOAD_STATE__LOADING - Static variable in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
LOAD_STATE__NOT_LOADED - Static variable in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList
+
 
+
loadHistoricalData() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Loads all historical data to memory for this device.
+
+
loadHistoricalData(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Loads all historical data to memory for this device for the given UUID.
+
+
loadHistoricalData(BleNode.HistoricalDataLoadListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Loads all historical data to memory for this device with a callback for when it's complete.
+
+
loadHistoricalData(UUID, BleNode.HistoricalDataLoadListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Loads all historical data to memory for this device for the given UUID.
+
+
LOCAL_EAST_COORDINATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCAL_NORTH_COORDINATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCAL_TIME_INFORMATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCATION_AND_NAVIGATION_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCATION_AND_SPEED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCATION_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
LOCATION_PERMISSION_TOAST - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
LOCATION_SERVICES_NEEDS_ENABLING - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
LOCATION_SERVICES_TOAST - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
logger - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is DefaultLogger - which prints the log statements to Android's logcat.
+
+
loggingEnabled - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is false - basically only useful for developers working on the library itself.
+
+
logToDisk() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Will log the data to disk only, currently through SQLite.
+
+
logToMemory() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+
Will log the data to current app memory only.
+
+
logToMemoryAndDisk() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Please
+
+ +
+
LONG_TERM_ATTEMPT_RATE - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
LONG_TERM_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
LONGITUDE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
longToBytes(long) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a long to a byte array
+
+
lt(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
"less than" comparison.
+
+
lt(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"less than" comparison.
+
+
lt(double) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"less than" comparison.
+
+
lte(EpochTimeRange) - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
"less than or equal" comparison.
+
+
lte(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"less than or equal" comparison.
+
+
lte(double) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
"less than or equal" comparison.
+
+
+ + + +

M

+
+
m_query - Variable in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part
+
 
+
M_Util - Class in com.idevicesinc.sweetblue.compat
+
 
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+
Convience to return the mac address of BleDevice.BondListener.BondEvent.device().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Convience to return the mac address of BleDevice.ReadWriteListener.ReadWriteEvent.device().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleDevice.StateListener.StateEvent
+
+
Deprecated.
+
Convience to return the mac address of BleDevice.StateListener.StateEvent.device().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEvent
+
+
Convience to return the mac address of BleDeviceConfig.BondFilter.CharacteristicEvent.device().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+
Convience to return the mac address of BleManager.DiscoveryListener.DiscoveryEvent.device().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Returns the mac address of the discovered device.
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
+
The mac address that the data is being queried for.
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
The device or server client in question.
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
Convience to return the mac address of BleNodeConfig.ReconnectFilter.ReconnectEvent.device() or the client being reconnected to the BleNodeConfig.ReconnectFilter.ReconnectEvent.server().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+ +
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+
Returns the mac address of the client that's undergoing the state change with this BleServer.ConnectionFailListener.ConnectionFailEvent.server().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
Returns the mac address of the client peripheral that we are exchanging data with.
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.BleServer.StateListener.StateEvent
+
+
Returns the mac address of the client that's undergoing the state change with this BleServer.StateListener.StateEvent.server().
+
+
macAddress() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Convience to return the mac address of NotificationListener.NotificationEvent.device().
+
+
MAGNETIC_DECLINATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
MAGNETIC_FLUX_DENSITY_2D - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
MAGNETIC_FLUX_DENSITY_3D - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
makeStateString(State[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
makeString(Object...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
manageCpuWakeLock - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - requires the Manifest.permission.WAKE_LOCK permission in your app's manifest file.
+
+
manageLastDisconnectOnDisk - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - controls whether the State.ChangeIntent behind a device going BleDeviceState.DISCONNECTED + is saved to and loaded from disk so that it can be restored across app sessions, undiscoveries, and BLE + BleManagerState.OFF->BleManagerState.ON cycles.
+
+
manageLastUhOhOnDisk - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - This allows SweetBlue to store the last Uh Oh time to disk.
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleManager.AssertListener.AssertEvent
+
+
The BleManager instance for your application.
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+
The BleManager which is currently BleManagerState.SCANNING.
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleManager.ResetListener.ResetEvent
+
+
The BleManager the reset was applied to.
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleManager.StateListener.StateEvent
+
+
Deprecated.
+
The singleton manager undergoing the state change.
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOhEvent
+
+
The manager associated with the BleManager.UhOhListener.UhOhEvent
+
+
manager() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+
Returns the manager.
+
+
ManagerStateListener - Interface in com.idevicesinc.sweetblue
+
+
Provide an implementation to BleManager.setListener_State(ManagerStateListener) to receive callbacks + when the BleManager undergoes a BleManagerState change.
+
+
MANUFACTURER_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
manufacturerCombinedData() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Returns the manufacturer-specific data, if any, parsed from BleManagerConfig.ScanFilter.ScanEvent.scanRecord().
+
+
manufacturerData() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
 
+
manufacturerId() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
 
+
MAX - Static variable in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Convenience instance using Long.MAX_VALUE.
+
+
max(HistoricalDataColumn) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsSelectColumn
+
 
+
MAX_RETRY_TIME_FOR_BOND_FAILURE - Static variable in class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
+
The maximum amount of time to keep trying if connection is failing due to (what usually are) transient bonding failures
+
+
MAX_RETRY_TIME_FOR_BOND_FAILURE - Static variable in class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
+
The maximum amount of time to keep trying if connection is failing due to (what usually are) transient bonding failures
+
+
maxConnectionFailHistorySize - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE - This sets the size of the list that tracks the history + of BleNode.ConnectionFailListener.ConnectionFailEvents.
+
+
MAXIMUM_RECOMMENDED_HEART_RATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
MEASUREMENT_INTERVAL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
memcmp(byte[], byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Compare two byte arrays.
+
+
memcpy(byte[], byte[], int, int, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Copy from one byte array to another, with the given size, and offsets
+
+
memcpy(byte[], byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Copy from one byte array to another with the given size
+
+
memset(byte[], byte, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Set a value to size indexes in the given byte array
+
+
memset(byte[], byte, int, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Set a value to size indexes in the given byte array starting at the given offset
+
+
message() - Method in class com.idevicesinc.sweetblue.BleManager.AssertListener.AssertEvent
+
+
Message associated with the assert, or an empty string.
+
+
meters() - Method in class com.idevicesinc.sweetblue.utils.Distance
+
+
Returns the value of this distance in meters.
+
+
meters(double) - Static method in class com.idevicesinc.sweetblue.utils.Distance
+
+
Creates a new value in meters.
+
+
millis() - Method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns the value of this interval in milliseconds.
+
+
millis(long) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns a new Interval representing the given number of milliseconds.
+
+
MIN - Static variable in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Convenience instance using Long.MIN_VALUE.
+
+
min(HistoricalDataColumn) - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery.Part_AllowsSelectColumn
+
 
+
mins(int) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns a new Interval representing the given number of minutes.
+
+
minScanTimeNeededForUndiscovery - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_MINIMUM_SCAN_TIME seconds - Undiscovery of devices must be + approximated by checking when the last time was that we discovered a device, + and if this time is greater than BleDeviceConfig.undiscoveryKeepAlive then the device is undiscovered.
+
+
minTimeToIdle - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 20.0 seconds - This is the amount of time the library will wait with no tasks before + lowering the update loop tick to BleManagerConfig.idleUpdateRate.
+
+
minus(EpochTime) - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Returns the delta resulting from this-epochTime.
+
+
minus(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Returns a new instance that is the result of doing this - other.
+
+
MODEL_NUMBER - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
move(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
move(int) - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor by a relative amount, forward or backward, from the + current position.
+
+
moveToFirst() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
moveToFirst() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor to the first row.
+
+
moveToLast() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
moveToLast() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor to the last row.
+
+
moveToNext() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
moveToNext() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor to the next row.
+
+
moveToPosition(int) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
moveToPosition(int) - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor to an absolute position.
+
+
moveToPrevious() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
moveToPrevious() - Method in interface com.idevicesinc.sweetblue.utils.HistoricalDataCursor
+
+
Move the cursor to the previous row.
+
+
mtu() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
This value gets set as a result of a BleDevice.setMtu(int, ReadWriteListener) call.
+
+
mtuTestCallback - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is null - This callback is used after calling BleDevice.setMtu(int, ReadWriteListener) or BleDevice.setMtu(int), if the + negotiation was successful, and provides a way to know if the test failed/succeeded.
+
+
MtuTestCallback - Interface in com.idevicesinc.sweetblue
+
+
Callback used to test out an MTU size adjustment.
+
+
MtuTestCallback.MtuTestEvent - Class in com.idevicesinc.sweetblue
+
+
Class passed in to MtuTestCallback.onTestRequest(MtuTestEvent) when an MTU has been successfully negotiated to see if SweetBlue should now test it to make + sure it works as it's supposed to.
+
+
MtuTestCallback.Please - Class in com.idevicesinc.sweetblue
+
+
Please class used to tell SweetBlue if it should test the new MTU size, and if so, which service uuid, and char uuid to use, and the data to write (the data + should be the size of the MTU size requested to properly test).
+
+
MtuTestCallback.TestResult - Class in com.idevicesinc.sweetblue
+
+
Enumeration reporting the result of an MTU test.
+
+
+ + + +

N

+
+
name() - Method in interface com.idevicesinc.sweetblue.utils.BitwiseEnum
+
+
Same as Enum.name().
+
+
name_native() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
The unaltered device name retrieved from the native bluetooth stack.
+
+
name_normalized() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
See BleDevice.getName_normalized() for an explanation.
+
+
nativeDevice() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
nativeDevice() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
Returns the native bluetooth device object representing the client making the request.
+
+
nativeInstance() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Other parameters are probably enough to make a decision but this native instance is provided just in case.
+
+
NAVIGATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
needsAtomicity() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Default is Boolean.FALSE.
+
+
NEW_ALERT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
newAnonThreadLoop() - Method in class com.idevicesinc.sweetblue.PI_UpdateLoop.DefaultUpdateLoopFactory
+
 
+
newAnonThreadLoop(PI_UpdateLoop.Callback) - Method in class com.idevicesinc.sweetblue.PI_UpdateLoop.DefaultUpdateLoopFactory
+
 
+
newAnonThreadLoop() - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop.IUpdateLoopFactory
+
 
+
newAnonThreadLoop(PI_UpdateLoop.Callback) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop.IUpdateLoopFactory
+
 
+
newAnonThreadLoop(PI_UpdateLoop.Callback) - Static method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
newAnonThreadLoop() - Static method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
newAuthTxn() - Method in interface com.idevicesinc.sweetblue.BleDeviceConfig.AuthTransactionFactory
+
 
+
newCharacteristic(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+ +
+
newDescriptor(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+ +
+
newDevice(String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.newDevice(String, String, BleDeviceConfig) but uses an empty string for the name + and passes a null BleDeviceConfig, which results in inherited options from BleManagerConfig.
+
+
newDevice(String, String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.newDevice(String) but allows a custom name also.
+
+
newDevice(String, BleDeviceConfig) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.newDevice(String) but passes a BleDeviceConfig to be used as well.
+
+
newDevice(String, String, BleDeviceConfig) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Creates a new BleDevice or returns an existing one if the macAddress matches.
+
+
newHistoricalData(byte[], EpochTime) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns a new HistoricalData instance using + BleNodeConfig.historicalDataFactory if available.
+
+
newHistoricalData(byte[], EpochTime, String) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.newHistoricalData(byte[], EpochTime) but tries to use + BleNode.newHistoricalData(byte[], EpochTime) if we have a device + matching the given mac address.
+
+
newHistoricalData(byte[], EpochTime) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Returns a new HistoricalData instance using + BleNodeConfig.historicalDataFactory if available.
+
+
newHistoricalData(byte[], EpochTime) - Method in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataFactory
+
+
Return a new subclass of HistoricalData that for example implements a custom interface + for another library that handles graphing or analytics.
+
+
newInitTxn() - Method in interface com.idevicesinc.sweetblue.BleDeviceConfig.InitTransactionFactory
+
 
+
newInstance(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidDeviceLayerFactory
+
 
+
newInstance(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidGattLayerFactory
+
 
+
newInstance(double) - Method in class com.idevicesinc.sweetblue.utils.Distance
+
 
+
newInstance(double) - Method in class com.idevicesinc.sweetblue.utils.Interval
+
 
+
newInstance(double) - Method in class com.idevicesinc.sweetblue.utils.Percent
+
 
+
newInstance(double) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Subclasses must override this so that arithmetic "operators" can create new instances.
+
+
newMainThreadLoop(PI_UpdateLoop.Callback) - Method in class com.idevicesinc.sweetblue.PI_UpdateLoop.DefaultUpdateLoopFactory
+
 
+
newMainThreadLoop(PI_UpdateLoop.Callback) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop.IUpdateLoopFactory
+
 
+
newMainThreadLoop(PI_UpdateLoop.Callback) - Static method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
newNulled() - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Convenience method that returns a nulled out BleDeviceConfig, which is useful + when using BleDevice.setConfig(BleDeviceConfig) to only override a few options + from BleManagerConfig passed to BleManager.get(Context, BleManagerConfig) + or BleManager.setConfig(BleManagerConfig).
+
+
newNulled() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Convenience method that returns a nulled out BleNodeConfig, which is useful + when using BleServer.setConfig(BleNodeConfig) to only override a few options + from BleManagerConfig passed to BleManager.get(Context, BleManagerConfig) + or BleManager.setConfig(BleManagerConfig).
+
+
newScanRecord(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given name (the record will only contain the name you provide here).
+
+
newScanRecord(String, UUID) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given name, and serviceUuid.
+
+
newScanRecord(String, UUID, byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given name, serviceUuid, and serviceData.
+
+
newScanRecord(String, UUID, byte[], Short, byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given name, serviceUuid, serviceData, manufacturerId, and manufacturerData
+
+
newScanRecord(Byte, Map<BleUuid, byte[]>, String, boolean, Byte, Short, byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given advertising flags, serviceUuid, serviceData, device name, txPower level, manufacturerID, and manufacturerData
+
+
newScanRecord(Byte, Map<BleUuid, byte[]>, boolean, String, boolean, Byte, Short, byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Create the byte[] scanRecord from the given advertising flags, serviceUuid, serviceData, device name, txPower level, manufacturerID, and manufacturerData
+
+
newService(UUID) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
+
+
Complete this service, and create a new one to be entered into the database.
+
+
newServiceManager() - Method in class com.idevicesinc.sweetblue.BleDevice
+
 
+
newServiceManager() - Method in class com.idevicesinc.sweetblue.BleNode
+
 
+
newServiceManager() - Method in class com.idevicesinc.sweetblue.BleServer
+
 
+
newStateBits() - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
The new and now current bitwise representation of a BleDevice + or BleManager.
+
+
newWithLogging() - Static method in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Returns a new constructor that populates BleManagerConfig.uuidNameMaps with Uuids + using ReflectionUuidNameMap to help with readable logging.
+
+
next() - Method in class com.idevicesinc.sweetblue.BleDeviceIterator
+
 
+
next() - Static method in class com.idevicesinc.sweetblue.BleWriteTransaction.FailListener.Please
+
+
Tells the transaction to proceed to the next write in the queue, and ignore the one that failed.
+
+
next() - Method in class com.idevicesinc.sweetblue.utils.EmptyIterator
+
 
+
next(T) - Method in interface com.idevicesinc.sweetblue.utils.ForEach_Breakable
+
 
+
next(int) - Method in interface com.idevicesinc.sweetblue.utils.ForEach_Returning
+
 
+
next(T) - Method in interface com.idevicesinc.sweetblue.utils.ForEach_Void
+
 
+
next() - Method in class com.idevicesinc.sweetblue.utils.SingleElementIterator
+
 
+
NEXT_DST_CHANGE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
nextStage() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the BluetoothEnabler.BluetoothEnablerFilter.Stage following the Stage for this event.
+
+
nForAverageRunningReadTime - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+ +
+
nForAverageRunningWriteTime - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_RUNNING_AVERAGE_N - The number of historical write times that the library should keep track of when calculating average time.
+
+
node() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
The node that is currently trying to reconnect.
+
+
node() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
The node that is currently trying to reconnect.
+
+
NON_APPLICABLE_REQUEST_ID - Static variable in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+ +
+
NON_APPLICABLE_UUID - Static variable in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
NON_APPLICABLE_UUID - Static variable in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+ +
+
NON_APPLICABLE_UUID - Static variable in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Value used in place of null.
+
+
normalizeDeviceName(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
normalizeMacAddress(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
normalizeMacAddress_replaceDelimiters(String) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
NotificationListener - Interface in com.idevicesinc.sweetblue
+
+
Convenience interface for listening for Notifications/Indications only.
+
+
NotificationListener.NotificationEvent - Class in com.idevicesinc.sweetblue
+
+
Provides a bunch of information about a notification.
+
+
NotificationListener.Status - Enum in com.idevicesinc.sweetblue
+
+
A value returned to GenericListener_Void.onEvent(Event) + by way of NotificationListener.NotificationEvent.status() that indicates success of the + operation or the reason for its failure.
+
+
NotificationListener.Type - Enum in com.idevicesinc.sweetblue
+
+
The type of operation for a BleDevice.ReadWriteListener.ReadWriteEvent - read, write, poll, etc.
+
+
notify_prop() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
notifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, boolean) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
notifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, boolean) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
now() - Static method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Simply a more readable version of the default constructor EpochTime.EpochTime().
+
+
nukeBle() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Similar to BleManager.reset(), only this also calls the factoryReset method hidden in BluetoothAdapter after turning + off BLE, and running the crash resolver.
+
+
nukeBle(BleManager.ResetListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Similar to BleManager.reset(ResetListener), only this also calls the factoryReset method hidden in BluetoothAdapter after turning + off BLE, and running the crash resolver.
+
+
NULL - Static variable in class com.idevicesinc.sweetblue.BleCharacteristicWrapper
+
 
+
NULL - Static variable in class com.idevicesinc.sweetblue.BleDescriptorWrapper
+
 
+
NULL - Static variable in class com.idevicesinc.sweetblue.BleDevice
+
+
Special value that is used in place of Java's built-in null.
+
+
NULL - Static variable in class com.idevicesinc.sweetblue.BleServer
+
+
Special value that is used in place of Java's built-in null.
+
+
NULL - Static variable in class com.idevicesinc.sweetblue.BleServiceWrapper
+
 
+
NULL - Static variable in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
 
+
NULL - Static variable in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Fulfills the soft contract of UsesCustomNull - used for EpochTime.isNull().
+
+
NULL - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Fulfills the soft contract of UsesCustomNull - used for EpochTimeRange.isNull().
+
+
NULL - Static variable in class com.idevicesinc.sweetblue.utils.HistoricalData
+
+
Special value that replaces Java's built-int null and + is used everywhere Java's would otherwise be used.
+
+
Nullable - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
This annotation is used to tag methods and parameters to give extra information + on how they handle null.
+
+
Nullable.Prevalence - Enum in com.idevicesinc.sweetblue.annotations
+
+
Generally used for ElementType.METHOD to hint at how often it should return null.
+
+
nullOut() - Method in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Sets all Nullable options in BleNodeConfig, BleDeviceConfig, BleManagerConfig to null + so for example it's easier to cherry-pick just a few options to override from BleManagerConfig when using BleDevice.setConfig(BleDeviceConfig).
+
+
nullOut(T, Class<? extends T>) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Reflection
+
 
+
NUMBER_OF_DIGITALS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

O

+
+
OBJECT_ACTION_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_CHANGED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_FIRST_CREATED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_ID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_LAST_MODIFIED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_LIST_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_LIST_FILTER - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_NAME - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_PROPERTIES - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_SIZE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_TRANSFER_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
OBJECT_TYPE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
objectToByteArray(Object) - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
objectToJSON(Object) - Static method in class com.idevicesinc.sweetblue.utils.P_JSONUtil
+
 
+
offset() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The offset forwarded from the native stack.
+
+
OK - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
oldStateBits() - Method in class com.idevicesinc.sweetblue.utils.State.ChangeEvent
+
+
The bitwise representation of the BleDevice or BleManager + before the event took place.
+
+
onActivityOrPermissionResult(int) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
A potentially-required method to be placed in your activity's Activity.onRequestPermissionsResult(int, String[], int[]) and Activity.onActivityResult(int, int, Intent) methods.
+
+
onActivityOrPermissionResult_static(int) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Static equivalent of BluetoothEnabler.onActivityOrPermissionResult(int) that you can use to call down into the + singleton created by BluetoothEnabler.start(Activity, BluetoothEnablerFilter) (or overloads).
+
+
onBatchScanResults(List<L_Util.ScanResult>) - Method in interface com.idevicesinc.sweetblue.compat.L_Util.ScanCallback
+
 
+
onDone() - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDataList.AsyncLoadCallback
+
 
+
ONE_SEC - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Convenience value representing one second.
+
+
onEnd(BleDevice, BleTransaction.EndReason) - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Called when a transaction ends, either due to the transaction itself finishing itself + through BleTransaction.fail() or BleTransaction.succeed(), or from the library implicitly ending + the transaction, for example if BleTransaction.getDevice() becomes BleDeviceState.DISCONNECTED.
+
+
onEvent(BleDevice.BondListener.BondEvent) - Method in interface com.idevicesinc.sweetblue.BleDevice.BondListener
+
+
Called after a call to BleDevice.bond(BondListener) (or overloads), + or when bonding through another app or the operating system settings.
+
+
onEvent(BleDevice.ConnectionFailListener.ConnectionFailEvent) - Method in interface com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener
+
+
Return value is ignored if device is either BleDeviceState.RECONNECTING_LONG_TERM or reason + BleDevice.ConnectionFailListener.Status.allowsRetry() is false.
+
+
onEvent(BleDevice.ConnectionFailListener.ConnectionFailEvent) - Method in class com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener
+
 
+
onEvent(BleDevice.StateListener.StateEvent) - Method in interface com.idevicesinc.sweetblue.BleDevice.StateListener
+
+
Deprecated.
+
Called when a device's bitwise BleDeviceState changes.
+
+
onEvent(BleDeviceConfig.BondFilter.StateChangeEvent) - Method in interface com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter
+
+
Called after a device undergoes a change in its BleDeviceState.
+
+
onEvent(BleDeviceConfig.BondFilter.CharacteristicEvent) - Method in interface com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter
+
+
Called immediately before reading, writing, or enabling notification on a characteristic.
+
+
onEvent(BleDeviceConfig.BondFilter.StateChangeEvent) - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.DefaultBondFilter
+
 
+
onEvent(BleDeviceConfig.BondFilter.CharacteristicEvent) - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.DefaultBondFilter
+
 
+
onEvent(BleManager.AssertListener.AssertEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.AssertListener
+
+
Provides additional info about the circumstances surrounding the assert.
+
+
onEvent(BleManager.DiscoveryListener.DiscoveryEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.DiscoveryListener
+
+
Called when the discovery lifecycle of a device is updated.
+
+
onEvent(BleManager.NativeStateListener.NativeStateEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.NativeStateListener
+
+
Deprecated.
+
Called when the manager's native bitwise BleManagerState changes.
+
+
onEvent(BleManager.ResetListener.ResetEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.ResetListener
+
+
The reset event, for now only fired when the reset is completed.
+
+
onEvent(BleManager.StateListener.StateEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.StateListener
+
+
Deprecated.
+
Called when the manager's abstracted BleManagerState changes.
+
+
onEvent(BleManager.UhOhListener.UhOhEvent) - Method in interface com.idevicesinc.sweetblue.BleManager.UhOhListener
+
+
Run for the hills.
+
+
onEvent(BleManagerConfig.ScanFilter.ScanEvent) - Method in class com.idevicesinc.sweetblue.BleManagerConfig.DefaultScanFilter
+
+
Acknowledges the discovery if there's an overlap between the given advertisedServices + and the Collection passed into the constructor of BleManagerConfig.DefaultScanFilter.
+
+
onEvent(BleManagerConfig.ScanFilter.ScanEvent) - Method in interface com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter
+
+ +
+
onEvent(BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent) - Method in interface com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener
+
+
Called when the historical data for a given characteristic UUID is done loading from disk.
+
+
onEvent(BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent) - Method in interface com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener
+
+
Called when the historical data for a given characteristic UUID is done querying.
+
+
onEvent(BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultHistoricalDataLogFilter
+
 
+
onEvent(BleNodeConfig.ReconnectFilter.ReconnectEvent) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
onEvent(BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent) - Method in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultTaskTimeoutRequestFilter
+
 
+
onEvent(BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent) - Method in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
+
Implement this method to be notified of when the library requests whether historical data should be written to a log, + and to respond with your preference of if/how this data should be written.
+
+
onEvent(BleNodeConfig.ReconnectFilter.ReconnectEvent) - Method in interface com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter
+
+
Called for every connection failure while device is BleDeviceState.RECONNECTING_LONG_TERM.
+
+
onEvent(BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent) - Method in interface com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter
+
+
Implement this to have fine-grained control over BleTask timeout behavior.
+
+
onEvent(BleServer.AdvertisingListener.AdvertisingEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.AdvertisingListener
+
+
Called upon the m_status of calling BleServer.startAdvertising(BleAdvertisingPacket)
+
+
onEvent(BleServer.ConnectionFailListener.ConnectionFailEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.ConnectionFailListener
+
 
+
onEvent(BleServer.ConnectionFailListener.ConnectionFailEvent) - Method in class com.idevicesinc.sweetblue.BleServer.DefaultConnectionFailListener
+
 
+
onEvent(BleServer.IncomingListener.IncomingEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.IncomingListener
+
+
Called when a read or write from the client is requested.
+
+
onEvent(BleServer.OutgoingListener.OutgoingEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.OutgoingListener
+
+
Called when a notification or a response to a request is fulfilled or failed.
+
+
onEvent(BleServer.ServiceAddListener.ServiceAddEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.ServiceAddListener
+
+
Called when a service has finished being added or failed to be added.
+
+
onEvent(BleServer.StateListener.StateEvent) - Method in interface com.idevicesinc.sweetblue.BleServer.StateListener
+
+
Called when a server's bitwise BleServerState changes.
+
+
onEvent(BondRetryFilter.RetryEvent) - Method in class com.idevicesinc.sweetblue.BondRetryFilter.DefaultBondRetryFilter
+
 
+
onEvent(DescriptorFilter.DescriptorEvent) - Method in interface com.idevicesinc.sweetblue.DescriptorFilter
+
+
Method called when trying to determine which BluetoothGattCharacteristic to perform the operation on.
+
+
onEvent(BleDevice.StateListener.StateEvent) - Method in interface com.idevicesinc.sweetblue.DeviceStateListener
+
+
Called when a device's bitwise BleDeviceState changes.
+
+
onEvent(BleManager.StateListener.StateEvent) - Method in interface com.idevicesinc.sweetblue.ManagerStateListener
+
+
Called when the manager's abstracted BleManagerState changes.
+
+
onEvent(BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent) - Method in interface com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter
+
+
Called after moving to the next BluetoothEnabler.BluetoothEnablerFilter.Stage
+
+
onEvent(BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.DefaultBluetoothEnablerFilter
+
 
+
onEvent(T_Event) - Method in interface com.idevicesinc.sweetblue.utils.GenericListener_T
+
 
+
onEvent(T_Event) - Method in interface com.idevicesinc.sweetblue.utils.GenericListener_Void
+
 
+
onLogEntry(int, String, String) - Method in class com.idevicesinc.sweetblue.DefaultLogger
+
 
+
onLogEntry(int, String, String) - Method in interface com.idevicesinc.sweetblue.SweetLogger
+
 
+
onLogEntry(String) - Method in interface com.idevicesinc.sweetblue.utils.DebugLogger.LogEvent
+
 
+
onLogEntry(int, String, String) - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
 
+
onPause() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
It's generally recommended to call this in your override of Activity.onPause() for each Activity + in your application.
+
+
onRemove() - Method in class com.idevicesinc.sweetblue.utils.SingleElementIterator
+
+
Optionally override this method to implement remove logic.
+
+
onResult(MtuTestCallback.TestResult) - Method in interface com.idevicesinc.sweetblue.MtuTestCallback
+
+
This gets called if the MTU test succeeds, or fails.
+
+
onResume() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Opposite of BleManager.onPause(), to be called from your override of Activity.onResume() for each Activity + in your application.
+
+
onScanFailed(int) - Method in interface com.idevicesinc.sweetblue.compat.L_Util.ScanCallback
+
 
+
onScanResult(int, L_Util.ScanResult) - Method in interface com.idevicesinc.sweetblue.compat.L_Util.ScanCallback
+
 
+
onStartFailure(int) - Method in interface com.idevicesinc.sweetblue.compat.L_Util.AdvertisingCallback
+
 
+
onStartSuccess(BleAdvertisingSettings) - Method in interface com.idevicesinc.sweetblue.compat.L_Util.AdvertisingCallback
+
 
+
onTestRequest(MtuTestCallback.MtuTestEvent) - Method in interface com.idevicesinc.sweetblue.MtuTestCallback
+
+
This gets called after BleDevice.setMtu(int, BleDevice.ReadWriteListener) or any of it's overloads is called, and it returns a success.
+
+
onUpdate(double) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop.Callback
+
+
Gives you the amount of time that has passed in seconds since the last callback.
+
+
onWriteComplete(BleDevice.ReadWriteListener.ReadWriteEvent) - Method in interface com.idevicesinc.sweetblue.BleWriteTransaction.WriteQueueListener
+
 
+
onWriteFail(BleDevice.ReadWriteListener.ReadWriteEvent) - Method in interface com.idevicesinc.sweetblue.BleWriteTransaction.FailListener
+
 
+
openGattServer(Context, P_BleServer_Listeners) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
or(BitwiseEnum) - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
or(int) - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
or(BitwiseEnum) - Method in interface com.idevicesinc.sweetblue.utils.BitwiseEnum
+
+
Does a bitwise OR for this state and the given state.
+
+
or(int) - Method in interface com.idevicesinc.sweetblue.utils.BitwiseEnum
+
+
Does a bitwise OR for this state and the given bits.
+
+
ordinal() - Method in interface com.idevicesinc.sweetblue.utils.Flag
+
+ +
+
Ota() - Constructor for class com.idevicesinc.sweetblue.BleTransaction.Ota
+
 
+
OTS_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleDeviceState
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleManagerState
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
overlaps(int) - Method in enum com.idevicesinc.sweetblue.utils.AdvertisingFlag
+
 
+
overlaps(int) - Method in interface com.idevicesinc.sweetblue.utils.BitwiseEnum
+
+
Convenience method for checking if (Flag.bit() & mask) != 0x0.
+
+
+ + + +

P

+
+
P_AndroidBleServer - Class in com.idevicesinc.sweetblue
+
 
+
P_AndroidBluetoothManager - Class in com.idevicesinc.sweetblue
+
 
+
P_AndroidBluetoothManager() - Constructor for class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
P_AndroidDeviceLayerFactory() - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidDeviceLayerFactory
+
 
+
P_AndroidGattLayerFactory() - Constructor for class com.idevicesinc.sweetblue.BleManagerConfig.P_AndroidGattLayerFactory
+
 
+
P_Const - Class in com.idevicesinc.sweetblue.utils
+
+
Class which simply houses static final empty constructs which are used throughout the library (rather than instantiating new ones + every time)
+
+
P_Const() - Constructor for class com.idevicesinc.sweetblue.utils.P_Const
+
 
+
P_JSONUtil - Class in com.idevicesinc.sweetblue.utils
+
 
+
P_JSONUtil() - Constructor for class com.idevicesinc.sweetblue.utils.P_JSONUtil
+
 
+
P_JSONUtil.JSONApplier - Interface in com.idevicesinc.sweetblue.utils
+
 
+
P_JSONUtil.JSONExtractor - Interface in com.idevicesinc.sweetblue.utils
+
 
+
P_NativeServerLayer - Interface in com.idevicesinc.sweetblue
+
 
+
P_StringHandler - Class in com.idevicesinc.sweetblue
+
 
+
P_StringHandler() - Constructor for class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
P_SweetHandler - Interface in com.idevicesinc.sweetblue
+
 
+
P_Task_FactoryReset - Class in com.idevicesinc.sweetblue
+
 
+
P_Task_FactoryReset(BleManager, PA_Task.I_StateListener) - Constructor for class com.idevicesinc.sweetblue.P_Task_FactoryReset
+
 
+
parseName(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
 
+
parseScanRecord(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
 
+
parseScanRecord(byte[], Pointer<Integer>, Pointer<Integer>, List<UUID>, SparseArray<byte[]>, Map<UUID, byte[]>) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Deprecated.
+
+
parseServiceUuids(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_ScanRecord
+
+
Deprecated.
+
+
pause() - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Pause the enabler.
+
+
Percent - Class in com.idevicesinc.sweetblue.utils
+
+
Wrapper for a percentage value, generally from 0-100%;
+
+
percent(int, int, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Rssi
+
 
+
performOta(BleTransaction.Ota) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Kicks off an "over the air" long-term transaction if it's not already + taking place and the device is BleDeviceState.INITIALIZED.
+
+
performTransaction(BleTransaction) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Allows you to perform an arbitrary transaction that is not associated with any BleDeviceState like + BleDeviceState.PERFORMING_OTA, BleDeviceState.AUTHENTICATING or BleDeviceState.INITIALIZING.
+
+
PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
PERIPHERAL_PRIVACY_FLAG - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Permissions() - Constructor for class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
persist() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+ +
+
PersistenceLevel_BOTH - Static variable in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
 
+
PersistenceLevel_DISK - Static variable in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
 
+
PersistenceLevel_MEMORY - Static variable in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
 
+
PersistenceLevel_NONE - Static variable in interface com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter
+
 
+
persistIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+ +
+
PHONE_ALERT_STATUS_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
phoneHasBondingIssues() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.DefaultBondFilter
+
+ +
+
phoneHasBondingIssues() - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
+
Returns true for certain products, which may have problems managing bonding state + and so this method is used in BleDeviceConfig.DefaultBondFilter.
+
+
PI_UpdateLoop - Interface in com.idevicesinc.sweetblue
+
 
+
PI_UpdateLoop.Callback - Interface in com.idevicesinc.sweetblue
+
+
A callback where you handle the update time step.
+
+
PI_UpdateLoop.DefaultUpdateLoopFactory - Class in com.idevicesinc.sweetblue
+
 
+
PI_UpdateLoop.IUpdateLoopFactory - Interface in com.idevicesinc.sweetblue
+
 
+
plus(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Returns a new instance that is the result of doing this + other.
+
+
PLX_CONTINUOUS_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
PLX_FEATURES - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
PLX_SPOT_CHECK_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
PNP_ID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Pointer<T> - Class in com.idevicesinc.sweetblue.utils
+
+
Provides a way to be able to change a value declared in the outer scope of an anonymous inline class.
+
+
Pointer(T) - Constructor for class com.idevicesinc.sweetblue.utils.Pointer
+
 
+
Pointer() - Constructor for class com.idevicesinc.sweetblue.utils.Pointer
+
 
+
POLLEN_CONCENTRATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
popWakeLock() - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
POSITION_QUALITY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
possibleRetry() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
This is a best guess on our part.
+
+
post(Runnable) - Method in interface com.idevicesinc.sweetblue.P_SweetHandler
+
 
+
postCallbacksToMainThread - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - whether all callbacks are posted to the main thread or from SweetBlue's internal + thread.
+
+
postDelayed(Runnable, long) - Method in interface com.idevicesinc.sweetblue.P_SweetHandler
+
 
+
postIfNeeded(Runnable) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
postIfNeeded(Runnable) - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
postNeeded() - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
postNeeded() - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
PresentData - Class in com.idevicesinc.sweetblue.utils
+
+
Simple dummy implementation of FutureData that just returns whatever is passed into the constructor.
+
+
PresentData(byte[]) - Constructor for class com.idevicesinc.sweetblue.utils.PresentData
+
+
The data sent to this constructor will simply be returned by PresentData.getData().
+
+
PRESSURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
prettyFormatLogList(List<String>) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
previousDelay() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
The previous Interval returned through BleNodeConfig.ReconnectFilter.Please.retryIn(Interval), + or Interval.ZERO for the first invocation.
+
+
previousStage() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the BluetoothEnabler.BluetoothEnablerFilter.Stage following the Stage for this event.
+
+
primary() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
+
+
Set this service to the type BluetoothGattService.SERVICE_TYPE_PRIMARY.
+
+
printLog() - Method in class com.idevicesinc.sweetblue.utils.TimeTracker
+
 
+
printState() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns a string of all the states this BleDevice is currently in.
+
+
proceed() - Static method in class com.idevicesinc.sweetblue.BleWriteTransaction.WriteQueueListener.Please
+
+
Proceed to the next write in the queue.
+
+
progress() - Method in class com.idevicesinc.sweetblue.BleManager.ResetListener.ResetEvent
+
+
The progress of the reset.
+
+
PROTOCOL_MODE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
PULSE_OXIMETER_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
pushWakeLock() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Requires the Manifest.permission.WAKE_LOCK permission.
+
+
+ + + +

Q

+
+
query(String) - Method in interface com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase
+
 
+
query(String) - Method in class com.idevicesinc.sweetblue.backend.historical.Backend_HistoricalDatabase_Default
+
 
+
query(int, Object...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_State
+
 
+
queryHistoricalData(String) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Provides a means to perform a raw SQL query on the database storing the historical data for this node.
+
+
queryHistoricalData(String, BleNode.HistoricalDataQueryListener) - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Same as BleNode.queryHistoricalData(String) but performs the query on a background thread and returns the result back on the main thread + through the provided BleNode.HistoricalDataQueryListener.
+
+
+ + + +

R

+
+
RAINFALL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
random() - Static method in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
range() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
+
The resulting time range spanning all of the data loaded to memory, or EpochTimeRange.NULL if not applicable.
+
+
rawQuery() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
+
The raw query given to the database.
+
+
read(UUID[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
read(UUID[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
read(Iterable<UUID>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
read(Iterable<UUID>, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
read(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.read(java.util.UUID, BleDevice.ReadWriteListener) but you can use this + if you don't immediately care about the result.
+
+
read(UUID, DescriptorFilter) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.read(java.util.UUID, DescriptorFilter, BleDevice.ReadWriteListener) but you can use this + if you don't immediately care about the result.
+
+
read(UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Reads a characteristic from the device.
+
+
read(UUID, DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Reads a characteristic from the device.
+
+
read(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.read(UUID) for when you have characteristics with identical uuids under different services.
+
+
read(UUID, UUID, DescriptorFilter) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.read(UUID, DescriptorFilter) for when you have characteristics with identical uuids under the same service.
+
+
read(UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.read(UUID, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
read(UUID, UUID, DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.read(UUID, DescriptorFilter, ReadWriteListener) for when you have characteristics with identical uuids under the same service.
+
+
read() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
read() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
read_encrypted() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
read_encrypted_mitm() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
readBatteryLevel(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Read the battery level of this device.
+
+
readBatteryLevel(byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
- Use any of the read() methods which accept a DescriptorFilter instead. This way, you're not limited to just the battery service/char
+
+
+
readBatteryLevel(byte[], UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
- Use any of the read() methods which accept a DescriptorFilter instead, so you're not locked into the default service/char for battery.
+
+
+
readDescriptor(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Reads from the device without a callback - the callback will still be sent through any listeners provided + to either BleDevice.setListener_ReadWrite(ReadWriteListener) or BleManager.setListener_ReadWrite(com.idevicesinc.sweetblue.BleDevice.ReadWriteListener).
+
+
readDescriptor(UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Reads from the device with a callback.
+
+
readDescriptor(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.readDescriptor(UUID) for when you have descriptors with identical uuids under different services.
+
+
readDescriptor(UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.readDescriptor(UUID, ReadWriteListener) for when you have descriptors with identical uuids under different characteristics.
+
+
readDescriptor(UUID, UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.readDescriptor(UUID, ReadWriteListener) for when you have descriptors with identical uuids under different characteristics and/or services.
+
+
readDescriptor(UUID, UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.readDescriptor(UUID, ReadWriteListener) for when you have descriptors with identical uuids under different characteristics and/or services.
+
+
readJSON(JSONObject) - Method in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Acceps a JSON object that represents a set of configuration options.
+
+
readRssi() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.readRssi(ReadWriteListener) but use this method when you don't much care when/if the RSSI is actually updated.
+
+
readRssi(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
readWrite() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
readWrite() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
readWriteIndicate() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
ReadWriteListener - Interface in com.idevicesinc.sweetblue
+
 
+
readWriteNotify() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
reconnectFilter - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Default is an instance of BleNodeConfig.DefaultReconnectFilter using the timings that are public static final members thereof - set your own implementation here to + have fine-grain control over reconnect behavior while a device is BleDeviceState.RECONNECTING_LONG_TERM or BleDeviceState.RECONNECTING_SHORT_TERM.
+
+
RECONNECTION_ADDRESS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
RECORD_ACCESS_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
REFERENCE_TIME_INFORMATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
REFERENCE_TIME_UPDATE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ReflectionUuidNameMap - Class in com.idevicesinc.sweetblue.utils
+
+
Convenience implementation of UuidNameMap that takes a Class object + and through reflection attempts to parse out all the static UUID members, for example + on Uuids.
+
+
ReflectionUuidNameMap(Class<?>) - Constructor for class com.idevicesinc.sweetblue.utils.ReflectionUuidNameMap
+
 
+
refreshGatt(BluetoothGatt) - Static method in class com.idevicesinc.sweetblue.utils.Utils
+
+
Utility method used to refresh the GATT database.
+
+
refreshGattDatabase() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.refreshGattDatabase(Interval) which uses the gatt refresh delay set in BleDeviceConfig.
+
+
refreshGattDatabase(Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
This only applies to a device which is BleDeviceState.CONNECTED.
+
+
registerContentObserver(ContentObserver) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
registerDataSetObserver(DataSetObserver) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
reliableWrite_abort() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Wrapper for BluetoothGatt.abortReliableWrite() - will return an event such that BleDevice.ReadWriteListener.ReadWriteEvent.isNull() will + return false if there are no problems.
+
+
reliableWrite_begin(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Wrapper for BluetoothGatt.beginReliableWrite() - will return an event such that BleDevice.ReadWriteListener.ReadWriteEvent.isNull() will + return false if there are no problems.
+
+
reliableWrite_execute() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Wrapper for BluetoothGatt.abortReliableWrite() - will return an event such that BleDevice.ReadWriteListener.ReadWriteEvent.isNull() will + return false if there are no problems.
+
+
remaining() - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Returns how many write operations are left in the queue.
+
+
remedy() - Method in class com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOhEvent
+
+ +
+
remove() - Method in class com.idevicesinc.sweetblue.BleDeviceIterator
+
+
Calls BleManager.undiscover(BleDevice), removing it from the BleManager singleton's internal list.
+
+
remove() - Method in class com.idevicesinc.sweetblue.utils.EmptyIterator
+
 
+
remove() - Method in class com.idevicesinc.sweetblue.utils.SingleElementIterator
+
 
+
removeAllDevicesFromCache() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Removes all BleDevices from SweetBlue's internal device cache list.
+
+
removeAllServices() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Convenience to remove all services previously added with BleServer.addService(BleService, ServiceAddListener) (or overloads).
+
+
removeCallbacks(Runnable) - Method in interface com.idevicesinc.sweetblue.P_SweetHandler
+
 
+
removeDeviceFromCache(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Removes the given BleDevice from SweetBlue's internal device cache list.
+
+
removeService(UUID) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Remove any service previously provided to BleServer.addService(BleService, ServiceAddListener) or overloads.
+
+
removeService(BluetoothGattService) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
removeService(BluetoothGattService) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
REPORT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
REPORT_MAP - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
REPORT_REFERENCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
requery() - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
requestConnectionPriority(BleDevice, int) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
+
Deprecated.
+
+
requestConnectionPriority(BluetoothGatt, int) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
requestId() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The request id forwarded from the native stack.
+
+
requestMtu(BleDevice, int) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
+
Deprecated.
+
+
requestMtu(BluetoothGatt, int) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
requestPermissions(Activity, int) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
 
+
REQUIRES_LOCATION_PERMISSION - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
REQUIRES_LOCATION_PERMISSION_AND_SERVICES - Static variable in class com.idevicesinc.sweetblue.P_StringHandler
+
 
+
reset() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
This is essentially a big red reset button for the Bluetooth stack.
+
+
reset(BleManager.ResetListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.reset() but with a convenience callback for when the reset is + completed and the native BLE stack is (should be) back to normal.
+
+
resetManager(Context) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
RESOLVABLE_PRIVATE_ADDRESS_ONLY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
respond(Bundle) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
respondWithError(int) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Send an error/status code back to the client.
+
+
respondWithError(int, BleServer.OutgoingListener) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Same as BleServer.IncomingListener.Please.respondWithError(int) but allows you to provide a listener specific to this response.
+
+
respondWithSuccess(FutureData) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Overload of BleServer.IncomingListener.Please.respondWithSuccess(byte[]) - see FutureData for why/when you would want to use this.
+
+
respondWithSuccess(FutureData, BleServer.OutgoingListener) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+ +
+
respondWithSuccess(byte[]) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Use this as the return value of BleServer.IncomingListener.onEvent(IncomingEvent) when + BleServer.ExchangeListener.ExchangeEvent.type() BleServer.ExchangeListener.Type.isRead() is true and you can respect + the read request and respond with data.
+
+
respondWithSuccess(byte[], BleServer.OutgoingListener) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Same as BleServer.IncomingListener.Please.respondWithSuccess(byte[]) but allows you to provide a listener specific to this response.
+
+
respondWithSuccess() - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+ +
+
respondWithSuccess(BleServer.OutgoingListener) - Static method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.Please
+
+
Same as BleServer.IncomingListener.Please.respondWithSuccess() but allows you to provide a listener specific to this response.
+
+
responseNeeded() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
Dictates whether a response is needed.
+
+
RESTING_HEART_RATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
result() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.TestResult
+
+
The result of the MTU test -- you can also just call MtuTestCallback.TestResult.wasSuccess() if you only care if it worked or not.
+
+
resume(BluetoothEnabler.BluetoothEnablerFilter.Please) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Resume the enabler with the given Please.
+
+
resume_static(BluetoothEnabler.BluetoothEnablerFilter.Please) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Static equivalent of BluetoothEnabler.resume(BluetoothEnablerFilter.Please) that you can use to call down into the + singleton created by BluetoothEnabler.start(Activity, BluetoothEnablerFilter) (or overloads).
+
+
retainDeviceWhenBleTurnsOff - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - controls whether BleManager will keep a device in active memory when it goes BleManagerState.OFF.
+
+
retry() - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+
Return this to retry the connection, continuing the connection fail retry loop.
+
+
retry() - Static method in class com.idevicesinc.sweetblue.BleWriteTransaction.FailListener.Please
+
+
Tells the transaction to retry the failed write again.
+
+
retry() - Static method in class com.idevicesinc.sweetblue.BondRetryFilter.Please
+
+
Tell SweetBlue to retry bonding to the device.
+
+
retryAttempts() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns how many times SweetBlue has retried bonding on the BondRetryFilter.RetryEvent.device().
+
+
retryIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+ +
+
retryIf(boolean) - Static method in class com.idevicesinc.sweetblue.BondRetryFilter.Please
+
+
Tell SweetBlue to retry bonding to the device, if the provided condition is true.
+
+
retryIn(Interval) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+
Return this from BleNodeConfig.ReconnectFilter.onEvent(BleNodeConfig.ReconnectFilter.ReconnectEvent) to retry after the given amount of time.
+
+
retryInstantly() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+ +
+
retryWithAutoConnectFalse() - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+ +
+
retryWithAutoConnectTrue() - Static method in class com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.Please
+
+ +
+
reverseBytes(byte[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Reverses the byte array order.
+
+
revertToClassicDiscoveryIfNeeded - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - SweetBlue uses BluetoothAdapter.startLeScan(BluetoothAdapter.LeScanCallback) by default but for unknown + reasons this can fail sometimes.
+
+
RINGER_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
RINGER_SETTING - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
ROWER_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
RSC_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
RSC_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
rssi() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
This value gets updated as a result of a BleDevice.readRssi(ReadWriteListener) call.
+
+
rssi() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+ +
+
rssi() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
The RSSI received when the device was discovered.
+
+
rssi_max - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_RSSI_MAX - the estimated maximum value for BleDevice.getRssi().
+
+
rssi_min - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_RSSI_MIN - the estimated minimum value for BleDevice.getRssi().
+
+
rssi_percent() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+ +
+
rssiAutoPollRate - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is BleDeviceConfig.DEFAULT_RSSI_AUTO_POLL_RATE - The rate at which a BleDevice will automatically poll for its BleDevice.getRssi() value + after it's BleDeviceState.CONNECTED.
+
+
RUNNING_SPEED_AND_CADENCE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
runOnMainThread - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Deprecated. +
- This option will be replaced in version 3.0. This is only marked as deprecated as an early notice (there's + nothing to replace it currently).
+
+
+
+ + + +

S

+
+
saveNameChangesToDisk - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - controls whether changes to a device's name through BleDevice.setName(String) are remembered on disk through + SharedPreferences.
+
+
SC_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SCAN_INTERVAL_WINDOW - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SCAN_PARAMETERS_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SCAN_REFRESH - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
scanApi - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is BleScanApi.AUTO - see BleScanApi for more details.
+
+
scanClassicBoostLength - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is Interval.DISABLED - This will run a short classic scan before a regular BLE scan.
+
+
scanFor(Interval) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Scan for the specified amount of time.
+
+
scanInfinitely() - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Scan indefinitely until BleManager.stopScan() is called.
+
+
scanMode - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Deprecated. +
This is deprecated in favor of BleScanApi. If this is not null, SweetBlue will set + BleManagerConfig.scanApi automatically from this setting.
+
+
+
ScanOptions - Class in com.idevicesinc.sweetblue
+
+
Class used to feed options for scanning via BleManager.startScan(ScanOptions).
+
+
ScanOptions() - Constructor for class com.idevicesinc.sweetblue.ScanOptions
+
 
+
ScanOptions(BleManagerConfig.ScanFilter) - Constructor for class com.idevicesinc.sweetblue.ScanOptions
+
 
+
ScanOptions(BleManager.DiscoveryListener) - Constructor for class com.idevicesinc.sweetblue.ScanOptions
+
 
+
ScanOptions(BleManagerConfig.ScanFilter, BleManager.DiscoveryListener) - Constructor for class com.idevicesinc.sweetblue.ScanOptions
+
 
+
scanPeriodically(Interval, Interval) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Do a periodic scan.
+
+
scanPower - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
NOTE: This is ONLY applicable on devices running Lollipop or above.
+
+
scanRecord() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
The raw scan record received when the device was discovered.
+
+
scanReportDelay - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 0.5 seconds - Only applicable for Lollipop and up (i.e.
+
+
ScanResult() - Constructor for class com.idevicesinc.sweetblue.compat.L_Util.ScanResult
+
 
+
secondary() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.ServiceBuilder
+
+
Set this service to the type BluetoothGattService.SERVICE_TYPE_SECONDARY.
+
+
secs() - Method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns the value of this interval in seconds.
+
+
secs(double) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns a new Interval representing the given number of seconds.
+
+
secs(Interval) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns the double values as seconds from a given nullable Interval.
+
+
select() - Method in class com.idevicesinc.sweetblue.BleNode
+
+
Provides a way to perform a statically checked SQL query by chaining method calls.
+
+
select(BleNode, Backend_HistoricalDatabase) - Static method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery
+
 
+
sendIndication(String, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, byte[], BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, UUID, byte[], BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, FutureData, BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendIndication(String, UUID, UUID, FutureData, BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, byte[], BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, UUID, byte[], BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, FutureData, BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
sendNotification(String, UUID, UUID, FutureData, BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Use this method to send a notification to the client device with the given mac address to the given characteristic UUID.
+
+
sendResponse(BluetoothDevice, int, int, int, byte[]) - Method in class com.idevicesinc.sweetblue.P_AndroidBleServer
+
 
+
sendResponse(BluetoothDevice, int, int, int, byte[]) - Method in interface com.idevicesinc.sweetblue.P_NativeServerLayer
+
 
+
SENSOR_LOCATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SERIAL_NUMBER - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
server() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+ +
+
server() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+ +
+
server() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+ +
+
server() - Method in class com.idevicesinc.sweetblue.BleServer.AdvertisingListener.AdvertisingEvent
+
+
The backing BleManager which is attempting to start advertising.
+
+
server() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
server() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+ +
+
server() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+
The server to which the service is being added.
+
+
server() - Method in class com.idevicesinc.sweetblue.BleServer.StateListener.StateEvent
+
+
The server undergoing the state change.
+
+
SERVER_CHARACTERISTIC_CONFIGURATION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
service() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
service() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+ +
+
service() - Method in class com.idevicesinc.sweetblue.DescriptorFilter.DescriptorEvent
+
+
Convenience method which returns the BluetoothGattService.
+
+
service() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
SERVICE_CHANGED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
serviceData() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Returns the service data, if any, parsed from BleManagerConfig.ScanFilter.ScanEvent.scanRecord().
+
+
serviceDiscoveryDelay - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is Interval.DISABLED.
+
+
serviceUuid() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The UUID of the service associated with this BleDevice.ReadWriteListener.ReadWriteEvent.
+
+
serviceUuid() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The UUID of the service associated with this BleServer.ExchangeListener.ExchangeEvent.
+
+
serviceUuid() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+ +
+
serviceUuid() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
The UUID of the service associated with this BleDevice.ReadWriteListener.ReadWriteEvent.
+
+
setAdvFlags(byte) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the advertising flags.
+
+
setAdvFlags(byte...) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Convenience method to set the advertising flags, which allows you to pass in every flag you want, and this + method will OR them together for you.
+
+
setBleManager(BleManager) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
setBoolean(boolean) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set the boolean to write.
+
+
setBoolean(boolean) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the boolean to write.
+
+
setBytes(byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set the raw bytes to write.
+
+
setBytes(byte[]) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the raw bytes to write.
+
+
setCharacteristicUUID(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set the characteristic UUID to write to.
+
+
setCharacteristicUUID(UUID) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the characteristic UUID to write to.
+
+
setConfig(BleDeviceConfig) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Optionally sets overrides for any custom options given to BleManager.get(android.content.Context, BleManagerConfig) + for this individual device.
+
+
setConfig(BleManagerConfig) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Updates the config options for this instance after calling BleManager.get(android.content.Context) or BleManager.get(android.content.Context, BleManagerConfig).
+
+
setConfig(BleNodeConfig) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Optionally sets overrides for any custom options given to BleManager.get(android.content.Context, BleManagerConfig) + for this individual server.
+
+
setConnectionPriority(BleConnectionPriority) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.setConnectionPriority(BleConnectionPriority, ReadWriteListener) but use this method when you don't much care when/if the connection priority is updated.
+
+
setConnectionPriority(BleConnectionPriority, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Wrapper for BluetoothGatt.requestConnectionPriority(int) which attempts to change the connection priority for a given connection.
+
+
setData(FutureData) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the FutureData to write.
+
+
setDescriptorFilter(DescriptorFilter) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the DescriptorFilter to determine which characteristic to write to, if there are multiple with the same UUID in the same + BluetoothGattService.
+
+
setDescriptorUUID(UUID) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the descriptor UUID to write to (if writing to a descriptor).
+
+
setExtras(Bundle) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
setInt(int) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set an int to be written.
+
+
setInt(int) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set an int to be written.
+
+
setListener_Advertising(BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Set a listener here to be notified of the result of starting to advertise.
+
+
setListener_Advertising(BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
 
+
setListener_Assert(BleManager.AssertListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Set a listener here to be notified whenever BleManager.ASSERT(boolean) fails.
+
+
setListener_Bond(BleDevice.BondListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Set a listener here to be notified whenever a bond attempt succeeds.
+
+
setListener_Bond(BleDevice.BondListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to set a default back up listener for all BleDevice.BondListener.BondEvents across all BleDevice instances.
+
+
setListener_ConnectionFail(BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Set a listener here to be notified whenever a connection fails and to + have control over retry behavior.
+
+
setListener_ConnectionFail(BleDevice.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to handle connection fail events at the manager level.
+
+
setListener_ConnectionFail(BleServer.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Set a listener here to override any listener provided previously.
+
+
setListener_ConnectionFail_Server(BleServer.ConnectionFailListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to handle server connection fail events at the manager level.
+
+
setListener_DeviceState(BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
- This will be removed in version 3. It has been refactored to DeviceStateListener.
+
+
+
setListener_DeviceState(DeviceStateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to listen for all changes in BleDeviceState for all devices.
+
+
setListener_Discovery(BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Set a listener here to be notified whenever a BleDevice is discovered, rediscovered, or undiscovered.
+
+
setListener_HistoricalDataLoad(BleNode.HistoricalDataLoadListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Sets a default backup BleNode.HistoricalDataLoadListener that will be invoked + for all historical data loads to memory for all uuids.
+
+
setListener_HistoricalDataLoad(BleNode.HistoricalDataLoadListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Sets a default backup BleNode.HistoricalDataLoadListener that will be invoked + for all historical data loads to memory for all uuids for all devices.
+
+
setListener_Incoming(BleServer.IncomingListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to handle server request events at the manager level.
+
+
setListener_Incoming(BleServer.IncomingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Set a listener here to override any listener provided previously.
+
+
setListener_NativeState(BleManager.NativeStateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
BleManager.NativeStateListener is being removed in v3. There is no alternative. Just use SweetBlue's internal state management (which + is keyed from the native state, and callbacks).
+
+
+
setListener_Notification(NotificationListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Sets a default NotificationListener that will be called when receiving notifications, or indications.
+
+
setListener_Notification(NotificationListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
 
+
setListener_Outgoing(BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to listen for completion of all outgoing messages from + BleServer instances.
+
+
setListener_Outgoing(BleServer.OutgoingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
This is a default catch-all convenience listener that will be called after any listener provided through + the static methods of BleServer.IncomingListener.Please such as BleServer.IncomingListener.Please.respondWithSuccess(BleServer.OutgoingListener).
+
+
setListener_Read_Write(ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Sets a default backup ReadWriteListener that will be called for all BleDevice instances.
+
+
setListener_ReadWrite(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
- This will be removed in version 3. Use ReadWriteListener instead (it was refactored to be in it's own class file, rather than an inner class).
+
+
+
setListener_ReadWrite(ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
setListener_ReadWrite(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
- This will be removed in version 3. Use ReadWriteListener instead (it was refactored to be in it's own class file, rather than an inner class).
+
+
+
setListener_ServerState(BleServer.StateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to listen for all changes in BleServerState for all servers.
+
+
setListener_ServiceAdd(BleServer.ServiceAddListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to listen for all service addition events for all servers.
+
+
setListener_ServiceAdd(BleServer.ServiceAddListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Set a listener here to override any listener provided previously and provide a default backup that will be called + after any listener provided to BleServer.addService(BleService, ServiceAddListener).
+
+
setListener_State(BleDevice.StateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
- This will be removed in version 3. It has been refactored to DeviceStateListener.
+
+
+
setListener_State(DeviceStateListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Set a listener here to be notified whenever this device's state changes.
+
+
setListener_State(BleManager.StateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
- This will be removed in version 3. This class has been refactored to ManagerStateListener.
+
+
+
setListener_State(ManagerStateListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Set a listener here to be notified whenever this manager's BleManagerState changes.
+
+
setListener_State(BleServer.StateListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Set a listener here to be notified whenever this server's state changes in relation to a specific client.
+
+
setListener_UhOh(BleManager.UhOhListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Set a listener here to be notified whenever we encounter an BleManager.UhOhListener.UhOh.
+
+
setLogListener(DebugLogger.LogEvent) - Method in class com.idevicesinc.sweetblue.utils.DebugLogger
+
 
+
setLong(long) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set a long to be written.
+
+
setLong(long) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set a long to be written.
+
+
setManufacturerData(byte[]) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the manufacturer data
+
+
setManufacturerId(short) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the manufacturer Id
+
+
setMtu(int) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.setMtu(int, ReadWriteListener) but use this method when you don't much care when/if the "maximum transmission unit" is actually updated.
+
+
setMtu(int, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Wrapper for BluetoothGatt.requestMtu(int) which attempts to change the "maximum transmission unit" for a given connection.
+
+
setMtuToDefault() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.setMtuToDefault(ReadWriteListener) but use this method when you don't much care when/if the "maximum transmission unit" is actually updated.
+
+
setMtuToDefault(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.setMtu(int, ReadWriteListener) that returns the "maximum transmission unit" to the default.
+
+
setName(String) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.setName(String, UUID, BleDevice.ReadWriteListener) but will not attempt to propagate the + name change to the remote device.
+
+
setName(String, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.setName(String, UUID, BleDevice.ReadWriteListener) but you can use this + if you don't care much whether the device name change actually successfully reaches + the remote device.
+
+
setName(String, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Sets the local name of the device and also attempts a BleDevice.write(java.util.UUID, byte[], BleDevice.ReadWriteListener) + using the given UUID.
+
+
setName(String) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Set the name you wish this BleServer to be known as.
+
+
setName(String) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
setName(String) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Overload of BleScanInfo.setName(String, boolean), which defaults to a complete name (not short).
+
+
setName(String, boolean) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the device name, and if it's a shortened name or not.
+
+
setNotificationUri(ContentResolver, Uri) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
setPermissions(int) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set this BluetoothGattCharacteristic's permissions.
+
+
setPermissions(int...) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set this BluetoothGattCharacteristic's permissions.
+
+
setPermissions() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set the permissions for this BluetoothGattCharacteristic.
+
+
setPermissions(int) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+
Set this BluetoothGattDescriptor's permissions.
+
+
setPermissions(int...) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+
Set this BluetoothGattDescriptor's permissions.
+
+
setPermissions() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
+
Set the permissions for this BluetoothGattDescriptor.
+
+
setPermissions() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
setProperties(int) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set this BluetoothGattCharacteristic's properties.
+
+
setProperties(int...) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set this BluetoothGattCharacteristic's properties.
+
+
setProperties() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set the properties for this BluetoothGattCharacteristic.
+
+
setProperties() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicPermissions
+
 
+
setReadWriteListener(ReadWriteListener) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the ReadWriteListener for listening to the callback of the write you wish to perform.
+
+
setReadWriteListener_dep(BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Deprecated. +
This will be removed in v3. It's safe, and ok to use this method until then.
+
+
+
setServiceUUID(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set the service UUID for this write.
+
+
setServiceUUID(UUID) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the service UUID for this write.
+
+
setShort(short) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set a short to be written.
+
+
setShort(short) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set a short to be written.
+
+
setString(String, String) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set a string to be written.
+
+
setString(String) - Method in class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Set a string to be written.
+
+
setString(String, String) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set a string to be written.
+
+
setString(String) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set a string to be written.
+
+
setTimeoutFor(Interval) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.Please
+
+
Tells SweetBlue to wait for the given interval before timing out the task.
+
+
setToSubData(int, int) - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Update the buffer to only contain the current data from the given start and length.
+
+
setTxPower(byte) - Method in class com.idevicesinc.sweetblue.utils.BleScanInfo
+
+
Set the TX power
+
+
setValue(byte[]) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.CharacteristicBuilder
+
+
Set the default value for this BluetoothGattCharacteristic.
+
+
setValue(byte[]) - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.DescriptorBuilder
+
 
+
setWriteType(BleDevice.ReadWriteListener.Type) - Method in class com.idevicesinc.sweetblue.WriteBuilder
+
+
Set the BleDevice.ReadWriteListener.Type of the write to perform.
+
+
shallowDiffJSONObjects(JSONObject, JSONObject) - Static method in class com.idevicesinc.sweetblue.utils.P_JSONUtil
+
 
+
SHORT_TERM_ATTEMPT_RATE - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
SHORT_TERM_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleNodeConfig.DefaultReconnectFilter
+
 
+
shortToBytes(short) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Convert a short to a byte array
+
+
shouldBeReportedToUser() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
shouldBeReportedToUser() - Method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
+
Convenience method that returns whether this status is something that your app user would usually care about.
+
+
shouldBeReportedToUser() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
shouldBeReportedToUser() - Method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
+
Convenience method that returns whether this status is something that your app user would usually care about.
+
+
shouldBreak() - Method in class com.idevicesinc.sweetblue.utils.ForEach_Breakable.Please
+
 
+
shouldContinue() - Method in class com.idevicesinc.sweetblue.utils.ForEach_Breakable.Please
+
 
+
shouldShowRequestPermissionRationale(Activity) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
 
+
shutdown() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Disconnects all devices, shuts down the BleManager, and it's backing thread, and unregisters any receivers that may be in use.
+
+
signed_write() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
signed_write() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
signed_write_mitm() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
since(long) - Static method in class com.idevicesinc.sweetblue.utils.Interval
+
+
Returns a new Interval representing the time since the given past epoch time, + using System.currentTimeMillis().
+
+
SingleElementIterator<T> - Class in com.idevicesinc.sweetblue.utils
+
+
Convenience class for implementing an Iterator with a single element.
+
+
SingleElementIterator(T) - Constructor for class com.idevicesinc.sweetblue.utils.SingleElementIterator
+
 
+
SINGLETON - Static variable in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
+
Singleton value, safe to reuse.
+
+
skipNext() - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Skip the next BluetoothEnabler.BluetoothEnablerFilter.Stage and move the following one.
+
+
SOFTWARE_REVISION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
solicited() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
This returns true if this event was the result of an explicit call through SweetBlue, e.g.
+
+
solicited() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+
This returns true if this event was the result of an explicit call through SweetBlue, e.g.
+
+
solicited() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+
This returns true if this event was the result of an explicit call through SweetBlue, e.g.
+
+
solicited() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
This returns true if this event was the result of an explicit call through SweetBlue, e.g.
+
+
source() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
+
The source of the data - read, notify, etc.
+
+
SPORT_TYPE_FOR_AEROBIC_AND_ANAEROBIC_THRESHOLDS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
stackTrace() - Method in class com.idevicesinc.sweetblue.BleManager.AssertListener.AssertEvent
+
+
Stack trace leading up to the assert.
+
+
stage() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the BluetoothEnabler.BluetoothEnablerFilter.Stage associated with this event.
+
+
STAIR_CLIMBER_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
STANDARD_UUID_TEMPLATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
+
The template for standard services, characteristics, and descriptors - see https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx + This is used to generate some of the other static UUID instances in this class using Uuids.fromShort(String, String).
+
+
start(BleDevice) - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Implement this method to kick off your transaction.
+
+
start(BleDevice) - Method in class com.idevicesinc.sweetblue.BleWriteTransaction
+
+
Starts the transaction.
+
+
start(double) - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
start(Context) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Overload of BluetoothEnabler.start(Activity) but given Context must be an Activity.
+
+
start(Context, BluetoothEnabler.BluetoothEnablerFilter) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+ +
+
start(Activity) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+ +
+
start(Activity, BluetoothEnabler.BluetoothEnablerFilter) - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler
+
+
Kicks off the complex flow needed to fully enable Bluetooth on Build versions greater than or equal to Build.VERSION_CODES.M.
+
+
start() - Method in class com.idevicesinc.sweetblue.utils.TimeTracker
+
 
+
start(double) - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
startAdvertising(UUID) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID, BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID[], BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID, byte[], BleAdvertisingPacket.Option...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID, BleAdvertisingPacket.Option...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID[], BleAdvertisingPacket.Option...) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID, BleAdvertisingSettings, BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(UUID[], BleAdvertisingSettings, BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(BleAdvertisingPacket) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(BleAdvertisingPacket, BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+ +
+
startAdvertising(BleAdvertisingPacket, BleAdvertisingSettings, BleServer.AdvertisingListener) - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Starts advertising serviceUuids with the information supplied in BleAdvertisingPacket.
+
+
startAdvertising(BluetoothAdapter, AdvertiseSettings, AdvertiseData, L_Util.AdvertisingCallback) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
startAdvertising(AdvertiseSettings, AdvertiseData, L_Util.AdvertisingCallback) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
startChangeTrackingPoll(UUID[], Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience to call BleDevice.startChangeTrackingPoll(java.util.UUID, Interval, BleDevice.ReadWriteListener) for multiple + characteristic uuids all at once.
+
+
startChangeTrackingPoll(UUID[], Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
startChangeTrackingPoll(Iterable<UUID>, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience to call BleDevice.startChangeTrackingPoll(java.util.UUID, Interval, BleDevice.ReadWriteListener) for multiple + characteristic uuids all at once.
+
+
startChangeTrackingPoll(Iterable<UUID>, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
startChangeTrackingPoll(UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Similar to BleDevice.startPoll(UUID, Interval, ReadWriteListener) but only + invokes a callback when a change in the characteristic value is detected.
+
+
startChangeTrackingPoll(UUID, UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.startChangeTrackingPoll(UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
startChangeTrackingPoll(UUID, UUID, DescriptorFilter, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.startChangeTrackingPoll(UUID, UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under the same service.
+
+
startDiscovery() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
startLeScan(BluetoothAdapter.LeScanCallback) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
startLScan(int, Interval, L_Util.ScanCallback) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
startMScan(int, Interval, L_Util.ScanCallback) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
startNativeScan(BluetoothAdapter, int, Interval, L_Util.ScanCallback) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
startNativeScan(BleManager, int, Interval, L_Util.ScanCallback) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
+
Deprecated.
+
+
startNativeScan(BleManager, int, Interval, L_Util.ScanCallback) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
+
Deprecated.
+
+
startNativeScan(BluetoothAdapter, int, Interval, L_Util.ScanCallback) - Static method in class com.idevicesinc.sweetblue.compat.M_Util
+
 
+
startPeriodicScan(Interval, Interval) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Manually starts a periodic scan.
+
+
startPeriodicScan(Interval, Interval, BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startPeriodicScan(Interval, Interval, BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startPeriodicScan(Interval, Interval, BleManagerConfig.ScanFilter, BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startPoll(UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Starts a periodic read of a particular characteristic.
+
+
startPoll(UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
startPoll(UUID, UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.startPoll(UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
startPoll(UUID, UUID, DescriptorFilter, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.startPoll(UUID, UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under the same service.
+
+
startPoll(UUID, UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.startPoll(UUID, Interval) for when you have characteristics with identical uuids under different services.
+
+
startPoll(UUID[], Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience to call BleDevice.startPoll(java.util.UUID, Interval, BleDevice.ReadWriteListener) for multiple + characteristic uuids all at once.
+
+
startPoll(UUID[], Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
startPoll(Iterable<UUID>, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience to call BleDevice.startPoll(java.util.UUID, Interval, BleDevice.ReadWriteListener) for multiple + characteristic uuids all at once.
+
+
startPoll(Iterable<UUID>, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
startRssiPoll(Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.startPoll(UUID, Interval, ReadWriteListener) but for when you don't care when/if the RSSI is actually updated.
+
+
startRssiPoll(Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Kicks off a poll that automatically calls BleDevice.readRssi(ReadWriteListener) at the Interval frequency + specified.
+
+
startScan() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Starts a scan that will continue indefinitely until BleManager.stopScan() is called.
+
+
startScan(BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(Interval, BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(Interval, BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(BleManagerConfig.ScanFilter, BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(Interval) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Starts a scan that will generally last for the given time (roughly).
+
+
startScan(Interval, BleManagerConfig.ScanFilter, BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
startScan(ScanOptions) - Method in class com.idevicesinc.sweetblue.BleManager
+
 
+
State - Interface in com.idevicesinc.sweetblue.utils
+
+
Bitwise enum contract for representing the state of devices and managers.
+
+
State.ChangeEvent<T_State extends State> - Class in com.idevicesinc.sweetblue.utils
+
+ +
+
State.ChangeIntent - Enum in com.idevicesinc.sweetblue.utils
+
+
Enumerates the intention behind a state change - as comprehensively as possible, whether the + application user intended for the state change to happen or not.
+
+
staticFieldValue(Field) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Reflection
+
 
+
status() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+
The BleDevice.ConnectionFailListener.Status associated with this event.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+
General reason why the connection failed.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Indicates either success or the type of failure.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
+
The general status of the load operation.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
+
The general status of the query operation.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleServer.AdvertisingListener.AdvertisingEvent
+
+ +
+
status() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
+
General reason why the connection failed.
+
+
status() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+ +
+
status() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+
Indicates the success or reason for failure for adding the service.
+
+
status() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns the BondRetryFilter.Status of the bond attempt.
+
+
status() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Indicates either success or the type of failure.
+
+
status() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
+
Returns the BluetoothEnabler.BluetoothEnablerFilter.Status of the current Stage.
+
+
STEP_CLIMBER_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
stop() - Static method in class com.idevicesinc.sweetblue.BleWriteTransaction.FailListener.Please
+
+
Stops the transaction, and clears all remaining writes from the queue.
+
+
stop() - Static method in class com.idevicesinc.sweetblue.BondRetryFilter.Please
+
+
Tells SweetBlue not to retry bonding to the device.
+
+
stop() - Method in interface com.idevicesinc.sweetblue.PI_UpdateLoop
+
 
+
stop() - Static method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Bypass all remaining stages and move to the end of the last stage; enabler will finish at this point
+
+
stop(String) - Method in class com.idevicesinc.sweetblue.utils.TimeTracker
+
 
+
stop() - Method in class com.idevicesinc.sweetblue.utils.UpdateLoop
+
+
Deprecated.
+
stopAdvertising() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Stops the server from advertising.
+
+
stopAdvertising(BluetoothAdapter) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
stopAdvertising() - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
stopAllScanning() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience that will call both BleManager.stopPeriodicScan() and BleManager.stopScan() for you.
+
+
stopIf(boolean) - Static method in class com.idevicesinc.sweetblue.BondRetryFilter.Please
+
+
Tells SweetBlue not to retry bonding to the device, if the provided condition is true.
+
+
stopLeScan(BluetoothAdapter.LeScanCallback) - Method in class com.idevicesinc.sweetblue.P_AndroidBluetoothManager
+
 
+
stopNativeScan(BleManager) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
+
Deprecated.
+
+
stopNativeScan(BluetoothAdapter) - Static method in class com.idevicesinc.sweetblue.compat.L_Util
+
 
+
stopPeriodicScan(BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.BleManager
+
+ +
+
stopPeriodicScan() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Stops a periodic scan previously started either explicitly with BleManager.startPeriodicScan(Interval, Interval) or through + the BleManagerConfig.autoScanActiveTime and BleManagerConfig.autoScanPauseInterval config options.
+
+
stopPoll(UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopPoll(UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopPoll(UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Same as BleDevice.stopPoll(UUID, ReadWriteListener) but with added filtering for the poll Interval.
+
+
stopPoll(UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopPoll(UUID, UUID, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.stopPoll(UUID, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
stopPoll(UUID, UUID) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.stopPoll(UUID) for when you have characteristics with identical uuids under different services.
+
+
stopPoll(UUID, UUID, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.stopPoll(UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
stopPoll(UUID, UUID, DescriptorFilter, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.stopPoll(UUID, UUID, Interval, ReadWriteListener) for when you have characteristics with identical uuids under the same service.
+
+
stopPoll(UUID, UUID, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.stopPoll(UUID, Interval) for when you have characteristics with identical uuids under different services.
+
+
stopPoll(UUID[], Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopPoll(UUID[], Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Calls BleDevice.stopPoll(java.util.UUID, Interval) multiple times for you.
+
+
stopPoll(UUID[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Calls BleDevice.stopPoll(java.util.UUID) multiple times for you.
+
+
stopPoll(Iterable<UUID>, Interval, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopPoll(Iterable<UUID>, Interval) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Calls BleDevice.stopPoll(java.util.UUID, Interval) multiple times for you.
+
+
stopPoll(Iterable<UUID>) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Calls BleDevice.stopPoll(java.util.UUID) multiple times for you.
+
+
stopRetrying() - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+ +
+
stopRetryingIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Please
+
+ +
+
stopRssiPoll() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+ +
+
stopScan() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Stops a scan previously started by BleManager.startScan() or its various overloads.
+
+
stopScan(BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Same as BleManager.stopScan() but also unregisters any filter supplied to various overloads of + BleManager.startScan() or BleManager.startPeriodicScan(Interval, Interval) that take an BleManagerConfig.ScanFilter.
+
+
stopScanOnPause - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is true - makes it so BleManager.stopScan() is called automatically after BleManager.onPause().
+
+
stringToByteArray(String) - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
 
+
stringToObject(String) - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDisplayType
+
 
+
subBytes(byte[], int, int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Create a new byte array from the given source, with the given ranges
+
+
subBytes(byte[], int) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Create a new byte array from the given source, starting at the given begin index
+
+
subData(int, int) - Method in class com.idevicesinc.sweetblue.utils.ByteBuffer
+
+
Returns a byte array from this buffer from the given start index, and length + If length is less than 1, an empty byte array will be returned.
+
+
succeed() - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Call this from subclasses to indicate that the transaction has succeeded.
+
+
SUPPORTED_HEART_RATE_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_INCLINATION_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_NEW_ALERT_CATEGORY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_POWER_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_RESISTANCE_LEVEL_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_SPEED_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SUPPORTED_UNREAD_ALERT_CATEGORY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
SweetLogger - Interface in com.idevicesinc.sweetblue
+
 
+
SYSTEM_ID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

T

+
+
target() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The type of GATT object this BleDevice.ReadWriteListener.ReadWriteEvent is for, currently characteristic, descriptor, or rssi.
+
+
target() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The type of GATT object this BleServer.ExchangeListener.ExchangeEvent is for, characteristic or descriptor.
+
+
task() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
+
The type of task for which we are requesting a timeout.
+
+
TaskTimeoutRequestEvent() - Constructor for class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
 
+
taskTimeoutRequestFilter - Variable in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Default is an instance of BleNodeConfig.DefaultTaskTimeoutRequestFilter - set an implementation here to + have fine control over how long individual BleTask instances can take before they + are considered "timed out" and failed.
+
+
TDS_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TEMPERATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TEMPERATURE_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TEMPERATURE_TYPE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TEN_SECS - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Convenience value representing ten seconds.
+
+
thenStopAllScanning() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
thenStopPeriodicScan() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
thenStopScan() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.Please
+
+ +
+
THREE_ZONE_HEART_RATE_LIMITS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TIME_ACCURACY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
time_ota() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Time spent "over the air" - so in the native stack, processing in + the peripheral's embedded software, what have you.
+
+
time_ota() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Time spent "over the air" - so in the native stack, processing in + the peripheral's embedded software, what have you.
+
+
TIME_SOURCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
time_total() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
Total time it took for the operation to complete, whether success + or failure.
+
+
time_total() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
Total time it took for the operation to complete, whether success + or failure.
+
+
TIME_TRIGGER_SETTING - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TIME_UPDATE_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TIME_UPDATE_STATE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TIME_WITH_DST - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TIME_ZONE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TimeEstimator - Class in com.idevicesinc.sweetblue.utils
+
+
A zero-dependency utility class to track running average time of operations + and estimate the completion time of long running operations like firmware updates.
+
+
TimeEstimator(int, double, int) - Constructor for class com.idevicesinc.sweetblue.utils.TimeEstimator
+
+
Lets this class act as a "time remaining" estimator for long-running operations.
+
+
TimeEstimator(int) - Constructor for class com.idevicesinc.sweetblue.utils.TimeEstimator
+
+
Lets this class act as a utility for calculating the running average completion time of arbitrary operations.
+
+
times(Unit<T>) - Method in class com.idevicesinc.sweetblue.utils.Unit
+
+
Returns a new instance that is the result of doing this * other.
+
+
TimeTracker - Class in com.idevicesinc.sweetblue.utils
+
 
+
timing() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
to() - Method in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
+
Returns the "to" date passed into the constructor, + or EpochTime.NULL if null + was originally passed in.
+
+
toBits(BleServerState...) - Static method in enum com.idevicesinc.sweetblue.BleServerState
+
 
+
toBits(BitwiseEnum...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Converts a var-args of BitwiseEnums to an int of their bit values
+
+
toDate() - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Converts to Java's built-in date class.
+
+
toDiskValue() - Method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
+
The integer value to write to disk.
+
+
toDiskValue(State.ChangeIntent) - Static method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
 
+
toDouble() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns the double value of this instance.
+
+
toFixed(double) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
toFraction() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+
Returns .5 for 50%, for example.
+
+
toHistoricalDataSource() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+ +
+
toHistoricalDataSource() - Method in enum com.idevicesinc.sweetblue.NotificationListener.Type
+
+ +
+
toInt_ceil() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+ +
+
toInt_floor() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+ +
+
toInt_round() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
+ +
+
toMilliseconds() - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Converts to milliseconds since 1970, which is currently also how the value is stored internally.
+
+
toSeconds() - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Converts to seconds since 1970.
+
+
toString() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
toString() - Method in class com.idevicesinc.sweetblue.BleDevice.StateListener.StateEvent
+
+
Deprecated.
+
toString() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Returns the device's name and current state for logging and debugging purposes.
+
+
toString() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager.AssertListener.AssertEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager.ResetListener.ResetEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager.StateListener.StateEvent
+
+
Deprecated.
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOhEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.HistoricalDataLogEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.TaskTimeoutRequestFilter.TaskTimeoutRequestEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.AdvertisingListener.AdvertisingEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.ConnectionFailEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.IncomingListener.IncomingEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer.StateListener.StateEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.BleServer
+
+
Pretty-prints the list of connecting or connected clients.
+
+
toString() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.Distance
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.EpochTime
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.HistoricalData
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.Interval
+
 
+
toString() - Method in class com.idevicesinc.sweetblue.utils.Percent
+
 
+
toString(int, State[]) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
toString(Class<?>, Object...) - Static method in class com.idevicesinc.sweetblue.utils.Utils_String
+
 
+
toString(byte[]) - Method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDisplayType
+
 
+
totalTimeReconnecting() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+
The total amount of time since the device disconnected and we started the reconnect process.
+
+
TRAINING_STATUS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TRANSPORT_DISCOVERY_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TREADMILL_DATA - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TRUE_WIND_DIRECTION - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TRUE_WIND_SPEED - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
tryBondingWhileDisconnected - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - some devices can only reliably become BleDeviceState.BONDED while BleDeviceState.DISCONNECTED, + so this option controls whether the library will internally change any bonding flow dictated by BleDeviceConfig.bondFilter when a bond fails and try + to bond again the next time the device is BleDeviceState.DISCONNECTED.
+
+
tryBondingWhileDisconnected_manageOnDisk - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - controls whether any bonding issues worked around if BleDeviceConfig.tryBondingWhileDisconnected is true are remembered on disk + (through SharedPreferences) so that bonding is as stable as possible across application sessions.
+
+
turnOff() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Disables BLE if manager is BleManagerState.ON.
+
+
turnOn() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Enables BLE if manager is currently BleManagerState.OFF or BleManagerState.TURNING_OFF, otherwise does nothing.
+
+
turnOnLocationWithIntent_forOsServices(Activity, int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
If BleManager.isLocationEnabledForScanning_byOsServices() returns false, you can use this method to allow the user to enable location services.
+
+
turnOnLocationWithIntent_forOsServices(Activity) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Overload of BleManager.turnOnLocationWithIntent_forOsServices(Activity, int) if you don't care about result.
+
+
turnOnLocationWithIntent_forPermissions(Activity, int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
If BleManager.isLocationEnabledForScanning_byOsServices() returns false, you can use this method to allow the user to enable location + through an OS intent.
+
+
turnOnWithIntent(Activity, int) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Convenience method to request your user to enable ble in a "standard" way + with an Intent instead of using BleManager.turnOn() directly.
+
+
TWO_ZONE_HEART_RATE_LIMIT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TX_POWER_LEVEL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
TX_POWER_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
txnFailReason() - Method in class com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.ConnectionFailEvent
+
+ +
+
txPower() - Method in class com.idevicesinc.sweetblue.BleManagerConfig.ScanFilter.ScanEvent
+
+
Returns the transmission power of the device in decibels, or BleNodeConfig.INVALID_TX_POWER if device is not advertising its transmission power.
+
+
type() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+
The type of operation, read, write, etc.
+
+
type() - Method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEvent
+
+
Returns the type of characteristic operation, read, write, etc.
+
+
type() - Method in class com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.ReconnectEvent
+
+ +
+
type() - Method in class com.idevicesinc.sweetblue.BleServer.ExchangeListener.ExchangeEvent
+
+
The type of operation, read or write.
+
+
type() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+
The type of operation, read, write, etc.
+
+
+ + + +

U

+
+
uhOh() - Method in class com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOhEvent
+
+
Returns the type of BleManager.UhOhListener.UhOh that occurred.
+
+
uhOhCallbackThrottle - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is 30.0 seconds - BleManager.UhOhListener.UhOh callbacks from BleManager.UhOhListener + can be a little spammy at times so this is an option to throttle them back on a per-BleManager.UhOhListener.UhOh basis.
+
+
unbond() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Opposite of BleDevice.bond().
+
+
unbond() - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+
Device should be unbonded if it isn't already.
+
+
UNBOND_REASON_AUTH_CANCELED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because we canceled the bonding process.
+
+
UNBOND_REASON_AUTH_FAILED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because pins did not match, or remote device did not respond to pin request in time.
+
+
UNBOND_REASON_AUTH_REJECTED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because the other side explicitly rejected bonding.
+
+
UNBOND_REASON_AUTH_TIMEOUT - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because of authentication timeout.
+
+
UNBOND_REASON_DISCOVERY_IN_PROGRESS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because a discovery is in progress.
+
+
UNBOND_REASON_REMOTE_AUTH_CANCELED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because we received an Authentication Cancel by remote end.
+
+
UNBOND_REASON_REMOTE_DEVICE_DOWN - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because we could not contact the remote device.
+
+
UNBOND_REASON_REMOVED - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
An existing bond was explicitly revoked.
+
+
UNBOND_REASON_REPEATED_ATTEMPTS - Static variable in class com.idevicesinc.sweetblue.BleStatuses
+
+
A bond attempt failed because of repeated attempts.
+
+
unbondAll() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Removes bonds for all devices that are BleDeviceState.BONDED.
+
+
unbondIf(boolean) - Static method in class com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.Please
+
+ +
+
UNCERTAINTY - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
undiscover() - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Convenience method that calls BleManager.undiscover(BleDevice).
+
+
undiscover(BleDevice) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Forcefully undiscovers a device, disconnecting it first if needed and removing it from this manager's internal list.
+
+
undiscoverAll() - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Undiscovers all devices that are BleDeviceState.DISCOVERED.
+
+
undiscoverDeviceWhenBleTurnsOff - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is true - only applicable if BleDeviceConfig.retainDeviceWhenBleTurnsOff is also true.
+
+
undiscoveryKeepAlive - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is disabled - If a device exceeds this amount of time since its + last discovery then it is a candidate for being undiscovered.
+
+
Unit<T extends Unit> - Class in com.idevicesinc.sweetblue.utils
+
+
Common abstract base class for all units of measurement, providing default convenience methods + for things like comparison.
+
+
Unit() - Constructor for class com.idevicesinc.sweetblue.utils.Unit
+
 
+
UnitTest - Annotation Type in com.idevicesinc.sweetblue.annotations
+
+
This annotation is used to dictate certain classes and/or fields which are + only used for Unit testing, and should be ignored.
+
+
UNREAD_ALERT_STATUS - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
unregisterContentObserver(ContentObserver) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
unregisterDataSetObserver(DataSetObserver) - Method in class com.idevicesinc.sweetblue.utils.EmptyCursor
+
 
+
unsignedByte(byte) - Static method in class com.idevicesinc.sweetblue.utils.Utils_Byte
+
+
Returns a short, from the given byte, ensuring that it is unsigned.
+
+
update(double, long) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Deprecated. +
- This is marked as deprecated because it will no longer be exposed in v3 (there will be a new way + to have SweetBlue run on a thread of your choosing).
+
+
+
update(double) - Method in class com.idevicesinc.sweetblue.BleTransaction
+
+
Optional convenience method to override if you want to do periodic updates or time-based calculations.
+
+
UpdateLoop - Class in com.idevicesinc.sweetblue.utils
+
+
Deprecated.
+
+
updateLoopCallback - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is null - provide an instance here that will be called at the end of BleManager.update(double, long).
+
+
URI - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
useGattRefresh - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
Default is false - whether to use BluetoothGatt.refresh() right before service discovery.
+
+
useLeTransportForBonding - Variable in class com.idevicesinc.sweetblue.BleDeviceConfig
+
+
The below explanation is wrong, only in that the default is now false.
+
+
USER_CONTROL_POINT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
USER_DATA_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
USER_INDEX - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
usesCharUuid() - Method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns true if the task can have a characteristic UUID associated with it - for now BleTask.READ, BleTask.WRITE, BleTask.TOGGLE_NOTIFY, BleTask.READ_DESCRIPTOR and BleTask.WRITE_DESCRIPTOR.
+
+
UsesCustomNull - Interface in com.idevicesinc.sweetblue.utils
+
+
Interface implemented by some enums and mostly other Immutable structs + that have custom "null" behavior in place of Java's built-in null.
+
+
Utils - Class in com.idevicesinc.sweetblue.utils
+
+
Some static utility methods that are probably not very useful outside the library.
+
+
Utils() - Constructor for class com.idevicesinc.sweetblue.utils.Utils
+
 
+
Utils_Byte - Class in com.idevicesinc.sweetblue.utils
+
+
Utility methods for byte and bit twiddling.
+
+
Utils_Reflection - Class in com.idevicesinc.sweetblue.utils
+
+
Some utilities for dealing with raw byte array scan records.
+
+
Utils_Rssi - Class in com.idevicesinc.sweetblue.utils
+
+
Some static utility methods for RSSI-related calculations.
+
+
Utils_ScanRecord - Class in com.idevicesinc.sweetblue.utils
+
+
Some utilities for dealing with raw byte array scan records.
+
+
Utils_State - Class in com.idevicesinc.sweetblue.utils
+
+
Some helper utilities for dealing with State implementors.
+
+
Utils_String - Class in com.idevicesinc.sweetblue.utils
+
+
Utility methods for string manipulation and creation needed by SweetBlue, mostly for debug purposes.
+
+
Utils_Time - Class in com.idevicesinc.sweetblue.utils
+
+
Utilities for dealing with time with an emphasis on BLE.
+
+
uuid() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
+
The UUID that the data is being loaded for.
+
+
uuid() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
+
The UUID that the data is being queried for.
+
+
uuid() - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
+
Returns the backing UUID
+
+
UuidNameMap - Interface in com.idevicesinc.sweetblue.utils
+
+
Provide an implementation to BleManagerConfig.uuidNameMaps.
+
+
UuidNameMap_ListWrapper - Class in com.idevicesinc.sweetblue.utils
+
+
Convenience implementation that wraps a List of other UuidNameMap instances.
+
+
UuidNameMap_ListWrapper(List<UuidNameMap>) - Constructor for class com.idevicesinc.sweetblue.utils.UuidNameMap_ListWrapper
+
 
+
UuidNameMap_ListWrapper() - Constructor for class com.idevicesinc.sweetblue.utils.UuidNameMap_ListWrapper
+
 
+
uuidNameMaps - Variable in class com.idevicesinc.sweetblue.BleManagerConfig
+
+
Default is null - optional, only used if BleManagerConfig.loggingEnabled is true.
+
+
Uuids - Class in com.idevicesinc.sweetblue.utils
+
+
A collection of standard UUIDs for services, characteristics, and descriptors.
+
+
Uuids() - Constructor for class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
Uuids.GATTCharacteristic - Enum in com.idevicesinc.sweetblue.utils
+
 
+
Uuids.GATTCharacteristicFormatTypeConversionException - Exception in com.idevicesinc.sweetblue.utils
+
 
+
Uuids.GATTDescriptor - Enum in com.idevicesinc.sweetblue.utils
+
 
+
Uuids.GATTDisplayType - Enum in com.idevicesinc.sweetblue.utils
+
 
+
Uuids.GATTFormatType - Enum in com.idevicesinc.sweetblue.utils
+
 
+
uuidSize() - Method in class com.idevicesinc.sweetblue.utils.BleUuid
+
+
Returns the BleUuid.UuidSize of the backing UUID
+
+
UV_INDEX - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

V

+
+
VALID_RANGE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
value() - Method in class com.idevicesinc.sweetblue.DescriptorFilter.DescriptorEvent
+
+
Convenience method to return the value stored in the BluetoothGattDescriptor.
+
+
value - Variable in class com.idevicesinc.sweetblue.utils.Pointer
+
 
+
VALUE_TRIGGER_SETTING - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.annotations.Nullable.Prevalence
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleAdvertisingMode
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleTransmissionPower
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleConnectionPriority
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.BondListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Timing
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Status
+
+
Deprecated.
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Target
+
+
Deprecated.
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEventType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDeviceConfig.RefreshOption
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDeviceOrigin
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleDeviceState
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleManager.DiscoveryListener.LifeCycle
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleManager.ResetListener.Progress
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleManager.UhOhListener.Remedy
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOh
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleManagerState
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.AutoConnectUsage
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Source
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleScanApi
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleScanMode
+
+
Deprecated.
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleScanPower
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.AdvertisingListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Target
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.OutgoingListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServer.ServiceAddListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleServerState
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BleTransaction.EndReason
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.BondRetryFilter.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.NotificationListener.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.NotificationListener.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.AdvertisingFlag
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.BleUuid.UuidSize
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Stage
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.HistoricalDataColumn
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDisplayType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.annotations.Nullable.Prevalence
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingPacket.Option
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleAdvertisingMode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleAdvertisingSettings.BleTransmissionPower
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleCharacteristicPermission
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleCharacteristicProperty
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleConnectionPriority
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDescriptorPermission
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.BondListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Timing
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Status
+
+
Deprecated.
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Target
+
+
Deprecated.
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Type
+
+
Deprecated.
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDeviceConfig.BondFilter.CharacteristicEventType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDeviceConfig.RefreshOption
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDeviceOrigin
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleDeviceState
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
VALUES() - Static method in enum com.idevicesinc.sweetblue.BleDeviceState
+
+
Returns same as BleDeviceState.values(), but for performance reasons this does not return a new array every time.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleManager.DiscoveryListener.LifeCycle
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleManager.ResetListener.Progress
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleManager.UhOhListener.Remedy
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOh
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleManagerState
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleNode.ConnectionFailListener.AutoConnectUsage
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleNodeConfig.HistoricalDataLogFilter.Source
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleNodeConfig.ReconnectFilter.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleScanApi
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleScanMode
+
+
Deprecated.
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleScanPower
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.AdvertisingListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Target
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.ExchangeListener.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.OutgoingListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServer.ServiceAddListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleServerState
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleTask
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BleTransaction.EndReason
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.BondRetryFilter.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
VALUES() - Static method in enum com.idevicesinc.sweetblue.BondRetryFilter.Status
+
 
+
values() - Static method in enum com.idevicesinc.sweetblue.NotificationListener.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.NotificationListener.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.AdvertisingFlag
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.BleUuid.UuidSize
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Stage
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.HistoricalDataColumn
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.State.ChangeIntent
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTCharacteristic
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDescriptor
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTDisplayType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum com.idevicesinc.sweetblue.utils.Uuids.GATTFormatType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
VO2_MAX - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
+ + + +

W

+
+
WAIST_CIRCUMFERENCE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
was(BleManager.DiscoveryListener.LifeCycle) - Method in class com.idevicesinc.sweetblue.BleManager.DiscoveryListener.DiscoveryEvent
+
+ +
+
wasCancelled() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+ +
+
wasCancelled() - Method in enum com.idevicesinc.sweetblue.BleDevice.BondListener.Status
+
 
+
wasCancelled() - Method in enum com.idevicesinc.sweetblue.BleDevice.ConnectionFailListener.Status
+
+ +
+
wasCancelled() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
wasCancelled() - Method in enum com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.Status
+
+
Deprecated.
+ +
+
wasCancelled() - Method in enum com.idevicesinc.sweetblue.BleServer.ConnectionFailListener.Status
+
+ +
+
wasPreviouslyNotEnabled() - Method in enum com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Status
+
 
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleDevice.BondListener.BondEvent
+
+ +
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleDevice.ReadWriteListener.ReadWriteEvent
+
+
Deprecated.
+ +
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataLoadListener.HistoricalDataLoadEvent
+
+ +
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleNode.HistoricalDataQueryListener.HistoricalDataQueryEvent
+
+ +
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleServer.AdvertisingListener.AdvertisingEvent
+
+
Whether or not BleServer.startAdvertising(BleAdvertisingPacket) was successful or not.
+
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleServer.OutgoingListener.OutgoingEvent
+
+ +
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.BleServer.ServiceAddListener.ServiceAddEvent
+
+ +
+
wasSuccess() - Method in enum com.idevicesinc.sweetblue.BleServer.ServiceAddListener.Status
+
+
Returns true if this equals BleServer.ServiceAddListener.Status.SUCCESS.
+
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.TestResult
+
+
Convenience method to see if the MTU test worked or not.
+
+
wasSuccess() - Method in class com.idevicesinc.sweetblue.NotificationListener.NotificationEvent
+
+ +
+
wasUserPrompted() - Method in class com.idevicesinc.sweetblue.BondRetryFilter.RetryEvent
+
+
Returns whether this bond request attempt prompted the user or not.
+
+
WEIGHT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
WEIGHT_MEASUREMENT - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
WEIGHT_SCALE_FEATURE - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
WEIGHT_SCALE_SERVICE_UUID - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
where() - Method in class com.idevicesinc.sweetblue.utils.HistoricalDataQuery
+
 
+
willLocationPermissionSystemDialogBeShown(Activity) - Method in class com.idevicesinc.sweetblue.BleManager
+
+
Returns true if BleManager.turnOnLocationWithIntent_forPermissions(Activity, int) will pop a system dialog, false if it will bring + you to the OS's Application Settings.
+
+
WIND_CHILL - Static variable in class com.idevicesinc.sweetblue.utils.Uuids
+
 
+
withActivity(Activity) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
 
+
withAppData(Object) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Add arbitrary app-specific data which will be passed to the next BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent + through
+
+
withDialog(String) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
If the next stage isn't skipped or BluetoothEnabler.BluetoothEnablerFilter.Status.ALREADY_ENABLED then pop a dialog before
+
+
withDiscoveryListener(BleManager.DiscoveryListener) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Set a BleManager.DiscoveryListener for this scan.
+
+
withImplicitActivityResultHandling() - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
 
+
withRequestCode(int) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Perform the next stage with the given requestCode
+
+
withScanFilter(BleManagerConfig.ScanFilter) - Method in class com.idevicesinc.sweetblue.ScanOptions
+
+
Set a BleManagerConfig.ScanFilter for this scan.
+
+
withToast(String) - Method in class com.idevicesinc.sweetblue.utils.BluetoothEnabler.BluetoothEnablerFilter.Please
+
+
Perform the next stage with a Toast
+
+
write(BleDevice.WriteBuilder) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. +
- Use BleDevice.write(com.idevicesinc.sweetblue.WriteBuilder) instead. This will be removed in v3.0
+
+
+
write(BleDevice.WriteBuilder, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Deprecated. + +
+
+
write(WriteBuilder) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device without a callback.
+
+
write(WriteBuilder, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
write(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device without a callback.
+
+
write(UUID, DescriptorFilter, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device without a callback.
+
+
write(UUID, byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
write(UUID, byte[], DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
write(UUID, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, byte[]) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, DescriptorFilter, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, DescriptorFilter, byte[]) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, byte[], ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, byte[], DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, byte[], ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device without a callback.
+
+
write(UUID, FutureData, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
write(UUID, FutureData, DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
write(UUID, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, FutureData) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, FutureData, DescriptorFilter) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, FutureData) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, FutureData, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, FutureData, ReadWriteListener) for when you have characteristics with identical uuids under different services.
+
+
write(UUID, UUID, FutureData, DescriptorFilter, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.write(UUID, FutureData, ReadWriteListener) for when you have characteristics with identical uuids under the same service.
+
+
write() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
write() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
write_encrypted() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
write_encrypted_mitm() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Permissions
+
 
+
write_no_response() - Method in class com.idevicesinc.sweetblue.utils.GattDatabase.Properties
+
 
+
write_status() - Method in class com.idevicesinc.sweetblue.MtuTestCallback.TestResult
+
+
If MtuTestCallback.TestResult.wasSuccess() returns false, and MtuTestCallback.TestResult.result() is Result#OTHER_FAILURE, this value will hold + the BleDevice.ReadWriteListener.Status from the write which was performed as the test.
+
+
WriteBuilder() - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Basic constructor.
+
+
WriteBuilder(boolean) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+ +
+
WriteBuilder(boolean, UUID) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+ +
+
WriteBuilder(UUID) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+ +
+
WriteBuilder(UUID, UUID) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+ +
+
WriteBuilder(boolean, UUID, UUID) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+ +
+
WriteBuilder(boolean, UUID, UUID, DescriptorFilter) - Constructor for class com.idevicesinc.sweetblue.BleDevice.WriteBuilder
+
+
Deprecated.
+
Main constructor to use.
+
+
WriteBuilder - Class in com.idevicesinc.sweetblue
+
+
Builder class for sending a write over BLE.
+
+
WriteBuilder() - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+
Basic constructor.
+
+
WriteBuilder(boolean) - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+ +
+
WriteBuilder(boolean, UUID) - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+ +
+
WriteBuilder(UUID) - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+ +
+
WriteBuilder(UUID, UUID) - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+ +
+
WriteBuilder(boolean, UUID, UUID, DescriptorFilter) - Constructor for class com.idevicesinc.sweetblue.WriteBuilder
+
+
Main constructor to use.
+
+
writeDescriptor(UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device descriptor without a callback.
+
+
writeDescriptor(UUID, byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device descriptor with a callback.
+
+
writeDescriptor(UUID, UUID, byte[]) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[]) for when you have descriptors with identical uuids under different services.
+
+
writeDescriptor(UUID, UUID, byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[], ReadWriteListener) for when you have descriptors with identical uuids under different characteristics.
+
+
writeDescriptor(UUID, UUID, UUID, byte[], BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[], ReadWriteListener) for when you have descriptors with identical uuids under different characteristics and/or services.
+
+
writeDescriptor(UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device descriptor without a callback.
+
+
writeDescriptor(UUID, FutureData, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Writes to the device with a callback.
+
+
writeDescriptor(UUID, UUID, FutureData) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[]) for when you have descriptors with identical uuids under different services.
+
+
writeDescriptor(UUID, UUID, FutureData, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[], ReadWriteListener) for when you have descriptors with identical uuids under different characteristics.
+
+
writeDescriptor(UUID, UUID, UUID, FutureData, BleDevice.ReadWriteListener) - Method in class com.idevicesinc.sweetblue.BleDevice
+
+
Overload of BleDevice.writeDescriptor(UUID, byte[], ReadWriteListener) for when you have descriptors with identical uuids under different characteristics and/or services.
+
+
writeJSON() - Method in class com.idevicesinc.sweetblue.BleNodeConfig
+
+
Creates and returns a JSONObject that represents all of the mutable settings of this object.
+
+
WrongThreadError - Error in com.idevicesinc.sweetblue.utils
+
+
Most of the methods of core SweetBlue classes like BleDevice, BleManager, and BleServer + must be called from the main thread, similar to how Android will complain if you try to edit a View + from another thread.
+
+
WrongThreadError(String) - Constructor for error com.idevicesinc.sweetblue.utils.WrongThreadError
+
 
+
+ + + +

Z

+
+
ZERO - Static variable in class com.idevicesinc.sweetblue.utils.Distance
+
+
Convenience value for zero meters.
+
+
ZERO - Static variable in class com.idevicesinc.sweetblue.utils.EpochTime
+
+
Convenience instance representing the start date of 1970.
+
+
ZERO - Static variable in class com.idevicesinc.sweetblue.utils.EpochTimeRange
+
 
+
ZERO - Static variable in class com.idevicesinc.sweetblue.utils.Interval
+
+
Convenience value for zero time.
+
+
ZERO - Static variable in class com.idevicesinc.sweetblue.utils.Percent
+
+
Convenience value representing 0%.
+
+
+A B C D E F G H I K L M N O P Q R S T U V W Z 
+ +
+ + + + + + + +
+ + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index.html new file mode 100644 index 0000000..7cb0054 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/index.html @@ -0,0 +1,75 @@ + + + + + +SweetBlue + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-frame.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-frame.html new file mode 100644 index 0000000..29b6a87 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-frame.html @@ -0,0 +1,26 @@ + + + + + +Overview List (SweetBlue) + + + + + + + +

 

+ + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-summary.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-summary.html new file mode 100644 index 0000000..6ea986c --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-summary.html @@ -0,0 +1,170 @@ + + + + + +Overview (SweetBlue) + + + + + + + + +
+ + + + + + + +
+ + +
+

SweetBlue 2.52.15 API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.idevicesinc.sweetblue +
Contains the core public-facing classes BleDevice and BleManager + and most of the internal guts for SweetBlue, the easiest way to do BLE on Android.
+
com.idevicesinc.sweetblue.annotations +
Contains Annotation declarations used throughout the library.
+
com.idevicesinc.sweetblue.backend +
Contains specification and default implementation of "backend" modules for SweetBlue.
+
com.idevicesinc.sweetblue.backend.historical +
Contains specification and default implementation of a "backend" for instances of BleDevice + that stores and manages historical data.
+
com.idevicesinc.sweetblue.compat +
Contains utility classes for hiding away newer API calls.
+
com.idevicesinc.sweetblue.utils +
Contains a few optional utilities that you may find useful, but nothing in here is a core part of the library as far as the library user is concerned.
+
+
+ +
+ + + + + + + +
+ + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-tree.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-tree.html new file mode 100644 index 0000000..40a5f7d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/overview-tree.html @@ -0,0 +1,521 @@ + + + + + +Class Hierarchy (SweetBlue) + + + + + + + + +
+ + + + + + + +
+ + + +
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+
    +
  • com.idevicesinc.sweetblue.annotations.Lambda (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Immutable (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Alpha (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.UnitTest (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Advanced (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Experimental (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Extendable (implements java.lang.annotation.Annotation)
  • +
  • com.idevicesinc.sweetblue.annotations.Nullable (implements java.lang.annotation.Annotation)
  • +
+

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/package-list b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/package-list new file mode 100644 index 0000000..84f48e1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/package-list @@ -0,0 +1,6 @@ +com.idevicesinc.sweetblue +com.idevicesinc.sweetblue.annotations +com.idevicesinc.sweetblue.backend +com.idevicesinc.sweetblue.backend.historical +com.idevicesinc.sweetblue.compat +com.idevicesinc.sweetblue.utils diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/script.js b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/serialized-form.html b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/serialized-form.html new file mode 100644 index 0000000..00c0d83 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/docs/api/serialized-form.html @@ -0,0 +1,140 @@ + + + + + +Serialized Form (SweetBlue) + + + + + + + + + + + +
+

Serialized Form

+
+
+ +
+ + + + + + diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-javadoc.jar b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-javadoc.jar new file mode 100644 index 0000000..c4c79e7 Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-javadoc.jar differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar new file mode 100644 index 0000000..b88a4cd Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar.asc b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar.asc new file mode 100644 index 0000000..0395d48 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15-sources.jar.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Version: BCPG v1.51 + +iQIcBAABAgAGBQJaZhNiAAoJEAoETVz0BrT+358P/0EBr9VlWsUwN7xulO67KK3o +ldEFvQ+cFySYkF0cBWHqJraecG2IlYlEjcVWEfQZjtN6ljv/aoH222U7v4enmrxq +AHqKVfriOy0m0qE2E/CZ+/d/WZGanq30vMRftBdkJPUnsccxAieGMCOs4lCAJhya +eD24IPPQVxCu7oGoyXzIB0cdsFQ34S5ExN0rkZHY4w7eBcDSHK3i4CbGHya7bLxU +NFLp9AUvv7iBr1DXE+/q5dHFuJoGYsmxo1rSslX1q16N8csA/npgSrcFtUcJlbGG +NtuPNZ5d6ATUTr5f7rQKSCFKeu+fi9rNy4ytwZhi1szrqNxc9ahVe4KOuHnqijQ7 +8DNw4FuN2z0Rxw+eqSaEDRp9fV6baPV7YzXTTlmxY9OUxgi9pRRhFW/6PNopKDiq +2NTgad4RgcECR7ZiVAnvogjT8XXVEB7E0fCgJPZBbQ//zpLi1O2oW7PT+HwdofTk +KdwfCZA0EmUqMtSjPxcCai7S4jyzbmzZvKah1sPb+upYnrh3iTfBj1PhfwXQuMz+ +u2fJAKqR22E4i1GA4Va1JvyRYUzl4/DEXZEkSWnimcTxuTt/kophBCYc75aKE4+o +27jIJoxQIYx43CkVKxbvjlZG8MdCn0NgqydnnQuBE2L5myrSYqI+3I3Kw2yM63/L +fkeQbm4nLqqPzxob0CSi +=Af2R +-----END PGP SIGNATURE----- diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15.jar b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15.jar new file mode 100644 index 0000000..fae115a Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/jars/sweetblue_2_52_15.jar differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-cs/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-cs/strings.xml new file mode 100644 index 0000000..8917877 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-cs/strings.xml @@ -0,0 +1,13 @@ + + + Zakázání přístupu ke službám zjišťování polohy znamená, že nebude fungovat nízkoenergetické vyhledávání. + Aplikace vyžaduje v souboru AndroidManifest.xml oprávnění android.permission.ACCESS_COARSE_LOCATION nebo android.permission.ACCESS_FINE_LOCATION! + Klikněte na tlačítko Oprávnění, povolte položku Poloha a stiskněte dvakrát tlačítko Zpět. + Systém Android Marshmallow (6.0+) požaduje k vyhledávání zařízení Bluetooth oprávnění Poloha. Kliknutím na tlačítko Přijmout povolte oprávnění Poloha. + Systém Android Marshmallow (6.0+) požaduje, aby aplikace, která vyhledává zařízení Bluetooth, měla oprávnění Poloha.\n\nSystém Marshmallow rovněž požaduje ke zlepšení zjišťování zařízení Bluetooth služby zjišťování polohy. Tyto služby nejsou nutné k používání této aplikace, ale jsou doporučeny k lepšímu zjišťování zařízení.\n\nKliknutím na tlačítko Přijmout povolte oprávnění Poloha a služby zjišťování polohy. + Systém Android Marshmallow (6.0+) požaduje ke zlepšení vyhledávání zařízení Bluetooth služby zjišťování polohy. Tyto služby nejsou nutné, ale je doporučeno je zapnout, aby bylo možné zlepšit zjišťování zařízení. + Povolte služby zjišťování polohy a stiskněte tlačítko Zpět. + OK + Odmítnout + Přijmout + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-da/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-da/strings.xml new file mode 100644 index 0000000..b4db934 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-da/strings.xml @@ -0,0 +1,13 @@ + + + Hvis du nægter adgang til placering, virker lavenergiscanning ikke. + Appen har brug for android.permission.ACCESS_COARSE_LOCATION eller android.permission.ACCESS_FINE_LOCATION i dens AndroidManifest.xml! + Klik på knappen Tilladelser, aktiver Placering, og tryk så to gange på tilbage. + Android Marshmallow (6.0+) kræver placeringstilladelse for at kunne scanne for Bluetooth-enheder. Accepter for at give placeringstilladelse. + Android Marshmallow (6.0+) kræver placeringstilladelse, for at appen kan scanne for Bluetooth-enheder.\n\nMarshmallow kræver også placeringsservices for at forbedre opdagelse af Bluetooth-enheder. Selvom det ikke kræves til brug i denne app, anbefales det for bedre at kunne opdage enheder.\n\nAccepter for at give placeringstilladelse og tillade placeringsservices. + Android Marshmallow (6.0+) kræver placeringsservices for at forbedre scanning for Bluetooth-enheder. Det er ikke obligatorisk, men det anbefales at slå placeringsservices til for at forbedre opdagelse af enheder. + Aktiver placeringsservices, og tryk så på tilbage. + OK + Nægt + Accepter + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-de/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-de/strings.xml new file mode 100644 index 0000000..7e92523 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-de/strings.xml @@ -0,0 +1,13 @@ + + + Wenn Sie den Zugriff auf Standortdienste verweigern, können mit BLE keine Geräte erkannt werden. + Die App erfordert android.permission.ACCESS_COARSE_LOCATION oder android.permission.ACCESS_FINE_LOCATION in AndroidManifest.xml! + Bitte klicken Sie auf den Button der Genehmigungen, erlauben Sie den Zugriff auf die Standortdienste und drücken Sie dann zweimal auf die Zurück-Taste. + Bei Android Marshmallow (ab 6.0) ist der Zugriff auf Standortdienste erforderlich, um Bluetooth-Geräte zu finden. Bitte gewähren Sie den Zugriff. + Bei Android Marshmallow (ab 6.0) ist der Zugriff auf Standortdienste erforderlich, um Bluetooth-Geräte zu finden.\n\nBei Marshmallow ist der Zugriff auf Standortdienste hilfreich, jedoch nicht zwingend für die Verwendung der App erforderlich. Er wird empfohlen, um Geräte besser zu erkennen.\n\nBitte gewähren Sie den Zugriff auf Standortdienste. + Bei Android Marshmallow (ab 6.0) ist der Zugriff auf Standortdienste hilfreich, jedoch nicht zwingend für die Verwendung der App erforderlich. Er wird empfohlen, um Geräte über Bluetooth besser zu erkennen. + Bitte gewähren Sie den Zugriff auf Standortdienste und drücken Sie dann auf die Zurück-Taste. + OK + Ablehnen + Akzeptieren + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-es/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-es/strings.xml new file mode 100644 index 0000000..d0d75f7 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-es/strings.xml @@ -0,0 +1,13 @@ + + + Si se deniega el acceso a la localización el escaneo de baja energía no funcionará. + La aplicación necesita android.permission.ACCESS_COARSE_LOCATION o android.permission.ACCESS_FINE_LOCATION en su AndroidManifest.xml. + Haz clic en el botón Permisos, activa la Localización y luego pulsa atrás dos veces. + Android Marshmallow (6.0+) necesita permiso de localización para poder escanear en busca de dispositivos Bluetooth. Acepta este mensaje para permitir el permiso de localización. + Android Marshmallow (6.0+) necesita permiso de localización para la aplicación para que se pueda escanear en busca de dispositivos Bluetooth.\n\nMarshmallow también necesita los servicios de localización para mejorar la detección de dispositivos Bluetooth. A pesar de que su uso no es obligatorio en esta aplicación, se recomienda para mejorar la detección de dispositivos.\n\nAcepta este mensaje para permitir el permiso y los servicios de localización. + Android Marshmallow (6.0+) necesita los servicios de localización para el escaneo de dispositivos Bluetooth de baja energía. Se recomienda encarecidamente activar los servicios de localización para mejorar la detección de dispositivos. + Activa los servicios de localización y luego pulsa atrás. + Aceptar + Denegar + Aceptar + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr-rCA/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr-rCA/strings.xml new file mode 100644 index 0000000..b5b3930 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr-rCA/strings.xml @@ -0,0 +1,13 @@ + + + Refuser l\'accès de localisation signifie que le balayage à faible énergie ne fonctionnera pas. + L\'application nécessite : android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION in its AndroidManifest.xml! + Veuillez appuyer sur la touche des permissions, ensuite activer la localisation, puis appuyer sur le retour deux fois. + Android Marshmallow (6.0+) requiert la permission de localisation afin de pouvoir balayer pour des appareils Bluetooth. Veuillez accepter pour autoriser la permission de localisation. + Android Marshmallow (6.0+) requiert la permission de localisation afin de pouvoir balayer pour des appareils Bluetooth.\n\nMarshmallow requiert aussi les services de localisation pour améliorer la découverte d\'appareils Bluetooth. Bien qu\'elle ne soit pas requise pour l\'utilisation de cette application, elle est recommandée afin de mieux découvrir des appareils.\n\nVeuillez accepter afin d\'autoriser la permission et les services de localisation. + Android Marshmallow (6.0+) requiert les services de localisation pour le balayage amélioré d\'appareils Bluetooth. Il est recommandé que les services de localisation soient activés pour améliorer la découverte d\'appareils. + Veuillez activer la localisation des services puis appuyez sur le retour. + OK + Refuser + Accepter + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr/strings.xml new file mode 100644 index 0000000..b055511 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-fr/strings.xml @@ -0,0 +1,13 @@ + + + Refuser l\'accès à la position empêche le fonctionnement de l\'analyse \"énergie basse\". + L\'application doit android.permission.ACCESS_COARSE_LOCATION ou android.permission.ACCESS_FINE_LOCATION dans son AndroidManifest.xml ! + Cliquez sur le bouton Autorisations, autorisez les services de localisation puis appuyez deux fois sur Retour. + Android Marshmallow (6.0+) demande l\'Autorisation des Services de localisation pour pouvoir rechercher des appareils Bluetooth. Veuillez autoriser les services de localisation. + Android Marshmallow (6.0+) demande l\'autorisation des Services de localisation pour que l\'application puisse détecter les appareils Bluetooth.\n\nMarshmallow demande également l\'activation des Services de localisation pour améliorer la détection d\'appareils Bluetooth. Si l\'activation des services de localisation n\'est pas obligatoire, elle est conseillée pour améliorer la détection d\'appareils.\n\nVeuillez autoriser les Services de localisation. + Android Marshmallow (6.0+) demande l\'autorisation des Services de localisation pour rechercher des appareils Bluetooth avec plus d\'efficacité. Si l\'activation des services de localisation n\'est pas obligatoire, elle est conseillée pour améliorer la détection d\'appareils. + Activez les services de localisation puis appuyez sur Retour. + OK + Refuser + Accepter + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-it/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-it/strings.xml new file mode 100644 index 0000000..cf3ccb1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-it/strings.xml @@ -0,0 +1,13 @@ + + + Se rifiuti l\'accesso alla tua posizione, la scansione a basa potenza non funzionerà. + L\'app necessita di android.permission.ACCESS_COARSE_LOCATION o android.permission.ACCESS_FINE_LOCATION in AndroidManifest.xml! + Fare clic sul pulsante Autorizzazioni, abilitare Posizione e quindi premere due volte su Indietro. + Android Marshmallow (6.0+) richiede l\'autorizzazione alla geolocalizzazione per eseguire la scansione dei dispositivi Bluetooth. Si prega di fornire tale autorizzazione. + Android Marshmallow (6.0+) richiede l\'autorizzazione alla geolocalizzazione per eseguire la scansione dei dispositivi Bluetooth.\n\nMarshmallow richiede inoltre i servizi di localizzazione per migliorare la rilevazione dei dispositivi Bluetooth. Tale autorizzazione non è necessaria per l\'app, ma è consigliata per migliorare l\'individuazione dei dispositivi.\n\nSi prega di fornire l\'autorizzazione e di abilitare i servizi. + Android Marshmallow (6.0+) richiede i servizi di localizzazione per migliorare la scansione dei dispositivi Bluetooth. È consigliabile, anche se non obbligatorio, abilitare questi servizi per migliorare la rilevazione dei dispositivi. + Abilitare i servizi di localizzazione e quindi premere Indietro + OK + Rifiuta + Accetta + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ja/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ja/strings.xml new file mode 100644 index 0000000..45e0a75 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ja/strings.xml @@ -0,0 +1,13 @@ + + + 位置情報へのアクセスを許可しない場合、省エネルギーのスキャン機能はご利用いただけません。 + android.permission.ACCESS_COARSE_LOCATIONまたはandroid.permission.ACCESS_FINE_LOCATIONがアプリのAndroidManifest.xmlに含まれている必要があります。 + パーミッションボタンをクリックしてから位置情報をオンにし、2回押して戻ります。 + Android Marshmallow (6.0+)では、Bluetooth端末をスキャンする際に位置情報のパーミッション(許可)が必要となります。必ず許可するようにしてください。 + Android Marshmallow (6.0+)では、アプリ内でBluetooth端末をスキャンする際に位置情報のパーミッション(許可)が必要となります。\n\nMarshmallowではさらに、Bluetooth端末をより検出しやすくするため、位置情報サービスの使用が求められます。位置情報サービスはアプリ内では必須ではありませんが、端末を検出しやすくするため使用が推奨されています。\n\n位置情報のパーミッションとサービスを許可するようにしてください。 + Android Marshmallow (6.0+)では、Bluetooth省エネ端末のスキャンの向上のため、位置情報サービスが必要となります。端末の検出をより行いやすくするため、位置情報サービスをオンにすることを強くお勧めします。 + 位置情報サービスをオンにしてから戻ってください。 + OK + 拒否 + 許可 + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ko/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ko/strings.xml new file mode 100644 index 0000000..7a368c3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ko/strings.xml @@ -0,0 +1,13 @@ + + + 위치 서비스를 사용하지 않으면 저전력 스캔이 불가능합니다. + 앱의 AndroidManifest.xml 안에 android.permission.ACCESS_COARSE_LOCATION 또는 android.permission.ACCESS_FINE_LOCATION이 필요합니다! + 허용 버튼을 클릭하고 위치 서비스를 켠 후 뒤로 가기를 두 번 누르세요. + Android Marshmallow(6.0+)가 블루투스 기기를 스캔하려면 위치 서비스를 허용해야 합니다. 위치 서비스 허용을 선택해주세요. + Android Marshmallow(6.0+)가 블루투스 기기를 스캔하려면 위치 서비스를 허용해야 합니다.\n\n또한 Marshmallow가 블루투스 기기 스캔 성능을 향상시키려면 위치 서비스가 필요합니다. 이 앱에서 반드시 필요하지는 않으나 스캔 성능 향상에 권장합니다.\n\n위치 서비스 허용 및 서비스 사용을 선택해주세요. + Android Marshmallow(6.0+)가 블루투스 기기를 보다 정확히 스캔하려면 위치 서비스를 허용해야 합니다. 이 앱에서 반드시 필요하지는 않으나 스캔 성능 향상에 권장합니다. + 위치 서비스를 켠 후 뒤로 가기를 누르세요. + 확인 + 허용 안함 + 허용 + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nl/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nl/strings.xml new file mode 100644 index 0000000..13c6b4d --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nl/strings.xml @@ -0,0 +1,13 @@ + + + Zonder locatietoegang werkt Low Energy-scannen niet. + App vereist android.permission.ACCESS_COARSE_LOCATION of android.permission.ACCESS_FINE_LOCATION in AndroidManifest.xml! + Klik op de knop Toestemmingen, schakel Locatie in en druk vervolgens tweemaal op terug. + Android Marshmallow (6.0+) vereist Locatietoestemming om te scannen naar Bluetooth-apparaten. Accepteer om Locatietoestemming toe te staan. + Android Marshmallow (6.0+) vereist Locatietoestemming voor de app om te scannen naar Bluetooth-apparaten.\n\nMarshmallow vereist ook Locatieservices om het detecteren van Bluetooth-apparaten te verbeteren. Het is niet vereist voor gebruik in de app, het wordt wel aanbevolen om apparaten beter te detecteren.\n\nAccepteer om Locatietoestemming- en services toe te staan. + Android Marshmallow (6.0+) vereist Locatieservices om beter Bluetooth-apparaten te kunnen detecteren. We raden de inschakeling van Locatieservices aan om apparaatdetectie te verbeteren. + Schakel Locatieservices in en druk op terug. + OK + Afwijzen + Accepteren + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nn/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nn/strings.xml new file mode 100644 index 0000000..f6cb22f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-nn/strings.xml @@ -0,0 +1,13 @@ + + + Hvis du avslår stedstjenester, vil du ikke kunne bruke enhetsoppdagelse på lav energi. + Appen trenger android.permission.ACCESS_COARSE_LOCATION eller android.permission.ACCESS_FINE_LOCATION i AndroidManifest.xml! + Vennligst klikk på knappen Tillatelser, deretter aktiver Sted og trykk tilbake to ganger. + Android Marshmallow (6.0+) krever Stedstjenester for å kunne se etter andre Bluetooth-enheter. Vennligst godta å bruke Stedstjenester. + Android Marshmallow (6.0+) krever Stedstillatelse for å kunne se etter andre Bluetooth-enheter.\n\nMarshmallow krever også Stedstjenester for å forbedre Bluetooth-scanning. Mens det imidlertid ikke er påkrevd for å bruke denne applikasjonen, er det anbefalt for bedre oppdagelse av andre enheter.\n\nVennligst godta å bruke Stedstjenester. + Android Marshmallow (6.0+) krever Stedstjenester for forbedret Bluetooth-scanning. Mens det imidlertid ikke er påkrevd, er det anbefalt å slå denne innstillingen på for å forbedre enhetsoppdagelse. + Vennligst tillat Stedstjenester og så trykk tilbake. + OK + Avslå + Godta + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pl/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pl/strings.xml new file mode 100644 index 0000000..59649aa --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pl/strings.xml @@ -0,0 +1,13 @@ + + + Odrzucenie dostępu do lokalizacji spowoduje brak możliwości skanowania z ograniczonym poborem energii. + Aplikacja potrzebuje android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION in its AndroidManifest.xml! + Proszę nacisnąć przycisk Pozwolenia, po czym włączyć opcję Lokalizacja i nacisnąć Wróć dwa razy. + Android Marshmallow (6.0+) potrzebuje zgody na dostęp do lokalizacji, aby móc skanować urządzenia Bluetooth. Proszę wyrazić zgodę na dostęp do lokalizacji. + Android Marshmallow (6.0+) potrzebuje zgody na dostęp do lokalizacji, aby móc skanować urządzenia Bluetooth.\n\nMarshmallow również potrzebuje dostępu do usług lokalizacyjnych, aby zapewnić lepsze wyszukiwanie urządzeń Bluetooth. Wyrażenie zgody na dostęp do lokalizacji nie jest wymagane do korzystania z tej aplikacji, jednak zalecane, aby zapewnić lepsze wyszukiwanie urządzeń.\n\nProszę wyrazić zgodę na dostęp do lokalizacji i na usługi lokalizacyjne. + Android Marshmallow (6.0+) potrzebuje zgody na dostęp do lokalizacji, aby zapewnić lepsze skanowanie urządzeń Bluetooth. Wyrażenie zgody na dostęp do lokalizacji nie jest wymagane, jednak zaleca się włączenie usług lokalizacyjnych, aby zapewnić lepsze wyszukiwanie urządzeń. + Proszę włączyć Usługi lokalizacyjne, po czym nacisnąć \"Wróć\" dwa razy. + OK + Odmów + Akceptuj + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pt-rBR/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pt-rBR/strings.xml new file mode 100644 index 0000000..117b919 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-pt-rBR/strings.xml @@ -0,0 +1,13 @@ + + + Recusar o acesso à localização fará com que o escaneamento com pouca energia não funcione. + O aplicativo precisa de android.permission.ACCESS_COARSE_LOCATION ou android.permission.ACCESS_FINE_LOCATION iem seu AndroidManifest.xml. + Clique no botão Permissões, ative a Localização e pressione Voltar duas vezes. + O Android Marshmallow (6.0+) requer a Permissão de localização para poder escanear dispositivos Bluetooth. Aceite para ativar a Permissão de localização. + O Android Marshmallow (6.0+) requer a Permissão de localização para poder escanear dispositivos Bluetooth.\n\nO Marshmallow também requer Serviços de localização para melhorar a detecção de dispositivos Bluetooth. Embora não seja necessário para usar neste aplicativo, é recomendado para detectar melhor os dispositivos.\n\nAceite para ativar Permissão e serviços de localização. + O Android Marshmallow (6.0+) requer Serviços de localização para um melhor escaneamento de dispositivos Bluetooth. Embora não seja necessário, é recomendado que os Serviços de localização estejam ativados para uma melhor detecção de dispositivos. + Ative Serviços de localização e pressione Voltar. + OK + Recusar + Aceitar + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ru/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ru/strings.xml new file mode 100644 index 0000000..7c1fe51 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-ru/strings.xml @@ -0,0 +1,13 @@ + + + Если запретить доступ к геоданным, BLE-сканирование перестанет работать. + Для приложения нужно указать android.permission.ACCESS_COARSE_LOCATION или android.permission.ACCESS_FINE_LOCATION в файле AndroidManifest.xml! + Нажмите кнопку «Разрешения», включите определение местоположения, а затем дважды нажмите «Назад». + Чтобы можно было сканировать устройства с Bluetooth, системе Android Marshmallow (6.0 и более поздней версии) требуется доступ к геоданным. Нажмите «Принять», чтобы разрешить доступ. + Чтобы приложение сканировало устройства с Bluetooth, системе Android Marshmallow (6.0 и более поздней версии) требуется доступ к геоданным.\n\nТакже для улучшенного обнаружения устройств с Bluetooth системе нужно определение местоположения. Когда оно не требуется в приложении, рекомендуем его использовать.\n\nНажмите «Принять», чтобы разрешить доступ к геоданным и включить определение местоположения. + Для улучшенного сканирования устройств с Bluetooth системе Android Marshmallow (6.0 и более поздней версии) нужно определение местоположения. Когда эта функция не требуется, рекомендуем включить ее, чтобы улучшить обнаружение устройств. + Включите определение местоположения и нажмите «Назад». + ОК + Отклонить + Принять + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-sv/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-sv/strings.xml new file mode 100644 index 0000000..72844c6 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-sv/strings.xml @@ -0,0 +1,13 @@ + + + Om du nekar tillgång till platstjänster fungerar inte low energy-skanning. + Appen behöver android.permission.ACCESS_COARSE_LOCATION eller android.permission.ACCESS_FINE_LOCATION i sitt AndroidManifest.xml! + Vänligen tryck på Behörigheter-knappen, aktivera Plats och tryck sedan på Tillbaka två gånger. + Android Marshmallow (6.0+) kräver Platsåtkomst för att kunna skanna efter Bluetooth-enheter. Vänligen acceptera för att tillåta Platsåtkomst. + Android Marshmallow (6.0+) kräver Platsåtkomst för att appen ska kunna skanna efter Bluetooth-enhterer.\n\nMarshmallow behöver Platstjänster för att förbättra upptäckt av Bluetooth-enheter. Det är inget krav för att appen ska fungea, men rekommenderas för att bättre upptäcka andra enheter.\n\nVänligen acceptera för att tillåta Platsåtkomst och Platstjänster. + Android Marshmallow (6.0+) använder Platstjänster för att förbättra skanning efter Bluetooth-enheter. Det är inget krav för att appen ska fungera, men det rekommenderas att Platstjänster är aktiverat för att bättre upptäcka andra enheter. + Vänligen aktivera Platstjänster och knacka därefter på tillbaka. + OK + Neka + Godkänn + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rCN/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rCN/strings.xml new file mode 100644 index 0000000..c05b3a4 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rCN/strings.xml @@ -0,0 +1,13 @@ + + + 如果拒絕位置資訊存取權限,則無法使用低功耗掃描功能。 + 此應用程式的 AndroidManifest.xml 中必須有 android.permission.ACCESS_COARSE_LOCATION 或 android.permission.ACCESS_FINE_LOCATION! + 請按一下 [權限] 按鈕,然後啟用定位功能,最後按返回兩次。 + Android Marshmallow (6.0+) 需要位置權限才能搜尋藍牙裝置。請按下 [接受] 以便授予位置權限。 + Android Marshmallow (6.0+) 需要應用程式的位置權限才能搜尋藍牙裝置。\n\nMarshmallow 也需要定位服務才能提高藍牙裝置搜尋能力。雖然這並非應用程式的必要選項,但還是建議您啟用這項功能,以便提高裝置搜尋能力。\n\n請按下 [接受] 以便授予位置權限和定位服務權限。 + Android Marshmallow (6.0+) 需要定位服務才能提高藍牙裝置掃描能力。雖然這並非必要選項,但還是建議您啟用定位服務,以便提高裝置搜尋能力。 + 請啟用定位服務,然後按返回。 + + 拒絕 + 接受 + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rTW/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rTW/strings.xml new file mode 100644 index 0000000..3192154 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values-zh-rTW/strings.xml @@ -0,0 +1,13 @@ + + + 拒绝位置服务,意味着将不能进行低能量扫描。 + 本应用需要在其 AndroidManifest.xml 文件中有 android.permission.ACCESS_COARSE_LOCATION 或 android.permission.ACCESS_FINE_LOCATION! + 请点按”权限“按钮,启用”定位“,然后按两次后退。 + Android Marshmallow (6.0+) 需要定位权限才能扫描蓝牙设备。请接受以允许定位权限。 + Android Marshmallow (6.0+) 需要定位权限才能扫描蓝牙设备。\n\nMarshmallow 也需要定位服务,才能改进蓝牙设备发现。尽管本应用不需要,但建议您将定位服务打开,以获得更好的设备发现能力。\n\n请接受,以允许使用定位权限和定位服务。 + Android Marshmallow (6.0+) 需要定位服务才能使用改进的蓝牙设备扫描功能。尽管不需要,但建议将定位服务打开,以提高设备发现能力。 + 请启用定位服务,然后按后退。 + + 拒绝 + 接受 + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values/strings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values/strings.xml new file mode 100644 index 0000000..2d227b1 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/res/values/strings.xml @@ -0,0 +1,17 @@ + + + Denying location access means low-energy scanning will not work. + App needs android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION in its AndroidManifest.xml! + Please click the Permissions button, then enable Location, then press back twice. + Android Marshmallow (6.0+) requires Location Permission to be able to scan for Bluetooth devices. Please accept to allow Location Permission. + Android Marshmallow (6.0+) requires Location Permission to the app to be able to scan for Bluetooth devices. + +Marshmallow also requires Location Services to improve Bluetooth device discovery. While it is not required for use in this app, it is recommended to better discover devices. + +Please accept to allow Location Permission and Services. + Android Marshmallow (6.0+) requires Location Services for improved Bluetooth device scanning. While it is not required, it is recommended that Location Services are turned on to improve device discovery. + Please enable Location Services then press back. + OK + Deny + Accept + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/.name b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/.name new file mode 100644 index 0000000..b3a3b3a --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/.name @@ -0,0 +1 @@ +android_studio \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/compiler.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/copyright/profiles_settings.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/gradle.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/gradle.xml new file mode 100644 index 0000000..52cb389 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/runConfigurations.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/vcs.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/build.gradle b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/build.gradle new file mode 100644 index 0000000..55249d9 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/build.gradle @@ -0,0 +1,32 @@ +apply plugin: 'com.android.application' +android { + compileSdkVersion 26 + + buildToolsVersion '26.0.2' + + defaultConfig { + applicationId "com.idevicesinc.sweetblue.ble_util" + minSdkVersion 18 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } + + dependencies { + compile project(':sweetblue') + implementation "com.android.support:recyclerview-v7:26.1.0" + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} +dependencies { +} \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/AndroidManifest.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..3923abf --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/AndroidManifest.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/AlertManager.java b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/AlertManager.java new file mode 100644 index 0000000..da69e4f --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/AlertManager.java @@ -0,0 +1,62 @@ +package com.idevicesinc.sweetblue.ble_util; + +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.DialogInterface.OnClickListener; +import com.idevicesinc.sweetblue.BleManager; +import com.idevicesinc.sweetblue.BleManager.UhOhListener.Remedy; +import com.idevicesinc.sweetblue.BleManager.UhOhListener.UhOhEvent; + + +public class AlertManager +{ + public static void onEvent(final Context context, final UhOhEvent uhOhEvent) + { + AlertDialog.Builder builder = new AlertDialog.Builder(context); + + final AlertDialog dialog = builder.create(); + + OnClickListener clickListener = new OnClickListener() + { + @Override public void onClick(DialogInterface dialog, int which) + { + dialog.dismiss(); + + if(which == DialogInterface.BUTTON_POSITIVE) + { + BleManager.get(context).reset(); + } + } + }; + + String title = context.getResources().getString(R.string.uhoh_title); + + title = title.replace("{{reason}}", uhOhEvent.uhOh().name()); + + dialog.setTitle(title); + + if(uhOhEvent.uhOh().getRemedy() == Remedy.RESET_BLE) + { + dialog.setMessage(context.getResources().getString(R.string.uhoh_message_nuke)); + + dialog.setButton(DialogInterface.BUTTON_POSITIVE, context.getResources().getString(R.string.uhoh_message_nuke_drop), clickListener); + + dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getResources().getString(R.string.uhoh_message_nuke_cancel), clickListener); + } + else if(uhOhEvent.uhOh().getRemedy() == Remedy.RESTART_PHONE) + { + dialog.setMessage(context.getResources().getString(R.string.uhoh_message_phone_restart)); + + dialog.setButton(DialogInterface.BUTTON_NEUTRAL, context.getResources().getString(R.string.uhoh_message_phone_restart_ok), clickListener); + } + else if(uhOhEvent.uhOh().getRemedy() == Remedy.WAIT_AND_SEE) + { + dialog.setMessage(context.getResources().getString(R.string.uhoh_message_weirdness)); + + dialog.setButton(DialogInterface.BUTTON_NEUTRAL, context.getResources().getString(R.string.uhoh_message_weirdness_ok), clickListener); + } + + dialog.show(); + } +} \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/MyActivity.java b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/MyActivity.java new file mode 100644 index 0000000..cac37ab --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/java/com/idevicesinc/sweetblue/ble_util/MyActivity.java @@ -0,0 +1,413 @@ +package com.idevicesinc.sweetblue.ble_util; + +import android.app.Activity; +import android.os.Bundle; +import android.support.v7.widget.RecyclerView; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.LinearLayout; +import android.widget.TextView; +import android.widget.Toast; +import com.idevicesinc.sweetblue.BleDevice; +import com.idevicesinc.sweetblue.BleDevice.BondListener; +import com.idevicesinc.sweetblue.BleDevice.DefaultConnectionFailListener; +import com.idevicesinc.sweetblue.BleDeviceState; +import com.idevicesinc.sweetblue.BleManager; +import com.idevicesinc.sweetblue.BleManager.DiscoveryListener; +import com.idevicesinc.sweetblue.BleManager.NativeStateListener; +import com.idevicesinc.sweetblue.BleManager.StateListener; +import com.idevicesinc.sweetblue.BleManager.UhOhListener; +import com.idevicesinc.sweetblue.BleManagerConfig; +import com.idevicesinc.sweetblue.BleManagerState; +import com.idevicesinc.sweetblue.DeviceStateListener; +import com.idevicesinc.sweetblue.ManagerStateListener; +import com.idevicesinc.sweetblue.utils.BluetoothEnabler; +import com.idevicesinc.sweetblue.utils.Interval; +import com.idevicesinc.sweetblue.utils.Utils_String; +import java.util.ArrayList; +import java.util.List; + + +// A slightly more in-depth application to show how to do various operations with SweetBlue. +public class MyActivity extends Activity +{ + // We're keeping an instance of BleManager for convenience, but it's not really necessary since it's a singleton. It's helpful so you + // don't have to keep passing in a Context to retrieve it. + private BleManager m_bleManager; + + // Here we maintain a list of all discovered BleDevices so that we can display that later on in a RecyclerView. + private List m_bleDeviceList = new ArrayList<>(); + + private RecyclerViewAdapter m_recyclerViewAdapter = new RecyclerViewAdapter(); + + // We arbitrarily create a scan timeout of 5 seconds. + private static final Interval SCAN_TIMEOUT = Interval.secs(5.0); + + + + @Override protected void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + + setContentView(R.layout.my_activity); + + BleManagerConfig config = new BleManagerConfig(); + + // Run SweetBlue's update loop in a background thread. The default is to run on the UI thread, which is a legacy option. The default + // will be false in version 3. + config.runOnMainThread = false; + + // Only enable logging in debug builds + config.loggingEnabled = BuildConfig.DEBUG; + + // The scan report delay doesn't work properly on the Pixel, so we're disabling it here. This is another legacy option which will default + // to disabled in version 3. If this isn't disabled, then the result will be that on the Pixel, it will take about 5 seconds to find the + // first device. + config.scanReportDelay = Interval.DISABLED; + + // Disabling undiscovery so the list doesn't jump around...ultimately a UI problem so should be fixed there eventually. + config.undiscoveryKeepAlive = Interval.DISABLED; + + // Get the instance of the BleManager, and pass in the config. + m_bleManager = BleManager.get(this, config); + + // Set a listener for when we get an error, otherwise known as an "UhOh". These UhOhEvents also come with some best-guess suggestions for remedies. + m_bleManager.setListener_UhOh(this::onUhOh); + + // You must cast this method reference, as there are 2 setListener_State() methods in BleManager (this will change in v3 to only be one) + m_bleManager.setListener_State((ManagerStateListener) this::onManagerStateEvent); + + // This listener listens to the native state of the android BluetoothManager (as opposed to SweetBlue's managed state above) + m_bleManager.setListener_NativeState(this::onNativeStateEvent); + + // Set the discovery listener. You can pass in a listener when calling startScan() if you want, but in most cases, this is preferred so you don't + // have to keep passing in the listener when calling any of the startScan methods. + m_bleManager.setListener_Discovery(this::onDiscovery); + + // The BluetoothEnabler will take care of requesting the necessary permissions on Android M and above. It needs A> Bluetooth to be on of course, + // B> Location permissions, and C> Location services enabled in order for a BLE scan to return any results. + BluetoothEnabler.start(this, new BluetoothEnabler.DefaultBluetoothEnablerFilter() + { + @Override public Please onEvent(BluetoothEnablerEvent bluetoothEnablerEvent) + { + + // We call super here to allow the default implementation take care of the details of enabling. We want to make sure + // it does everything it needs to do before calling any start scan methods + Please please = super.onEvent(bluetoothEnablerEvent); + + // If the enabler is now done, we can proceed. + if(bluetoothEnablerEvent.isDone()) + { + setEnableButton(); + + setDisableButton(); + + setUnbondAllButton(); + + setNukeButton(); + + setScanInfinitelyButton(); + + setStopScanButton(); + + setScanForFiveSecondsButton(); + + setScanPeriodicallyButton(); + + setAbstractedStatesTextView(); + + setNativeStatusTextView(); + + setRecyclerView(); + } + + // Return the Please we got from above now. + return please; + } + }); + } + + private void setEnableButton() + { + final Button enableButton = findViewById(R.id.enableButton); + + enableButton.setOnClickListener(view -> m_bleManager.turnOn()); + } + + private void setDisableButton() + { + final Button disableButton = findViewById(R.id.disableButton); + + disableButton.setOnClickListener(view -> m_bleManager.turnOff()); + } + + private void setUnbondAllButton() + { + final Button unbondAllButton = findViewById(R.id.unbondAllButton); + + unbondAllButton.setOnClickListener(view -> m_bleManager.unbondAll()); + } + + private void setNukeButton() + { + final Button nukeButton = findViewById(R.id.nukeButton); + + nukeButton.setOnClickListener(view -> m_bleManager.reset()); + } + + private void setScanInfinitelyButton() + { + final Button scanInfinitelyButton = findViewById(R.id.scanInfinitelyButton); + + scanInfinitelyButton.setOnClickListener(view -> m_bleManager.startScan()); + } + + private void setStopScanButton() + { + final Button stopScanButton = findViewById(R.id.stopScanButton); + + stopScanButton.setOnClickListener(view -> + { + // Use stopAllScanning here so that if you decide to switch to/from periodic scan to an infinite one, you don't have to change + // the stop method to call. + m_bleManager.stopAllScanning(); + }); + } + + + private void setScanForFiveSecondsButton() + { + final Button scanForFiveSecondsButton = findViewById(R.id.scanForFiveSecondsButton); + + int timeout = (int) SCAN_TIMEOUT.secs(); + + scanForFiveSecondsButton.setText(getString(R.string.scan_for_x_sec).replace("{{seconds}}", timeout + "")); + + scanForFiveSecondsButton.setOnClickListener(view -> m_bleManager.startScan(SCAN_TIMEOUT)); + } + + private void setScanPeriodicallyButton() + { + final Button scanPeriodicallyButton = findViewById(R.id.scanPeriodicallyButton); + + int timeout = (int) SCAN_TIMEOUT.secs(); + + scanPeriodicallyButton.setText(getString(R.string.scan_for_x_sec_repeated).replace("{{seconds}}", timeout + "")); + + scanPeriodicallyButton.setOnClickListener(view -> m_bleManager.startPeriodicScan(SCAN_TIMEOUT, SCAN_TIMEOUT)); + } + + private void setAbstractedStatesTextView() + { + final TextView abstractedStatesTextView = findViewById(R.id.abstractedStatesTextView); + + abstractedStatesTextView.setText(Utils_String.makeStateString(BleManagerState.values(), m_bleManager.getStateMask())); + } + + private void setNativeStatusTextView() + { + final TextView nativeStatusTextView = findViewById(R.id.nativeStatusTextView); + + nativeStatusTextView.setText(Utils_String.makeStateString(BleManagerState.values(), m_bleManager.getNativeStateMask())); + } + + private void setRecyclerView() + { + final RecyclerView recyclerView = findViewById(R.id.recyclerView); + + recyclerView.setAdapter(m_recyclerViewAdapter); + + recyclerView.getItemAnimator().setChangeDuration(0); + } + + + // Adapter for our recyclerview. This hooks up the layout for each device, and sets the click listeners for the relevant buttons. + private class RecyclerViewAdapter extends RecyclerView.Adapter + { + @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) + { + final View view = LayoutInflater.from(MyActivity.this).inflate(R.layout.device_cell, parent, false); + + return new ViewHolder(view); + } + + @Override public void onBindViewHolder(final ViewHolder viewHolder, final int position) + { + final BleDevice device = m_bleDeviceList.get(position); + + // Background color. + viewHolder.contentLinearLayout.setBackgroundColor(getResources().getColor(position % 2 == 0 ? R.color.light_blue : R.color.dark_blue)); + + // Device name. + String name = device.getName_normalized(); + + if(name.length() == 0) + { + name = device.getMacAddress(); + } + else + { + name += "(" + device.getMacAddress() + ")"; + } + + viewHolder.nameTextView.setText(name); + + // Connect button. + viewHolder.connectButton.setOnClickListener(view -> device.connect()); + + // Disconnect button. + viewHolder.disconnectButton.setOnClickListener(view -> device.disconnect()); + + // Bond button + viewHolder.bondButton.setOnClickListener(view -> device.bond()); + + // Unbond button. + viewHolder.unbondButton.setOnClickListener(view -> device.unbond()); + + // Status. + viewHolder.statusTextView.setText(Utils_String.makeStateString(BleDeviceState.values(), device.getStateMask())); + } + + @Override public int getItemCount() + { + return m_bleDeviceList.size(); + } + } + + private class ViewHolder extends RecyclerView.ViewHolder + { + private LinearLayout contentLinearLayout; + + private TextView nameTextView; + + private Button connectButton; + + private Button disconnectButton; + + private Button bondButton; + + private Button unbondButton; + + private TextView statusTextView; + + private ViewHolder(View view) + { + super(view); + + contentLinearLayout = view.findViewById(R.id.contentLinearLayout); + + nameTextView = view.findViewById(R.id.nameTextView); + + connectButton = view.findViewById(R.id.connectButton); + + disconnectButton = view.findViewById(R.id.disconnectButton); + + bondButton = view.findViewById(R.id.bondButton); + + unbondButton = view.findViewById(R.id.unbondButton); + + statusTextView = view.findViewById(R.id.statusTextView); + } + } + + private void onUhOh(UhOhListener.UhOhEvent uhOhEvent) + { + AlertManager.onEvent(this, uhOhEvent); + } + + private void onManagerStateEvent(StateListener.StateEvent stateEvent) + { + setAbstractedStatesTextView(); + + setNativeStatusTextView(); + } + + private void onNativeStateEvent(NativeStateListener.NativeStateEvent nativeStateEvent) + { + setAbstractedStatesTextView(); + + setNativeStatusTextView(); + } + + private void onDiscovery(DiscoveryListener.DiscoveryEvent discoveryEvent) + { + if(discoveryEvent.was(DiscoveryListener.LifeCycle.DISCOVERED)) + { + BleDevice device = discoveryEvent.device(); + + m_bleDeviceList.add(device); + + m_recyclerViewAdapter.notifyItemInserted(m_bleDeviceList.size() - 1); + + // You must cast this method reference, as there are 2 setListener_State() methods in BleDevice (this will change in v3 to only be one) + device.setListener_State((DeviceStateListener) this::onDeviceStateEvent); + + device.setListener_ConnectionFail(new SimpleConnectionFailListener()); + + device.setListener_Bond(this::onBondEvent); + } + else if(discoveryEvent.was(DiscoveryListener.LifeCycle.UNDISCOVERED)) + { + BleDevice device = discoveryEvent.device(); + + int position = m_bleDeviceList.indexOf(device); + + m_bleDeviceList.remove(device); + + m_recyclerViewAdapter.notifyItemRemoved(position); + + device.setListener_State((BleDevice.StateListener) null); + + device.setListener_ConnectionFail(null); + + device.setListener_Bond(null); + } + } + + private void onDeviceStateEvent(BleDevice.StateListener.StateEvent stateEvent) + { + BleDevice device = stateEvent.device(); + + int position = m_bleDeviceList.indexOf(device); + + m_recyclerViewAdapter.notifyItemChanged(position); + } + + private void onBondEvent(BondListener.BondEvent bondEvent) + { + final String message = bondEvent.device().getName_debug() + " bond attempt finished with status " + bondEvent.status(); + + Toast.makeText(this, message, Toast.LENGTH_LONG).show(); + } + + + + private class SimpleConnectionFailListener extends DefaultConnectionFailListener + { + @Override public Please onEvent(final ConnectionFailEvent connectionFailEvent) + { + // Like in the BluetoothEnabler callback higher up in this class, we want to allow the default implementation do what it needs to do + // However, in this case, we check the resulting Please that is returned to determine if we need to do anything yet. + Please please = super.onEvent(connectionFailEvent); + + // If the returned please is NOT a retry, then SweetBlue has given up trying to connect, so let's show an error. + if(!please.isRetry()) + { + // As the ConnectionFailListener returns a value, it cannot be automatically posted to the main thread. So, we post to the UI thread + // here to avoid any crashes. + runOnUiThread(() -> + { + final String message = connectionFailEvent.device().getName_debug() + " connection failed with " + connectionFailEvent.failureCountSoFar() + " retries - " + connectionFailEvent.status(); + + Toast.makeText(MyActivity.this, message, Toast.LENGTH_LONG).show(); + }); + } + + // Return the please from the default listener implementation. + return please; + } + } + +} \ No newline at end of file diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-hdpi/ic_launcher.png b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..96a442e Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-hdpi/ic_launcher.png differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-ldpi/ic_launcher.png b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..9923872 Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-ldpi/ic_launcher.png differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-mdpi/ic_launcher.png b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..359047d Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-mdpi/ic_launcher.png differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-xhdpi/ic_launcher.png b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..71c6d76 Binary files /dev/null and b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/drawable-xhdpi/ic_launcher.png differ diff --git a/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/layout/device_cell.xml b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/layout/device_cell.xml new file mode 100644 index 0000000..f6a8073 --- /dev/null +++ b/Ble_Scan_Connect_App/app/src/main/lib/sweetblue/samples/ble_util/android_studio/app/src/main/res/layout/device_cell.xml @@ -0,0 +1,76 @@ + + + + + + + + +