.peekdata Method

Function:

Returns the string containing the "preview" of data from the RX buffer of the BLE interface. The data is NOT removed from the buffer.

Syntax:

bt.peekdata(maxinplen as word) as string

Returns:

String containing data from the RX buffer

See Also:

Receiving Data


Part

Description

maxinplen

Maximum number of bytes to preview


Details

The length of the returned data is limited by one of the three factors, whichever is smaller: the amount of data in the RX buffer itself, capacity of the receiving string variable, and the limit set by the maxinplen argument.

As string variables can hold up to 255 bytes of data, this method will only allow you to preview up to this number of bytes.


.peekdata Method

Details