Home  Contents

rawio:ttnEnableEvents

Rawio Core4 Lua Event System

SYNOPSIS

result = handle:ttnEnableEvents(flag)

DESCRIPTION

Enable/disable diagnostic event reporting on a TTN interface as specified by the boolean value flag. The events can be read via rawio:ttnEvent().

Event availability is reported via the POLLPRI flag in conjuction with the event callback API (See event:add()).

Event reporting causes some CPU load. Turn off reporting when no longer required.

RETURN VALUE

On success, returns true. On failure, returns nil. In case of an error, the error can be retrieved using rawio:lastError().