ble.init()

 
Type function
Library ble.*
Return value None
Keywords
See also

Overview

This init method pass the listener to catch ble events.

Syntax

ble.init( listener )
listener (required)

function. the listener to catch ble events.

Examples

local ble = require 'plugin.ble'

local function listener( event )
    print( "Received event from Library plugin (" .. event.name .. "): ", event.type, event.phase )
end

ble.init( listener )

results matching ""

    No results matching ""