ble: Plugin API Docs

Type Library
Corona Store ble

Overview

The ble plugin can be used in your Corona project. It enables you to communicate with BLE(Bluetooth low energy) devices. The plugin is only supported in iOS currently and it's still in beta.

Sample Code

https://github.com/keviner2004/clala-studio-corona-sdk-bluetooth-plugin-sample-codes

Syntax

local ble = require "plugin.ble"

Functions

ble.init()
ble.discover()
ble.stopDiscover()
ble.connect()
ble.disconnect()

Properties

Project Configuration

Corona Store Activation

In order to use this plugin, you must activate the plugin at the Corona Store.

SDK

When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
{
    plugins =
    {
        -- key is the name passed to Lua's 'require()'
        ["plugin.ble"] =
        {
            -- required
            publisherId = "com.clalastudio",
            supportedPlatforms = { iphone=true, android=false, osx=false, win32=false }
        },
    },        
}

Enterprise

If you have activated this plugin, you can download this plugin from the corresponding plugin page in the Corona Store.

Platform-specific Notes

Android version is still in development.

Resources

Sample Code

You can access sample code here.

Support

More support is available from the Clala Studio team:

Compatibility

Platform Supported
iOS YES
Android No
Android (GameStick) No
Android (Kindle) No
Android (NOOK) No
Android (Ouya) No
Mac App No
Win32 App No
Windows Phone 8 No
Corona Simulator (Mac) No
Corona Simulator (Win) No

results matching ""

    No results matching ""