namespace public static
evothings. tisensortag
Source: evothings-libraries/
Top-level object that holds generic functions and sub-modules.
Namespaces
Properties
Namespaces
ble
SensorTagInstance
SensorTagInstanceBLE
SensorTagInstanceBLE_CC2541
SensorTagInstanceBLE_CC2650
Properties
public static
CC2541_BLUETOOTH_SMART
Constant identifying the CC2541 Bluetooth Smart SensorTag.
public static
CC2650_BLUETOOTH_SMART
Constant identifying the CC2650 Bluetooth Smart SensorTag.
Methods
public static
createGenericInstance()
Create an object with functions common to all SensorTag models. This object specifies the public interface for SensorTag instances.
public static
createInstance(type)
Public. Create a SensorTag instance.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
type |
string |
|
String with type of tag. Use constants evothings.tisensortag.CC2650_BLUETOOTH_SMART and evothings.tisensortag.CC2541_BLUETOOTH_SMART. |
- Returns
-
evothings.tisensortag.SensorTagInstance or null if an object of the requested type cannot be created.