android-public-sdk
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Commercial SDK Software release Contents goTenna-public-sdk.aar - compiled goTenna SDK that can be imported into any android app codebase gotennasdksample/ - source code for sample application for using the SDK javadocs/index.html - start point for viewing the SDK documentation Requires Android OS 4.3+ KNOWN ISSUES This is a beta release, your feedback matters! We expect to make updates based on feedback before the SDK is released to the public. 1. We plan to add a notification that there is a firmware update available for the goTenna. The feature already exists to perform the firmware update, but the additional feature will notify when its available and if its a critical update. INSTALLATION To install, you must import the .aar file into your AndroidStudio/Eclipse project. In AndroidStudio you can do this by going to File > New > Module > Import .JAR/.AAR Package See GoTennaSDKSample as an example on how to do this. GETTING STARTED Before you can use the sdk, you must setup your application token. This must be done before you use any other methods from the SDK, and is ideally done inside a custom Application class, or the very first launched Activity in your app. If you don't have an application token, request one from [email protected]. See the example app for reference on how to do this. APP TOKEN goTenna uses an App Token to differentiate between different apps on the network. Apps can only communicate with other apps that use the same App Token. This allows an app to coexist with the goTenna app, but not intermix the messages being received. You must set your application token before attempting to pair with a goTenna. Pairing occurs via the GTConnectionManager. See class documentation and the example app for reference on how to interact with the GTConnectionManager. Previously we supplied a default developer App Token, however that Token will be terminated and all developers will be required to request an App Token from http://www.gotenna.com/pages/sdk CONNECTING/DISCONNECTING You application pairs with a goTenna over BTLE. Confirm your hardware has BTLE capabilities before beginning. GIDs A goTenna ID is the unique identifier that your goTenna will use to identify itself and others will use to send you messages. Before you can start sending/receiving messages, a goTenna needs to have this value set. The example app can be referenced for this. You need to call GTCommandCenter.getInstance().setGotennaGID(long gid). GIDs are managed completely through CommandCenter class. See class documentation and the example app for reference. BASICS/FAQs The goTenna sdk allows an app developer to easily get up and running using a network of goTennas. At it's core, you'll be able to: - Send messages to every other goTenna in range (broadcasting). - Send messagea to another single goTenna. - Create a group of specific users and message everyone in this group. Messages may be optionally encrypted using default functionality provided by the SDK. MESSAGES - Outgoing messages are limited in size to 256 bytes - There is currently a limit of sending only 5 messages per minute. This is to prevent developers from flooding the radio channels with their own app's content, potnetially blocking other apps from communicating. Message Types * One-to-one - sending a message to one other user only - you will receive acknowledgement of receipt * Broadcast - sending a message to all users within ranges - this uses the reserved GID '1111111111' - on receiving this type of message you can recognize it as a broadcast based on the GID '1111111111' - sender does not receive any acknowledgements of receipt by receivers * Group - sending a message to group created with a finite number of members (< 10) - see example app for creating a group and being notified of being added to a group - sender does not receive any acknowledgements of receipt by receivers