diff --git a/projects/IoTCenter/Controllers/AppController.cs b/projects/IoTCenter/Controllers/AppController.cs index 9fe53649..925ba02f 100644 --- a/projects/IoTCenter/Controllers/AppController.cs +++ b/projects/IoTCenter/Controllers/AppController.cs @@ -417,7 +417,7 @@ namespace IoTCenter.Controllers /************************************************************/ - public IActionResult Power(string token,string connectionId, string method,string[] numbers) + public IActionResult Power(string token, string connectionId, string method, string[] numbers) { var userName = this.GetUserName(token); if (string.IsNullOrEmpty(userName)) @@ -461,7 +461,7 @@ namespace IoTCenter.Controllers { var api = device.Product.Apis.FirstOrDefault(o => o.Command == command); var message = $"{api.Path}{api.Command}?number={device.Number}"; - this._hub.Clients.Group(device.Node.Number).SendAsync(Methods.ServerToClient, Methods.ExecApiRequest, message, connectionId); + this._hub.ServerToClient(Methods.ExecApiRequest, message, device.Node.Number, connectionId); } catch (Exception ex) { diff --git a/projects/IoTCenter/appsettings.json b/projects/IoTCenter/appsettings.json index f74900b6..6a922e7e 100644 --- a/projects/IoTCenter/appsettings.json +++ b/projects/IoTCenter/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.103", + "version": "1.0.0-rc.104", "Logging": { "LogLevel": { "Default": "Warning", diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/user.html b/projects/IoTClient/Assets/StreamingAssets/wwwroot/user.html index 34f3ab6f..c7a1f66d 100644 --- a/projects/IoTClient/Assets/StreamingAssets/wwwroot/user.html +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/user.html @@ -37,6 +37,7 @@ +