LRemote
LRemote is a singleton object that allows user to design a remote control UI. It's main purpose is to hold the UI control settings and convert them to LBLE GATT attributes.
LRemote initializes and uses LBLE library implicitly. Therefore, we suggest preventing mixing calls to LRemote and LBLE library.
To use it,
#include <LRemote.h>
in your LinkIt 7697 Arduino sketch.Call setName(), setGrid() and setOrientation() to configure the device and remote UI canvas grid first.
Add control objects with addControls() API.
Call begin() to initiate the device and start advertisement to LinkIt Remote mobile app.
Use connected() to check if the mobile app has connected.
Call process() periodically to update control status and value.
Methods
setName()
setGrid()
setOrientation()
addControl()
begin()
connected()
process()
Set the device name. Note that BLE advertisement have length limitation, so this name may be truncated when being advertised.
Syntax
Parameters
name: a String representing the name of the device.
Returns
none
Initialize the underlying BLE device and start advertisement. This API implicitly calls LBLE.begin()
Syntax
none
Returns
none
Last updated