update So 31. Mai 22:01:01 CEST 2020

This commit is contained in:
Robert Richter 2020-05-31 22:01:01 +02:00
parent 04d3a2be12
commit d8834f8cef

View File

@ -90,7 +90,16 @@ module.exports = function (io, sql, app_cfg, waip) {
});
};
function endpoint_emit_new_waip(data) {
function emit_to_endpoint_new_rmld(data) {
// Rückmeldung an Remote-Server senden, falls funktion aktiviert
if (app_cfg.endpoint.enabled) {
remote_api.emit('emit_new_rmld', data);
sql.db_log('API', 'Rückmeldung an ' + app_cfg.endpoint.host + ' gesendet: ' + data);
};
};
function emit_to_endpoint_new_waip(data) {
// Alarm an Remote-Server senden, falls funktion aktiviert
if (app_cfg.endpoint.enabled) {
remote_api.emit('emit_new_waip', data);
@ -98,7 +107,7 @@ module.exports = function (io, sql, app_cfg, waip) {
};
};
function endpoint_emit_new_rmld(data) {
function emit_to_endpoint_new_rmld(data) {
// Rückmeldung an Remote-Server senden, falls funktion aktiviert
if (app_cfg.endpoint.enabled) {
remote_api.emit('emit_new_rmld', data);
@ -107,8 +116,8 @@ module.exports = function (io, sql, app_cfg, waip) {
};
return {
send_new_waip: send_new_waip,
send_new_rmld: send_new_rmld
emit_to_endpoint_new_waip: emit_to_endpoint_new_waip,
emit_to_endpoint_new_rmld: emit_to_endpoint_new_rmld
};
};