COMPort.useThreshold() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to COMPort Class Summary

The COMPort Class has been deprecated in Zinc 4.0. It is included for legacy support but is no longer maintained and maybe removed completely in a future 4.x update.

Availability
Windows

Usage
mdm.COMPort.useThreshold(enable:Boolean, threshold:Number):Void

Parameters
enable:Boolean Enable/disable threshold mode

threshold:Number - Maximum bytes allowed in each transmission

Returns
Nothing

Description
When enabled, the COMPort.onCOMPortData event will be fired only when the specified amount of bytes (or more) has been recieved.

Notes
None

Example Code
//If you know that you will be receiving 10 bytes at a time, your corresponding syntax would be:
mdm.COMPort.useThreshold(true, "10");

mdm.COMPort Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page