Search in sources :

Example 1 with ToDeviceRpcRequestPluginMsg

use of org.thingsboard.server.extensions.api.plugins.msg.ToDeviceRpcRequestPluginMsg in project thingsboard by thingsboard.

the class SharedPluginProcessingContext method sendRpcRequest.

public void sendRpcRequest(ToDeviceRpcRequest msg) {
    log.trace("[{}] Forwarding msg {} to device actor!", pluginId, msg);
    ToDeviceRpcRequestPluginMsg rpcMsg = new ToDeviceRpcRequestPluginMsg(pluginId, tenantId, msg);
    forward(msg.getDeviceId(), rpcMsg, rpcService::tell);
}
Also used : ToDeviceRpcRequestPluginMsg(org.thingsboard.server.extensions.api.plugins.msg.ToDeviceRpcRequestPluginMsg)

Aggregations

ToDeviceRpcRequestPluginMsg (org.thingsboard.server.extensions.api.plugins.msg.ToDeviceRpcRequestPluginMsg)1