sendListenRequest method

AsyncReply sendListenRequest(
  1. int instanceId,
  2. int index
)

Implementation

AsyncReply<dynamic> sendListenRequest(int instanceId, int index) {
  var reply = new AsyncReply<dynamic>();
  var c = _callbackCounter++;
  _requests.add(c, reply);

  sendParams()
    ..addUint8(0x40 | IIPPacketAction.Listen)
    ..addUint32(c)
    ..addUint32(instanceId)
    ..addUint8(index)
    ..done();
  return reply;
}