diff --git a/Thermo.Active/wwwroot/config.development.json b/Thermo.Active/wwwroot/config.development.json index d47c9870..3f9529d8 100644 --- a/Thermo.Active/wwwroot/config.development.json +++ b/Thermo.Active/wwwroot/config.development.json @@ -2,6 +2,6 @@ "env": "development", "api": { "enabled": true, - "apiServerUrl": "http://localhost:9000" + "apiServerUrl": "http://seriate.steamware.net:9000/" } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/config.production.json b/Thermo.Active/wwwroot/config.production.json index 42e97807..52d7f647 100644 --- a/Thermo.Active/wwwroot/config.production.json +++ b/Thermo.Active/wwwroot/config.production.json @@ -2,6 +2,6 @@ "env": "development", "api": { "enabled": false, - "apiServerUrl": "https://localhost:9000" + "apiServerUrl": "http://seriate.steamware.net:9000/" } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/services/hub.ts b/Thermo.Active/wwwroot/src/services/hub.ts index 89f567b7..d8cfa95d 100644 --- a/Thermo.Active/wwwroot/src/services/hub.ts +++ b/Thermo.Active/wwwroot/src/services/hub.ts @@ -66,6 +66,9 @@ export class Hub { this._hub = $.connection.ncHub; + try { $.connection.hub.logging = true; } catch{ } + try { $.connection.ncHub.logging = true; } catch{ } + // Registro le callback; this._hub.client.alarms = this.manageAlarmsCallbacks; this._hub.client.powerOn = this.managePowerCallbacks;