Software Serial Port Monitor Protocol Analyzer Data Logger
Serial Port Monitor Protocol Analyzer Data Logger - Com Port Monitoring and Analyzing Software for Windows

ITerminalSession.sent Event

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
sent(handler: (data: Uint8Array) => void): number;
sent(eventId: number): void;
Remarks
This event is fired when new data is sent to the serial device.

First overload is used to bind new handler to the event. It returns a numeric eventId which then may be passed to second overload to unbind a handler.

Parameters
data: Uint8Array
Sent bytes in JavaScript array.
Examples

Sample sent data handler for a text protocol.

Javascript

var user_session = terminal.sessions[0];
var eventId = user_session.sent(function(data)
{
  alert(data.length + " bytes sent to " + user_session.FriendlyName + ".\n");
});

// ...
// Unbind event handler when not needed anymore
user_session.sent(eventId);
    

See Also

  • ITerminalManager
  • ITerminalSession
< PreviousTopNext >
Copyright © 2018 HHD Software. All rights reserved.