Welcome¶
Type | Library |
Corona Store | Bonbonbear Thermometer |
Sample Code | View Sample on GitHub |
Platforms | Android, iOS |
Overview¶
The Bonbonbear thermometer plugin provides API access to the Bluetooth body temperature thermometer (http://www.linktop.com.cn/products/thermometer/index.html). With this plugin, you are able to find available thermometers in the vicinity, connect to them, and view imformation such as name, temperature, or battery status.
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.bonbonbearThermometer"] = { -- required publisherId = "bonbonbearThermometer.camdev.com", }, }, }
Syntax¶
local bonbonbearThermometer = require "plugin.bonbonbearThermometer"