EUC BLE Library
Toggle table of contents
1.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
EUC BLE Library
euc-ble-session
/
io.github.tritbool.euc.ble.session
/
ProtocolSession
Protocol
Session
class
ProtocolSession
(
val
protocol
:
SyncEucProtocol
,
timerCapacity
:
Int
=
32
)
(
source
)
Synchronous protocol session; the caller serializes inputs and supplies monotonic time.
Members
Constructors
Protocol
Session
Link copied to clipboard
constructor
(
protocol
:
SyncEucProtocol
,
timerCapacity
:
Int
=
32
)
Properties
armed
Timer
Count
Link copied to clipboard
val
armedTimerCount
:
Int
next
Deadline
Link copied to clipboard
val
nextDeadline
:
Long
?
protocol
Link copied to clipboard
val
protocol
:
SyncEucProtocol
Functions
advance
Link copied to clipboard
fun
advance
(
now
:
Long
)
after
Input
Link copied to clipboard
fun
afterInput
(
now
:
Long
)
close
Link copied to clipboard
fun
close
(
)
on
Notification
Link copied to clipboard
fun
onNotification
(
bytes
:
ByteArray
,
now
:
Long
)
poll
Output
Link copied to clipboard
fun
pollOutput
(
)
:
ProtocolOutput
?
reset
Link copied to clipboard
fun
reset
(
now
:
Long
)