readrfid()

Function Definition: readrfid(duration = 5)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
durationintThe duration for which the read operation will be tried in seconds.0-605

Description

The function activates the RFID sensor to read any nearby RFID tags for the specified time. Once identified, the value of the reading is stored in the local system which can be used from the other functions. The function also reports whether the operation is completed or not. If any RFID tag is scanned the block returns 1, else it returns 0.

Example

There are no examples documented for this article.
Table of Contents