receiveHello

fun receiveHello(r: Record, paired: ByteArray?, token: ByteArray?): Record(source)

Return

HELLO_ACK or REJECT

Parameters

paired

the stored central static key, or null

token

the open pairing token, or null


fun receiveHello(r: Record, isKnown: (ByteArray) -> Boolean, token: ByteArray?): Record(source)

isKnown says whether a static key belongs to one of the paired centrals (iPhone, Mac…).


fun receiveHello(r: Record, isKnown: (ByteArray) -> Boolean, tokenFor: (ByteArray) -> ByteArray?): Record(source)

tokenFor gives the pairing token a pair-mode HELLO from that static key must prove (null: pairing closed).