| Modifier and Type | 87 |Constant Field | 88 |Value | 89 |
|---|---|---|
93 |
94 | public static final int |
95 | MESH_MESSAGE_STATUS_FAIL |
96 | 1 |
97 |
100 |
101 | public static final int |
102 | MESH_MESSAGE_STATUS_FAIL_NO_MESH |
103 | 3 |
104 |
107 |
108 | public static final int |
109 | MESH_MESSAGE_STATUS_FAIL_TIMEOUT |
110 | 2 |
111 |
114 |
115 | public static final int |
116 | MESH_MESSAGE_STATUS_NO_MESH_NODE |
117 | 4 |
118 |
121 |
122 | public static final int |
123 | MESH_MESSAGE_STATUS_OK |
124 | 0 |
125 |
128 |
129 | public static final int |
130 | MESH_MESSAGE_STATUS_TOO_LONG |
131 | 5 |
132 |
See: Description
77 || Interface | 85 |Description | 86 |
|---|---|
| UbuduMeshDelegate | 90 |
91 | Interface describing Ubudu mesh delegate
92 | |
93 |
| UbuduMeshManager | 96 |
97 | Class describing the ubudu mesh manager
98 | |
99 |
| UbuduMeshNode | 102 |
103 | Class representing a reference mesh node dedicated for Ubudu mesh use.
104 | |
105 |
| Class | 114 |Description | 115 |
|---|---|
| UbuduMeshSDK | 119 |
120 | Created by mgasztold on 04/11/15.
121 | |
122 |
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:
79 |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:
91 |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.
111 |Each annotation type has its own separate page with the following sections:
115 |Each enum has its own separate page with the following sections:
126 |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.
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.
144 |The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
148 |These links take you to the next or previous class, interface, package, or related page.
152 |These links show and hide the HTML frames. All pages are available with or without frames.
156 |The All Classes link shows all classes and interfaces except non-static nested types.
160 |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.
164 |The Constant Field Values page lists the static final fields and their values.
168 |public class UbuduMeshSDK
111 | extends java.lang.Object
112 | | Modifier and Type | 129 |Method and Description | 130 |
|---|---|
static UbuduMeshSDK |
133 | getInstance() |
134 |
UbuduMeshManager |
137 | getMeshManager(android.content.Context context)
138 | Retruns UbuduMeshManager instance
139 | |
140 |
static java.lang.String |
143 | getVersion()
144 | Returns the version number of the SDK, as a string major.minor.maintainance
145 | |
146 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static UbuduMeshSDK getInstance()176 |
public static java.lang.String getVersion()189 |
public UbuduMeshManager getMeshManager(android.content.Context context)203 |
context - application contextpublic interface UbuduMeshNode
103 | | Modifier and Type | 120 |Method and Description | 121 |
|---|---|
android.bluetooth.BluetoothDevice |
124 | getDevice() |
125 |
java.util.Date |
128 | getLastSeenAt() |
129 |
java.lang.Integer |
132 | getProximity() |
133 |
java.lang.Double |
136 | getRssi() |
137 |
boolean |
140 | isConnectable() |
141 |
boolean |
144 | isMeshEnabled() |
145 |
boolean isConnectable()168 |
boolean isMeshEnabled()181 |
android.bluetooth.BluetoothDevice getDevice()194 |
java.lang.Integer getProximity()207 |
java.lang.Double getRssi()220 |
java.util.Date getLastSeenAt()233 |
public interface UbuduMeshDelegate
103 | | Modifier and Type | 120 |Method and Description | 121 |
|---|---|
void |
124 | meshConnectionSucceed(UbuduMeshNode node)
125 | Callback method indicating that the Mesh is successfully connected.
126 | |
127 |
void |
130 | meshDisconnected()
131 | Callback method indicating that the Mesh is disconnected.
132 | |
133 |
void |
136 | meshIsConnectingToNode(UbuduMeshNode node)
137 | Callback method indicating that the Mesh is connecting to the node.
138 | |
139 |
void |
142 | meshIsDisconnecting()
143 | Callback method indicating that the Mesh is disconnecting.
144 | |
145 |
void |
148 | onReceiveMeshMessage(byte[] meshIdData,
149 | byte[] meshMessageData)
150 | Method which is called after receiveing mesh message from the connected node.
151 | |
152 |
void |
155 | onSendMeshMessage(int status)
156 | Method called after sending a mesh message.
157 | |
158 |
void |
161 | onUpdateVisibleAndConnectableNodes(java.util.ArrayList<UbuduMeshNode> nodes)
162 | Method which is called after BLE scanning to update nearby mesh nodes.
163 | |
164 |
void |
167 | startFailed()
168 | Callback method indicating that the Mesh could not be started.
169 | |
170 |
void |
173 | startSucceed()
174 | Callback method indicating that the Mesh was started successfully.
175 | |
176 |
void |
179 | stopFailed()
180 | Callback method indicating that the Mesh could not be stopped.
181 | |
182 |
void |
185 | stopSucceed()
186 | Callback method indicating that the Mesh was stopped successfully.
187 | |
188 |
void onSendMeshMessage(int status)211 |
status - of the message.
215 |
216 | See also:UbuduMeshManager.MESH_MESSAGE_STATUS_OK,
219 | UbuduMeshManager.MESH_MESSAGE_STATUS_FAIL,
220 | UbuduMeshManager.MESH_MESSAGE_STATUS_FAIL_TIMEOUT,
221 | UbuduMeshManager.MESH_MESSAGE_STATUS_FAIL_NO_MESH,
222 | UbuduMeshManager.MESH_MESSAGE_STATUS_NO_MESH_NODE,
223 | UbuduMeshManager.MESH_MESSAGE_STATUS_TOO_LONGvoid onUpdateVisibleAndConnectableNodes(java.util.ArrayList<UbuduMeshNode> nodes)234 |
nodes - list of mesh nodesvoid onReceiveMeshMessage(byte[] meshIdData, 248 | byte[] meshMessageData)249 |
meshIdData - - address of the sender (mesh device id of the sender node)meshMessageData - - message datavoid startSucceed()264 |
void startFailed()274 |
void stopSucceed()284 |
void stopFailed()294 |
void meshIsConnectingToNode(UbuduMeshNode node)304 |
node - which mesh is connecting to.void meshConnectionSucceed(UbuduMeshNode node)318 |
node - connected nodevoid meshIsDisconnecting()332 |
void meshDisconnected()342 |