ConnectedJacquardTag

public interface interface ConnectedJacquardTag extends JacquardTag

This is a tag in connected state.

A connected tag is obtained by callingJacquardManager.

Methods

serialNumber

public String serialNumber()

The tags serial number.

ReturnValue

Name Description
String

getCustomAdvName

public Signal<String> getCustomAdvName()

Signal for observing the name of the tag.

ReturnValue

Name Description
Signal<String>

tagComponent

public Component tagComponent()

The component of the tag.

ReturnValue

Name Description
Component

gearComponent

public Component gearComponent()

The component of the gear.

ReturnValue

Name Description
Component

getComponents

public List<Component> getComponents()

Returns the list of all component which are associated to current tag.

ReturnValue

Name Description
List<Component>

dfuManager

public DfuManager dfuManager()

The DfuManger for firmware update.

ReturnValue

Name Description
DfuManager

getConnectedGearSignal

public Signal<GearState> getConnectedGearSignal()

Signal for observing the connected gear.

ReturnValue

Name Description
Signal<GearState>

setTouchMode

public Signal<Boolean> setTouchMode(Component gearComponent, TouchMode touchMode)

Sets the tag in the specifiedTouchModemode. For this command, tag should be attached to the gear.

Parameters

Name Description
Component gearComponent

the attached gear component

TouchMode touchMode

the mode need to be set

ReturnValue

Name Description
Signal<Boolean>

True if command is successful. False otherwise.

subscribe

public <Res>Signal<Res> subscribe(NotificationSubscription<Res> notificationSubscription)

Subscribes to notification.

Parameters

Name Description
NotificationSubscription<Res> notificationSubscription

the notification to subscribe to

ReturnValue

Name Description
Signal<Res>

a Signal emitting the responses

getDataTransport

public Signal<> getDataTransport()

ReturnValue

Name Description
Signal<>

getRawData

public Signal<byte> getRawData()

ReturnValue

Name Description
Signal<byte>

getRemoteModules

public Signal<List<Module>> getRemoteModules()

ReturnValue

Name Description
Signal<List<Module>>

requestConnectionPriority

public void requestConnectionPriority(int priority)

This function will send a connection parameter update request to the remote device.

Parameters

Name Description
int priority

Request a specific connection priority. Must be one of {@link BluetoothGatt#CONNECTION_PRIORITY_BALANCED}, BluetoothGatt#CONNECTION_PRIORITY_HIGH or BluetoothGatt#CONNECTION_PRIORITY_LOW_POWER.

ReturnValue

Name Description
void

enqueue

public <Res, Request extends ProtoCommandRequest<Res>>Signal<Res> enqueue(Request request, int retries, long timeout)

Sends a request to the tag.

Parameters

Name Description
Request request

the request to execute

int retries

number of retries if the request fails

long timeout

timeout duration in milliseconds

ReturnValue

Name Description
Signal<Res>

a Signal emitting a single response

enqueue

public <Res, Request extends ProtoCommandRequest<Res>>Signal<Res> enqueue(Request request, int retries)

Sends a request to the tag.

Parameters

Name Description
Request request

the request to execute

int retries

number of retries if the request fails

ReturnValue

Name Description
Signal<Res>

a Signal emitting a single response

enqueue

public <Res, Request extends ProtoCommandRequest<Res>>Signal<Res> enqueue(Request request)

Sends a request to the tag.

Parameters

Name Description
Request request

the request to execute

ReturnValue

Name Description
Signal<Res>

a Signal emitting a single response

sendData

public Signal<Boolean> sendData(byte[] packet)

Send non-fragmented data to the ujt over data/raw characteristics.

Parameters

Name Description
byte[] packet

ReturnValue

Name Description
Signal<Boolean>

getAckSignal

public Signal<Byte> getAckSignal()

Returns a signal to receive ack packets sent by ujt.

ReturnValue

Name Description
Signal<Byte>