8 Control devices and groups
8 Control devices and groups
The
ITuyaBlueMeshDevice
class provides operations to manage mesh groups.
8.1 Control devices
Send a control command in the following format:
1
{
"(dpId)"
:
"( dpValue )"
}
API description
1
void
publishDps
(
String
nodeId
,
String
pcc
,
String
dps
,
IResultCallba
2
ck callback
);
Parameters
Parameter
Description
nodeId
The local ID of a sub-device.
pcc
The product category and type of the
sub-device.
dps
The control command.
callback
The callback.
Example
27 / 31