{
this.activity = context;
commandPublisher = new PtpIpCommandPublisher(CAMERA_IP, CONTROL_PORT, true, false);
- liveViewControl = new NikonLiveViewControl(context, this, 20);
+ liveViewControl = new NikonLiveViewControl(context, this, 30);
asyncReceiver = new PtpIpAsyncResponseReceiver(CAMERA_IP, ASYNC_RESPONSE_PORT);
statusChecker = new NikonStatusChecker(activity, commandPublisher, CAMERA_IP, EVENT_PORT);
canonConnection = new NikonConnection(context, provider, this, statusChecker);
return (if (callback != null && callback.isReceiveMulti)
{
// 受信したら逐次「受信したよ」と応答するパターン
+ Log.v(TAG, " receiveMulti() : $delayMs [id:${command.id}]")
receiveMulti(command, delayMs)
}
else
{
+ Log.v(TAG, " receiveSingle() : $delayMs [id:${command.id}]")
receiveSingle(command, delayMs)
})
// 受信した後、すべてをまとめて「受信したよ」と応答するパターン
Log.v(TAG, " --- SEND RETRY ---")
return (true)
}
+ callback?.receivedMessage(id, null)
+ return (false)
}
var targetLength: Int
var receivedLength: Int