public class BluetoothCotManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cotUID |
protected MapView |
mapView |
protected java.lang.String |
name |
Constructor and Description |
---|
BluetoothCotManager(BluetoothReader reader,
MapView mapView,
java.lang.String cotUID,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
publish(java.lang.String p,
byte[] address,
int port,
int ttl)
Publish the message to a given address and port.
|
void |
start() |
void |
stop() |
protected final MapView mapView
protected final java.lang.String cotUID
protected final java.lang.String name
public BluetoothCotManager(BluetoothReader reader, MapView mapView, java.lang.String cotUID, java.lang.String name)
public void start()
public void stop()
public static void publish(java.lang.String p, byte[] address, int port, int ttl)
p
- is the payload to be publishedaddress
- is the address to publish the payload toport
- is the port to publish the payload tottl
- 0 for local device