I am working with CANbus device configuration from my iPad application.
The Process is when i press one button command send to CANbus device with NMSSH channel to CANbus device. There are 3 commands that I am passing to CANbus device from our iPad application. But here our CANBus command pass request fast to CANbus device. And after request for response it takes 7 to 9 second time to respond to our request.
Following is the code that we are executing for session check and CANbus command for CANbus device.
1) For session check following command is executed.
NMSSHSession *session = [NMSSHSession connectToHost:<hostURL> withUsername:<Username>];
if(session.isConnected){
[session authenticateByPassword:<password>];
}
if(session.isAuthorized){
NSLog(@"Authentication success");
}
2) For execution of CANbus command on CANbus device is as follows:
NSError *error = nil;
NSString *response = [session.channel execute:<Some CANSend command> error:&error];
On the above response code i am getting Delay of 7 to 9 seconds after execution of CANbus device command.
Please help me to get this done.