HC Module Plugin

This plugin allows you to detect accelerometer data from HC-05 chip( note this plugin is only used for accelerometer data)

Platforms:

Android Only

Functions:

hcModule.init(listener)

-- start searching

listener(function)- fires events: event.type = "device found" event.address=bluetooth device address event.name=bluetooth device name, event.type = "data" accelerometerX accelerometerY accelerometerZ angleX angleY angleZ angularVelocityX angularVelocityY angularVelocityZ

hcModule.isConnected()

-- returns boolean true if connected

hcModule.disconnect()

-- disconnect from device

hcModule.connect(address)

-- connect to device with mac address(string)

Build Settings:

Helpful Links:

Example

Support