274
Platforms
©2000-2008 Tibbo Technology Inc.
transitions.
8.3.4.3
.Pressed R/O Property
Function:
Returns the current button state.
Type:
Enum (no_yes, byte)
Value Range:
0- NO: the button is not pressed.
1- YES: the button is pressed.
See Also:
---
Details
This property reflects an immediate state of the hardware at the very moment the
property is read -- no "debouncing" performed. This is different from the
and
events, as well as the
R/O property, which all take debouncing into the account.
8.3.4.4
.Time R/O Property
Function:
Returns the time (in 0.5 second intervals) elapsed since
the button was last pressed or released (whichever
happened) later.
Type:
Byte
Value Range:
0-255
See Also:
---
Details
It only makes sense to read this property inside the
or
event handlers. Once the value of this property reaches
255 (127 seconds) it stays at 255 (there is no roll-over to 0). Elapsed time is not
counted when the execution of your application is paused.
Sock Object
This is the sockets object. It allows you to maintain up to 16 simultaneous UDP or
TCP ("normal" or HTTP) connections (actual number supported by the platform
may be lower, due to memory constraints).
Very commonly, each connection is called a "socket". This is the term we will use
as well. On other programming systems, sockets are often dynamic, created and
destroyed as needed. With TiOS, you receive a preset number of sockets which
have already been created for you, and just use them. A socket may be idle, but it
will still be there.
273
273
274
273
273